POST
/
sessions
curl --request POST \
  --url https://{tenant_id}.hanko.io/admin/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_agent": "<string>",
  "ip_address": "<string>"
}'
{
  "session_token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your API key. Must only be used when using Hanko Cloud.

Body

application/json
user_id
string
required
user_agent
string
ip_address
string

Response

200
application/json
OK
session_token
string