Skip to main content
POST
/
v0
/
agent
/
token
/
user
Create User Token
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
}

Headers

x-sumvin-agent-key
string
required

Body

application/json
user_id
string
required

The ID of the user to scope the token to

Response

Successful Response

HAL-style hypermedia links for navigation and available actions.

token
string
required

The agent token (only returned once)

expires_at
integer
required

Token expiration timestamp in milliseconds