Quiltt Logo

Managing existing session tokens

Auth API Reference

For complete information on the available endpoints and schemas available in the Auth API, explore the API Reference.

Once you have obtained session token, you can check that the token is valid and unexpired or revoke it, using the following endpoints:

GEThttps://auth.quiltt.io/v1/users/session
DELETEhttps://auth.quiltt.io/v1/users/session

The session token must be provided as a Bearer token in the Authorization header:

Authorization: Bearer {{SESSION_TOKEN}}

Link to this section#Checking the Current Session Token

To check a session token, make a GET request:

curl --request GET \ --url 'https://auth.quiltt.io/v1/users/session' \ --header 'Authorization: Bearer {{SESSION_TOKEN}}' \

If your token is valid, you will receive a 200 HTTP response code, with information about the session in the response body:

{ "token": "eyJhbGciOiJIUzUxMiJ9.eyJuYmYiOjE2MjA4NTY3MzgsImlhdCI6MTYyMDg1NjczOCwianRpIjoiZDZlMmM4YjAtOTYwMi00YmY2LTk0MmUtOWUxYmY3NjkwMDhkIiwiaXNzIjoiYXV0aC5xdWlsdHQuaW8iLCJhdWQiOiJhcGkucXVpbHR0LmlvIiwiZXhwIjoxNjIwOTQzMTM4LCJ2ZXIiOjEsImFpZCI6IjdkODZiODI1LWY5MzctNGNiNS05N2NjLTM4NDYwMzczNmQ3YiIsInVpZCI6IjNiYWE3NjI0LTIwNTMtNDZiNC05M2Y2LTkxMzJjZTZlYzY1YSJ9.WGdEeHFLMXuBVUaNbdd9C2bjq189jDG9ebOiR0FjsUB8zdMu8V5khf1smgBRyJR80Hxi-IJvNCUULjrQMFlXNg", "expiration": 1620938721, "userId": "3baa7624-2053-46b4-93f6-9132ce6ec65a" }

Link to this section#Revoking the Current Session Token

To revoke a session token, make a DELETE request:

curl --request DELETE \ --url 'https://auth.quiltt.io/v1/users/session' \ --header 'Authorization: Bearer {{SESSION_TOKEN}}' \

Successful responses will return a 204 HTTP response code.


See the Auth API Reference for full documentation of the supported endpoints.