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

string
required
Your user’s unique identifier in your system

Response

string
The MCP Identity Token (JWT) - use this in Authorization header for proxy requests
string
Token for refreshing the MIT when it expires
integer
Seconds until the access token expires (typically 3600 = 1 hour)
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