Routes
Create session
POSThttps://api.insurely.com/users/{userUuid}/sessions
Create a JWT session token for the user.
Request
Path Parameters
userUuidstring
Header Parameters
Insurely-Versionstring
Specifies the API version to use. Must match the version of the endpoint you are targeting.
Possible Enum values are
2026-04-01.Responses
Session successfully created.
Body
expiresAtstring[date-time]
tokenstring
userUuidstring
cURL
curl https://api.insurely.com/users/{userUuid}/sessions \
-H "authorization-token: <authorization-token>" \
-X POSTRESPONSE 201
{
"expiresAt": "2026-04-01T11:00:00Z",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ5b3VyLXVzZXItMTIzNCJ9.PLACEHOLDER-SIGNATURE",
"userUuid": "b3f1c2a4-8d6e-4f2b-9a1c-7e5d3b2a1f0e"
}