cURL
curl --request POST \ --url https://api.sumvin.com/v0/agent/token/user \ --header 'Content-Type: application/json' \ --header 'x-sumvin-agent-key: <x-sumvin-agent-key>' \ --data ' { "user_id": "<string>" } '
{ "_links": {}, "token": "<string>", "expires_at": 123 }
Create a short-lived agent token scoped to a specific user. Requires x-sumvin-agent-key header with a valid agent API key.
The ID of the user 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