Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Agent Key Exchange

Agent API keys are exchange-only credentials. A brain_ak_* key is never sent to resource routes. The agent exchanges it for a five-minute JWT and uses that JWT to call POST /v1/authorizations.

Discover Metadata

GET /v1/auth/agent-key-exchange

Response:

{
  "issuer": "https://staging-auth.robotmoney.com",
  "exchange": {
    "token_endpoint": "https://staging-auth.robotmoney.com/token",
    "resource": "https://staging-api.robotmoney.com/",
    "grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
    "subject_token_type": "urn:brain:params:oauth:token-type:agent-api-key",
    "scope": "payment_intent:propose",
    "key_display": "once"
  }
}

Always use the discovered resource value. It is the token audience for the API and is not necessarily the same host as the public API base.

Exchange

Response:

The exchange response never includes a refresh token. Exchange the agent key again when a fresh JWT is needed.

Values

Value
Staging
Production

API base

https://staging-api.robotmoney.com/v1

https://api.robotmoney.com/v1

Auth issuer

https://staging-auth.robotmoney.com

https://auth.robotmoney.com

Token endpoint

https://staging-auth.robotmoney.com/token

https://auth.robotmoney.com/token

API resource

https://staging-api.robotmoney.com/

https://api.robotmoney.com/

Production discovery advertises https://auth.robotmoney.com as the issuer, https://auth.robotmoney.com/token as the token endpoint, and https://api.robotmoney.com/ as the API resource. The production MCP endpoint is https://mcp.robotmoney.com.

Last updated