cURL
curl --request POST \ --url https://api.example.com/v0/agent/token/user \ --header 'Content-Type: application/json' \ --header 'x-sumvin-agent-key: <x-sumvin-agent-key>' \ --data '{ "user_id": 123 }'
{ "_links": { "kyc": { "description": "Submit KYC information", "href": "/v0/user/me/kyc", "method": "PUT" }, "self": { "href": "/v0/user/me", "method": "GET" }, "wallets": { "href": "/v0/wallets", "method": "GET" } } }
Create a short-lived agent token scoped to a specific user. Requires x-sumvin-agent-key header with a valid agent API key.
The user ID to scope the token to
Successful Response
HAL-style hypermedia links for navigation and available actions.
Show child attributes
The agent token (only returned once)
Token expiration timestamp in milliseconds
The user ID this token is scoped to