cURL
curl --request POST \ --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/grants/delegate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "parentGrantToken": "<string>", "subAgentId": "<string>", "scopes": [ "<string>" ], "expiresIn": "1h" } '
{ "grantToken": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "scopes": [ "<string>" ], "grantId": "<string>" }
Creates a delegated grant for a sub-agent with narrowed scopes. Sub-agent scopes must be a subset of the parent grant’s scopes. Sub-agent token expiry is capped at the parent token’s expiry.
Developer API key
Parent agent's grant token (JWT)
Must be a subset of the parent grant's scopes
Delegated grant created