POST
/
auth
/
login
curl --request POST \
  --url https://scribe-api.puppilot.co/auth/login \
  --header 'Content-Type: application/json' \
  --header 'X-API-Version: <x-api-version>' \
  --data '{
  "email": "jsmith@example.com",
  "password": "<string>"
}'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "bearer"
}

Overview

Authenticate a user and receive an access token for API requests. Access tokens are valid for 1 hour. Use the refresh_token to obtain a new token when the access token expires.

Request Body

  • email (string) - User’s email address.
  • password (string) - User’s password.

Example Request

{
  "email": "user@example.com",
  "password": "securepassword"
}

Headers

X-API-Version
string
required

API versioning is required. Include the header X-API-Version with current version value in all requests.

Example:

"v1"

Body

application/json
email
string
required
password
string
required

Response

200
application/json
Successful login. Token valid for 1 hour.
access_token
string
refresh_token
string
token_type
string
Example:

"bearer"