POST
/
api
/
v4
/
authentication
/
token
Create authentication token for session creation API
curl --request POST \
  --url https://apix.us.amity.co/api/v4/authentication/token \
  --header 'Content-Type: application/json' \
  --header 'x-server-key: <x-server-key>' \
  --data '{
  "userId": "<string>"
}'
"s9qne0wEqVb2e05271177748659f574a4e8ab85e08"

Headers

x-server-key
string
required

Server key to authenticate the request

Maximum length: 150

Body

application/json

Response

200
text/plain

Response payload

Use this token when create sessions

Example:

"s9qne0wEqVb2e05271177748659f574a4e8ab85e08"