Xeneta's airline data API uses a cookie-based authentication system.
Here is a simplified description of our authentication process:
- User makes a request to the
/login
endpoint with theirusername
andpassword
- Our server validates the credentials and sends back a session cookie as a response
- User passes the session cookie in their future API calls to authenticate themselves
Authentication request
POST https://{airline}.useselfie.com/api/selfie/rest_auth/login
Request parameters
Parameter | Description |
---|---|
username | User login string |
password | User password string |
Response codes
Code | Description |
---|---|
200 OK | Successful login |
401 Unauthorized | Incorrect or missing login or password |