Sign in
Exchange an account email and password for a bearer token.
Request example
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"
}
JSONResponse example
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 overviewRequest 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.