from openrouter import OpenRouterimport oswith OpenRouter( http_referer="<value>", x_open_router_title="<value>", x_open_router_categories="<value>", api_key=os.getenv("OPENROUTER_API_KEY", ""),) as open_router: res = open_router.external_users.list(offset=0, limit=50, include_inactive=False) while res is not None: # Handle items res = res.next()
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_open_router_title
Optional[str]
➖
The app display name allows you to customize how your app appears in OpenRouter’s dashboard.
x_open_router_categories
Optional[str]
➖
Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
offset
OptionalNullable[int]
➖
Number of records to skip for pagination
0
limit
Optional[int]
➖
Maximum number of records to return (max 100)
50
user
Optional[str]
➖
Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of . or .. cannot be addressed by path, so look it up with the list filter.
Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. Management key required.
Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of . or .. cannot be addressed by path, so look it up with the list filter.
employee_123
http_referer
Optional[str]
➖
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_open_router_title
Optional[str]
➖
The app display name allows you to customize how your app appears in OpenRouter’s dashboard.
x_open_router_categories
Optional[str]
➖
Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. Management key required.
from openrouter import OpenRouterimport oswith OpenRouter( http_referer="<value>", x_open_router_title="<value>", x_open_router_categories="<value>", api_key=os.getenv("OPENROUTER_API_KEY", ""),) as open_router: open_router.external_users.delete(user="employee_123") # Use the SDK ...
Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of . or .. cannot be addressed by path, so look it up with the list filter.
employee_123
http_referer
Optional[str]
➖
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_open_router_title
Optional[str]
➖
The app display name allows you to customize how your app appears in OpenRouter’s dashboard.
x_open_router_categories
Optional[str]
➖
Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of . or .. cannot be addressed by path, so look it up with the list filter.
employee_123
http_referer
Optional[str]
➖
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_open_router_title
Optional[str]
➖
The app display name allows you to customize how your app appears in OpenRouter’s dashboard.
x_open_router_categories
Optional[str]
➖
Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of . or .. cannot be addressed by path, so look it up with the list filter.
employee_123
is_active
bool
✔️
Registration state only; does not enforce inference access.
true
http_referer
Optional[str]
➖
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_open_router_title
Optional[str]
➖
The app display name allows you to customize how your app appears in OpenRouter’s dashboard.
x_open_router_categories
Optional[str]
➖
Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.