Authentication

Authentication

All API requests require authentication via Bearer token.

Getting a Token

Send a POST request to /auth/token with your credentials.

curl -X POST https://api.example.com/auth/token \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "password": "..."}'

Using the Token

Include the token in the Authorization header of subsequent requests:

Authorization: Bearer <your-token>