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"
Create authentication token for session creation API. Token userId need to match userId when using it
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"
Server key to authenticate the request
150
Response payload
Use this token when create sessions
"s9qne0wEqVb2e05271177748659f574a4e8ab85e08"