Skip to main content
Server path: /openrouter-admin | Type: Application | PCID required: Yes

Tools

ToolDescription
openrouter_admin_bulk_add_workspace_membersBulk add members to a workspace
openrouter_admin_bulk_assign_keys_to_guardrailBulk assign keys to a guardrail
openrouter_admin_bulk_assign_members_to_guardrailBulk assign members to a guardrail
openrouter_admin_bulk_remove_workspace_membersBulk remove members from a workspace
openrouter_admin_bulk_unassign_keys_from_guardrailBulk unassign keys from a guardrail
openrouter_admin_bulk_unassign_members_from_guardrailBulk unassign members from a guardrail
openrouter_admin_create_guardrailCreate a guardrail
openrouter_admin_create_keysCreate a new API key
openrouter_admin_create_workspaceCreate a workspace
openrouter_admin_delete_guardrailDelete a guardrail
openrouter_admin_delete_keysDelete an API key
openrouter_admin_delete_workspaceDelete a workspace
openrouter_admin_get_creditsGet remaining credits
openrouter_admin_get_current_keyGet current API key
openrouter_admin_get_guardrailGet a guardrail
openrouter_admin_get_keyGet a single API key
openrouter_admin_get_user_activityGet user activity grouped by endpoint
openrouter_admin_get_workspaceGet a workspace
openrouter_admin_list_guardrail_key_assignmentsList key assignments for a guardrail
openrouter_admin_list_guardrail_member_assignmentsList member assignments for a guardrail
openrouter_admin_list_guardrailsList guardrails
openrouter_admin_list_key_assignmentsList all key assignments
openrouter_admin_list_keysList API keys
openrouter_admin_list_member_assignmentsList all member assignments
openrouter_admin_list_organization_membersList organization members
openrouter_admin_list_workspacesList workspaces
openrouter_admin_update_guardrailUpdate a guardrail
openrouter_admin_update_keysUpdate an API key
openrouter_admin_update_workspaceUpdate a workspace

openrouter_admin_bulk_add_workspace_members

Bulk add members to a workspace Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe workspace ID (UUID) or slug
user_idsstring[]YesList of user IDs to add to the workspace. Members are assigned the same role they hold in the organization.

openrouter_admin_bulk_assign_keys_to_guardrail

Bulk assign keys to a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail
key_hashesstring[]YesArray of API key hashes to assign to the guardrail

openrouter_admin_bulk_assign_members_to_guardrail

Bulk assign members to a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail
member_user_idsstring[]YesArray of member user IDs to assign to the guardrail

openrouter_admin_bulk_remove_workspace_members

Bulk remove members from a workspace Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe workspace ID (UUID) or slug
user_idsstring[]YesList of user IDs to remove from the workspace

openrouter_admin_bulk_unassign_keys_from_guardrail

Bulk unassign keys from a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail
key_hashesstring[]YesArray of API key hashes to unassign from the guardrail

openrouter_admin_bulk_unassign_members_from_guardrail

Bulk unassign members from a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail
member_user_idsstring[]YesArray of member user IDs to unassign from the guardrail

openrouter_admin_create_guardrail

Create a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
allowed_modelsstring[]NoArray of model identifiers (slug or canonical_slug accepted)
allowed_providersstring[]NoList of allowed provider IDs
descriptionstringNoDescription of the guardrail
enforce_zdrbooleanNoWhether to enforce zero data retention
ignored_modelsstring[]NoArray of model identifiers to exclude from routing (slug or canonical_slug accepted)
ignored_providersstring[]NoList of provider IDs to exclude from routing
limit_usdnumberNoSpending limit in USD
namestringYesName for the new guardrail
reset_intervalstringNoInterval at which the limit resets (daily, weekly, monthly)
workspace_idstringNoThe workspace to create the guardrail in. Defaults to the default workspace if not provided.

openrouter_admin_create_keys

Create a new API key Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
creator_user_idstringNoOptional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key.
expires_atstringNoOptional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected
include_byok_in_limitbooleanNoWhether to include BYOK usage in the limit
limitnumberNoOptional spending limit for the API key in USD
limit_resetstringNoType of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
namestringYesName for the new API key
workspace_idstringNoThe workspace to create the API key in. Defaults to the default workspace if not provided.

openrouter_admin_create_workspace

Create a workspace Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
default_image_modelstringNoDefault image model for this workspace
default_provider_sortstringNoDefault provider sort preference (price, throughput, latency, exacto)
default_text_modelstringNoDefault text model for this workspace
descriptionstringNoDescription of the workspace
io_logging_api_key_idsinteger[]NoOptional array of API key IDs to filter I/O logging
io_logging_sampling_ratenumberNoSampling rate for I/O logging (0.0001-1)
is_data_discount_logging_enabledbooleanNoWhether data discount logging is enabled
is_observability_broadcast_enabledbooleanNoWhether broadcast is enabled
is_observability_io_logging_enabledbooleanNoWhether private logging is enabled
namestringYesName for the new workspace
slugstringYesURL-friendly slug (lowercase alphanumeric and hyphens only)

openrouter_admin_delete_guardrail

Delete a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail to delete

openrouter_admin_delete_keys

Delete an API key Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
hashstringYesThe hash identifier of the API key to delete

openrouter_admin_delete_workspace

Delete a workspace Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe workspace ID (UUID) or slug

openrouter_admin_get_credits

Get remaining credits Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.

openrouter_admin_get_current_key

Get current API key Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.

openrouter_admin_get_guardrail

Get a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail to retrieve

openrouter_admin_get_key

Get a single API key Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
hashstringYesThe hash identifier of the API key to retrieve

openrouter_admin_get_user_activity

Get user activity grouped by endpoint Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
datestringNoFilter by a single UTC date in the last 30 days (YYYY-MM-DD format).
api_key_hashstringNoFilter by API key hash (SHA-256 hex string, as returned by the keys API).
user_idstringNoFilter by org member user ID. Only applicable for organization accounts.

openrouter_admin_get_workspace

Get a workspace Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe workspace ID (UUID) or slug

openrouter_admin_list_guardrail_key_assignments

List key assignments for a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)

openrouter_admin_list_guardrail_member_assignments

List member assignments for a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)

openrouter_admin_list_guardrails

List guardrails Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)
workspace_idstringNoFilter guardrails by workspace ID. By default, guardrails in the default workspace are returned.

openrouter_admin_list_key_assignments

List all key assignments Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)

openrouter_admin_list_keys

List API keys Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
include_disabledbooleanNoWhether to include disabled API keys in the response
offsetintegerNoNumber of API keys to skip for pagination
workspace_idstringNoFilter API keys by workspace ID. By default, keys in the default workspace are returned.

openrouter_admin_list_member_assignments

List all member assignments Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)

openrouter_admin_list_organization_members

List organization members Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)

openrouter_admin_list_workspaces

List workspaces Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
offsetintegerNoNumber of records to skip for pagination
limitintegerNoMaximum number of records to return (max 100)

openrouter_admin_update_guardrail

Update a guardrail Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe unique identifier of the guardrail to update
allowed_modelsstring[]NoArray of model identifiers (slug or canonical_slug accepted)
allowed_providersstring[]NoNew list of allowed provider IDs
descriptionstringNoNew description for the guardrail
enforce_zdrbooleanNoWhether to enforce zero data retention
ignored_modelsstring[]NoArray of model identifiers to exclude from routing (slug or canonical_slug accepted)
ignored_providersstring[]NoList of provider IDs to exclude from routing
limit_usdnumberNoNew spending limit in USD
namestringNoNew name for the guardrail
reset_intervalstringNoInterval at which the limit resets (daily, weekly, monthly)

openrouter_admin_update_keys

Update an API key Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
hashstringYesThe hash identifier of the API key to update
disabledbooleanNoWhether to disable the API key
include_byok_in_limitbooleanNoWhether to include BYOK usage in the limit
limitnumberNoNew spending limit for the API key in USD
limit_resetstringNoNew limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
namestringNoNew name for the API key

openrouter_admin_update_workspace

Update a workspace Parameters:
ParameterTypeRequiredDefaultDescription
HTTP-RefererstringNoThe app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application.
X-OpenRouter-TitlestringNoThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
X-OpenRouter-CategoriesstringNoComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
idstringYesThe workspace ID (UUID) or slug
default_image_modelstringNoDefault image model for this workspace
default_provider_sortstringNoDefault provider sort preference (price, throughput, latency, exacto)
default_text_modelstringNoDefault text model for this workspace
descriptionstringNoNew description for the workspace
io_logging_api_key_idsinteger[]NoOptional array of API key IDs to filter I/O logging
io_logging_sampling_ratenumberNoSampling rate for I/O logging (0.0001-1)
is_data_discount_logging_enabledbooleanNoWhether data discount logging is enabled
is_observability_broadcast_enabledbooleanNoWhether broadcast is enabled
is_observability_io_logging_enabledbooleanNoWhether private logging is enabled
namestringNoNew name for the workspace
slugstringNoNew URL-friendly slug