Crego Platform
  1. Authentication
Crego Platform
  • Authentication
    • Login
      POST
    • Refresh JWT Token
      POST
  • Flow
    • Upload File
      POST
    • Create Runner
      POST
  1. Authentication

Login

POST
/auth/login/

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Examples

Responses

🟢200Sample Response
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.preprod.crego.ai/api/auth/login/' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "******",
    "password": "******",
    "type": "staff"
}'
Response Response Example
{
    "access": "{{access_token}}",
    "refresh": "{{refresh_token}}",
    "expires_in": 900,
    "token_type": "Bearer",
    "user": {
        "id": "01KAAV7BB8XZCFW6KRKEYBG51C",
        "username": "admin",
        "email": "admin@crego.ai",
        "first_name": "",
        "last_name": "",
        "type": "staff"
    }
}
Modified at 2025-11-26 11:14:11
Next
Refresh JWT Token
Built with