Skip to main content
Mint an agent token
Beta. The assistant API and its reads over MCP are in beta. They are open to every organization that pays out through Grade, and parts are not available yet, as each page says.

Authorizations

X-Application-Id
string
header
required
X-Api-Key
string
header
required

Body

application/json

Who is asking.

end_user
string
required

Your id for the person asking: letters, digits, _ or -. Opaque to Grade, never an email.

Pattern: ^[\w-]{1,128}$
Example:

"user_8f3a2c"

Response

The agent token.

token
string
required

The agent token, sent as Authorization: Bearer <token>.

expires_at
string<date-time>
required
api_version
enum<integer>
required
Available options:
1