Skip to content

Platform Authentication

Lynxius platform supports JSON Web Token (JWT) authentication with the backend.

JSON Web Token (JWT) Authentication

Logs in the user to the platform. The retrieved access token must be used to authenticate all subsequent requests. This will be passed in as header: "Authorization: Bearer $JWT_ACCESS_TOKEN" \.

Example Request
curl -X 'POST' \
  'https://platform.lynxius.ai/api/token/' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "richard@piedpiper.com",
  "password": "123456"
}'
Returns
{
    "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcxNjc1MTM2OCwiaWF0IjoxNzE1ODg3MzY4LCJqdGkiOiIwZjViYWNkNmMxMjQ0YjY5YTk4ZmRhYjhiOThhOGIxYyIsInVzZXJfaWQiOjJ9.u4NghvS3HW1CIX24hA8n5AWxIyQKEH2pxKKSjP5Xgsg",
    "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzE1OTczNzY4LCJpYXQiOjE3MTU4ODczNjgsImp0aSI6IjE3NTRkODkwMWE5NDQ1ZTk4NTQ5MWVjZDRjMGQ0ZDEyIiwidXNlcl9pZCI6Mn0.47Zc_2Fdi1bJbz5aCqdW8F7H_rnRxhjHk9JRXWL4nIc"
}