/openrouter-admin | Type: Application | PCID required: Yes
Tools
openrouter_admin_bulk_add_workspace_members
Bulk add members to a workspace Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The workspace ID (UUID) or slug |
user_ids | string[] | Yes | — | List 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:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail |
key_hashes | string[] | Yes | — | Array of API key hashes to assign to the guardrail |
openrouter_admin_bulk_assign_members_to_guardrail
Bulk assign members to a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail |
member_user_ids | string[] | Yes | — | Array of member user IDs to assign to the guardrail |
openrouter_admin_bulk_remove_workspace_members
Bulk remove members from a workspace Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The workspace ID (UUID) or slug |
user_ids | string[] | Yes | — | List of user IDs to remove from the workspace |
openrouter_admin_bulk_unassign_keys_from_guardrail
Bulk unassign keys from a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail |
key_hashes | string[] | Yes | — | Array of API key hashes to unassign from the guardrail |
openrouter_admin_bulk_unassign_members_from_guardrail
Bulk unassign members from a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail |
member_user_ids | string[] | Yes | — | Array of member user IDs to unassign from the guardrail |
openrouter_admin_create_guardrail
Create a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
allowed_models | string[] | No | — | Array of model identifiers (slug or canonical_slug accepted) |
allowed_providers | string[] | No | — | List of allowed provider IDs |
description | string | No | — | Description of the guardrail |
enforce_zdr | boolean | No | — | Whether to enforce zero data retention |
ignored_models | string[] | No | — | Array of model identifiers to exclude from routing (slug or canonical_slug accepted) |
ignored_providers | string[] | No | — | List of provider IDs to exclude from routing |
limit_usd | number | No | — | Spending limit in USD |
name | string | Yes | — | Name for the new guardrail |
reset_interval | string | No | — | Interval at which the limit resets (daily, weekly, monthly) |
workspace_id | string | No | — | The workspace to create the guardrail in. Defaults to the default workspace if not provided. |
openrouter_admin_create_keys
Create a new API key Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
creator_user_id | string | No | — | Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. |
expires_at | string | No | — | Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected |
include_byok_in_limit | boolean | No | — | Whether to include BYOK usage in the limit |
limit | number | No | — | Optional spending limit for the API key in USD |
limit_reset | string | No | — | Type 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. |
name | string | Yes | — | Name for the new API key |
workspace_id | string | No | — | The workspace to create the API key in. Defaults to the default workspace if not provided. |
openrouter_admin_create_workspace
Create a workspace Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
default_image_model | string | No | — | Default image model for this workspace |
default_provider_sort | string | No | — | Default provider sort preference (price, throughput, latency, exacto) |
default_text_model | string | No | — | Default text model for this workspace |
description | string | No | — | Description of the workspace |
io_logging_api_key_ids | integer[] | No | — | Optional array of API key IDs to filter I/O logging |
io_logging_sampling_rate | number | No | — | Sampling rate for I/O logging (0.0001-1) |
is_data_discount_logging_enabled | boolean | No | — | Whether data discount logging is enabled |
is_observability_broadcast_enabled | boolean | No | — | Whether broadcast is enabled |
is_observability_io_logging_enabled | boolean | No | — | Whether private logging is enabled |
name | string | Yes | — | Name for the new workspace |
slug | string | Yes | — | URL-friendly slug (lowercase alphanumeric and hyphens only) |
openrouter_admin_delete_guardrail
Delete a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail to delete |
openrouter_admin_delete_keys
Delete an API key Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
hash | string | Yes | — | The hash identifier of the API key to delete |
openrouter_admin_delete_workspace
Delete a workspace Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The workspace ID (UUID) or slug |
openrouter_admin_get_credits
Get remaining credits Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-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:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
openrouter_admin_get_guardrail
Get a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail to retrieve |
openrouter_admin_get_key
Get a single API key Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
hash | string | Yes | — | The hash identifier of the API key to retrieve |
openrouter_admin_get_user_activity
Get user activity grouped by endpoint Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
date | string | No | — | Filter by a single UTC date in the last 30 days (YYYY-MM-DD format). |
api_key_hash | string | No | — | Filter by API key hash (SHA-256 hex string, as returned by the keys API). |
user_id | string | No | — | Filter by org member user ID. Only applicable for organization accounts. |
openrouter_admin_get_workspace
Get a workspace Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The workspace ID (UUID) or slug |
openrouter_admin_list_guardrail_key_assignments
List key assignments for a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
openrouter_admin_list_guardrail_member_assignments
List member assignments for a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
openrouter_admin_list_guardrails
List guardrails Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
workspace_id | string | No | — | Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned. |
openrouter_admin_list_key_assignments
List all key assignments Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
openrouter_admin_list_keys
List API keys Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
include_disabled | boolean | No | — | Whether to include disabled API keys in the response |
offset | integer | No | — | Number of API keys to skip for pagination |
workspace_id | string | No | — | Filter API keys by workspace ID. By default, keys in the default workspace are returned. |
openrouter_admin_list_member_assignments
List all member assignments Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
openrouter_admin_list_organization_members
List organization members Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
openrouter_admin_list_workspaces
List workspaces Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
offset | integer | No | — | Number of records to skip for pagination |
limit | integer | No | — | Maximum number of records to return (max 100) |
openrouter_admin_update_guardrail
Update a guardrail Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The unique identifier of the guardrail to update |
allowed_models | string[] | No | — | Array of model identifiers (slug or canonical_slug accepted) |
allowed_providers | string[] | No | — | New list of allowed provider IDs |
description | string | No | — | New description for the guardrail |
enforce_zdr | boolean | No | — | Whether to enforce zero data retention |
ignored_models | string[] | No | — | Array of model identifiers to exclude from routing (slug or canonical_slug accepted) |
ignored_providers | string[] | No | — | List of provider IDs to exclude from routing |
limit_usd | number | No | — | New spending limit in USD |
name | string | No | — | New name for the guardrail |
reset_interval | string | No | — | Interval at which the limit resets (daily, weekly, monthly) |
openrouter_admin_update_keys
Update an API key Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
hash | string | Yes | — | The hash identifier of the API key to update |
disabled | boolean | No | — | Whether to disable the API key |
include_byok_in_limit | boolean | No | — | Whether to include BYOK usage in the limit |
limit | number | No | — | New spending limit for the API key in USD |
limit_reset | string | No | — | New 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. |
name | string | No | — | New name for the API key |
openrouter_admin_update_workspace
Update a workspace Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The 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-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The workspace ID (UUID) or slug |
default_image_model | string | No | — | Default image model for this workspace |
default_provider_sort | string | No | — | Default provider sort preference (price, throughput, latency, exacto) |
default_text_model | string | No | — | Default text model for this workspace |
description | string | No | — | New description for the workspace |
io_logging_api_key_ids | integer[] | No | — | Optional array of API key IDs to filter I/O logging |
io_logging_sampling_rate | number | No | — | Sampling rate for I/O logging (0.0001-1) |
is_data_discount_logging_enabled | boolean | No | — | Whether data discount logging is enabled |
is_observability_broadcast_enabled | boolean | No | — | Whether broadcast is enabled |
is_observability_io_logging_enabled | boolean | No | — | Whether private logging is enabled |
name | string | No | — | New name for the workspace |
slug | string | No | — | New URL-friendly slug |

