Quick links
Chimlet home

Documentation

Chimlet home

Sign in

Exchange an account email and password for a bearer token.

POST/api/v1/sessionsJump to request example

Request example

Request
curl --fail-with-body --request POST \
  --url "$CHIMLET_BASE_URL/api/v1/sessions" \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "email": "dev@example.com",
  "password": "replace-with-your-password"
}
JSON

Response example

Response
200 OK
{
  "user": {
    "id": "01KJ4CJW0R37VJ4C5JJAK3ZMRN",
    "email": "dev@example.com",
    "name": "Example Developer",
    "created_at": "2026-12-01T09:00:00Z",
    "updated_at": "2026-12-01T09:00:00Z"
  },
  "access_token": "<CHIMLET_SESSION_TOKEN>",
  "token_type": "Bearer",
  "expires_at": "2026-12-08T09:00:00Z"
}

Authentication

Account credentials in the request body

Authentication overview

Request fields

Request body

emailstringRequired
The account’s email address.
passwordstringRequired
The account password, 12 to 128 UTF-8 bytes.

Usage notes

  • Set CHIMLET_SESSION_TOKEN to the returned access_token. Use expires_at to determine when to sign in again.