Skip to main content
POST
/
auth
/
login
curl -X POST https://app.drime.cloud/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "your_password",
    "device_name": "My Application"
  }'
{
  "status": "success",
  "user": {
    "id": 15843,
    "email": "user@example.com",
    "display_name": "John Doe",
    "first_name": "John",
    "last_name": "Doe",
    "access_token": "123|abcdef1234567890abcdef1234567890",
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-15T10:30:00.000000Z"
  }
}

Overview

Logs in a user and returns an access token that can be used to authenticate subsequent API requests.
This endpoint does not require authentication. The returned access_token should be stored securely and used in the Authorization header for all other API requests.

Request Body

email
string
required
The user’s email address
password
string
required
The user’s password
device_name
string
required
A name to identify this device/application (e.g., “iPhone 12”, “My Web App”)

Response

status
string
The status of the request (success or error)
user
object
The authenticated user object
curl -X POST https://app.drime.cloud/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "your_password",
    "device_name": "My Application"
  }'
{
  "status": "success",
  "user": {
    "id": 15843,
    "email": "user@example.com",
    "display_name": "John Doe",
    "first_name": "John",
    "last_name": "Doe",
    "access_token": "123|abcdef1234567890abcdef1234567890",
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-15T10:30:00.000000Z"
  }
}