API Reference
Authentication
Obtain and revoke API tokens, and identify the current user.
All requests (except health checks) require a bearer token in the Authorization header:
Authorization: Bearer YOUR_API_TOKENPOST /auth
Authenticate with email and password credentials. Returns an API token and user object.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | yes | Account email |
password | string | yes | Account password |
Response
{
"token": "...",
"user": {
"id": 123,
"email": "user@example.com",
"first_name": "Jane",
"last_name": "Doe"
}
}GET /me
Return the currently authenticated user.
DELETE /auth
Revoke the current API token.