POST
/
users
/
{uid}
/
auth_tokens
Create
curl --request POST \
  --url https://{appid}.api-{region}.cometchat.io/v3/users/{uid}/auth_tokens \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "force": true
}'
{
  "data": {
    "uid": "superhero1",
    "authToken": "superhero1_1630306819c3027ce530b2367f3c97b4106f0cb8",
    "createdAt": 1630306819
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Path Parameters

uid
string
required

An UID of a user.

Body

application/json

Response

200 - application/json

Created auth token

The response is of type object.