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

Headers

x-sumvin-agent-key
string
required

Body

application/json
user_id
integer
required

The user ID 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

user_id
integer
required

The user ID this token is scoped to