cURL
curl --request POST \ --url https://api.example.com/v1/identity/token \ --header 'Content-Type: application/json' \ --data ' { "user_id": "<string>" } '
{ "access_token": "<string>", "refresh_token": "<string>", "expires_in": 123, "token_type": "<string>" }
Get or create an MCP Identity Token for a user
curl -X POST https://api.mcprank.com/v1/identity/token \ -H "X-API-Key: sk_mcp_rank_..." \ -H "Content-Type: application/json" \ -d '{"user_id": "user_123"}'
{ "access_token": "eyJhbGciOiJSUzI1NiIs...", "refresh_token": "rt_abc123...", "expires_in": 3600, "token_type": "Bearer" }
curl https://api.mcprank.com/v1/proxy/google/gmail/v1/users/me/profile \ -H "X-API-Key: sk_mcp_rank_..." \ -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
{user_id, developer_id, exp}