Skip to main content
POST
/
v1
/
w3s
/
users
/
token
Create a user token
curl --request POST \
  --url https://api.circle.com/v1/w3s/users/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "ext_user_id_1"
}'
{
  "data": {
    "userToken": "eyJhbGciOiJS...-F8EFYDYjAxIUw",
    "encryptionKey": "7LcOsm4lUAK2Mg...+6fPjr58="
  }
}

Authorizations

Authorization
string
header
required

Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.

Headers

X-Request-Id
string

Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.

Example:

"2adba88e-9d63-44bc-b975-9b6ae3440dde"

Body

application/json

Request body

userId
string
required

Unique system generated identifier for the user.

Required string length: 5 - 50
Example:

"ext_user_id_1"

Response

Successfully generated a user token.

data
object
required