Skip to main content
POST
Get/Create Token

Get/Create Token

Get or create an MCP Identity Token (MIT) for a user. If the user doesn’t exist, a new identity is created.

Request

Body Parameters

user_id
string
required
Your user’s unique identifier in your system

Response

access_token
string
The MCP Identity Token (JWT) - use this in Authorization header for proxy requests
refresh_token
string
Token for refreshing the MIT when it expires
expires_in
integer
Seconds until the access token expires (typically 3600 = 1 hour)
token_type
string
Always “Bearer”

Example Response

Usage

After obtaining the MIT, use it in proxy requests:

Notes

  • The MIT is a JWT containing {user_id, developer_id, exp}
  • MITs expire after 1 hour - use the refresh token to get a new one
  • OAuth tokens for providers are stored server-side, not in the MIT
  • If the user hasn’t connected a provider, proxy requests will return 403