cURL
curl --request POST \ --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/token \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "agentId": "<string>", "codeVerifier": "<string>" } '
{ "grantToken": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "scopes": [ "<string>" ], "refreshToken": "<string>", "grantId": "<string>" }
Exchanges an authorization code for a signed grant token (RS256 JWT). If the authorization used PKCE (S256), a codeVerifier is required. Fires webhook events for grant.created and token.issued.
codeVerifier
grant.created
token.issued
Rate limit: 20 requests/minute.
Developer API key
Authorization code from consent approval
PKCE code verifier (required if code_challenge was used)
Grant token issued
Signed RS256 JWT