Skip to navigation

Create an API key

View as Markdown

Authentication

AuthorizationBearer
An AgentRouter API key or an OAuth access token issued to an MCP host or the CLI.

Request

This endpoint expects an object.
namestringRequired
scopeslist of enumsOptional
Defaults to read, invoke, topup, feedback and dispute.

Response

The key, including its secret (shown once)

key_idstring
namestring
scopeslist of strings
displaystring
created_viastring
last_used_atstring or null
revoked_atstring or null
secretstring
Shown once.
notestring
created_atstringOptional

Errors

400
Bad Request Error