Skip to main content

API Authentication

How to authenticate your requests to the AtlasData API.

Bearer Token

All requests must include a JWT token in the header:

Authorization: Bearer <your_token>

Getting a Token

Via Login

After logging into the platform, the token is returned automatically.

Via API

POST /api/auth/token
Content-Type: application/json

{
"email": "user@company.com",
"password": "your_password"
}

Response:

{
"access_token": "eyJhbG...",
"expires_in": 3600
}

Expiration

Tokens expire after 1 hour. Use refresh token to renew.

Example

curl -X GET https://api.atlasdata.app/workspaces \
-H "Authorization: Bearer eyJhbG..."