Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.drssed.app/llms.txt

Use this file to discover all available pages before exploring further.

Call POST /auth/login to authenticate an existing user and receive a JWT access token and refresh token. You can identify the user by either their email address or their username — provide one or the other along with their password. The returned tokens work identically to those issued by POST /auth/guest.

Endpoint

FieldValue
MethodPOST
Path/auth/login
Auth requiredNo
Rate limit5 per minute

Request body

Provide either email or username together with password. You do not need to supply both email and username.
email
string
The user’s email address. Required if username is not provided.
username
string
The user’s username. Required if email is not provided.
password
string
required
The user’s password.

Response fields

Status: 200 OK
access_token
string
required
JWT access token. Include this in the Authorization: Bearer <token> header on subsequent requests.
expires_in
integer
required
Number of seconds until the access token expires.
refresh_token
string
required
Token used to obtain a new access token when the current one expires. See POST /auth/refresh.

Example

cURL
curl --request POST \
  --url https://api.drssed.com/auth/login \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "[email protected]",
    "password": "s3cr3tpassword"
  }'
Response
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 3600,
  "refresh_token": "drt_a1b2c3d4e5f6..."
}