2. Create a session
Endpoint [POST]
https://api.zelf.world/api/sessions
This endpoint is used to create a new session for a device using a unique identifier. The response includes a token that can be used for subsequent authenticated requests.
Request
curl --location --request POST 'https://api.zelf.world/api/sessions' \
--header 'origin: postman' \
--header 'Content-Type: application/json' \
--data '{
}'
Response
{
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXN...wC4ktLdSKUeb79EE",
"activatedAt": 1749743895,
"expiresAt": 1749744495
}
}
Response Details
token:
string
- The session token that will be used for authenticating future API requests.
Last updated
Was this helpful?