REST API Authentication

Last updated:

API Authentication

All API requests require a Bearer token in the Authorization header. Obtain a token by posting credentials to POST /api/auth/login.

Request Example

curl -X POST https://your-instance.chorum.io/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"you@company.com","password":"your-password"}'

Token Lifecycle

Tokens expire after 7 days. Use the refresh endpoint to obtain a new token without re-authenticating.