Authentication

The API uses the OAuth2 client credentials grant. You exchange a client ID and secret for a short-lived JWT, then send that JWT on every subsequent request.

Get a client ID and secret

  1. In Dash Admin, search API Keys in Global Search.
  2. Click Create and give the key a descriptive name.
  3. Select the role the key should act under — the key's requests are authorized exactly as a user with that role would be.
  4. Save. Your Client ID and Client Secret are shown once.

Copy the secret now. It's never shown again after this screen. If you lose it, create a new key rather than trying to recover the old one.

Creating, editing, or managing API keys requires the API Key Management permission on your role. If you don't have it, ask an administrator on your account to create a key for you.

Keep your key safe

Treat an API key like a password, not a config value:

  • Don't send it over email or chat — use a secrets manager or a one-time-secret tool instead.
  • Rotate it — create a new key, delete the old one — whenever someone with access to it leaves your team.
  • Delete a key immediately if you suspect it's been exposed. Don't wait to confirm before acting.

Request a token

POST [BASE_URL]/auth/token
FieldValue
client_idYour client ID
client_secretYour client secret
grant_typeclient_credentials

Send these three fields as form data (application/x-www-form-urlencoded) or as a JSON body — both are accepted.

Example request:

POST /auth/token HTTP/1.1
Content-Type: application/json

{
  "client_id": "your-client-id",
  "client_secret": "your-client-secret",
  "grant_type": "client_credentials"
}

Successful response (200):

{
  "auth": true,
  "access_token": "<JWT>"
}

Failed response (403):

{
  "auth": false,
  "message": "reason for the failure"
}

This endpoint isn't JSON:API. It's a plain OAuth2 token endpoint — the request and response bodies above are the full contract. Don't expect a JSON:API error document or JSON:API query parameters here; those apply to every other endpoint, not this one.

Use the token

Send the JWT from access_token as a bearer token on every request to the rest of the API:

Authorization: Bearer <access_token>

Token lifetime

Tokens are valid for 24 hours. You don't need to authenticate before every request — cache the token and reuse it for the duration of its validity.

The JWT itself carries its expiration as the exp claim (a UTC timestamp), readable without calling the API:

  1. Split the JWT on . — it has three segments.
  2. Base64-decode the middle segment.
  3. Read exp from the resulting JSON.

A short-lived token limits how long a leaked credential stays useful without requiring refresh-token machinery on top of it. Rather than waiting for a request to fail with a 401 and reacting to that, request a new token proactively as the current one nears expiration — for example, once it's past 23 hours old.

Rate limits

Requests are rate-limited per user: 200 requests per minute. Going over the limit returns 429 Too Many Requests, along with retry-timing information telling you how long to wait before your next request. Build your integration to back off on a 429 rather than retrying immediately.

Fetching fewer, larger pages instead of many small ones is one easy way to stay well under the limit — see Request Parameters for page[size] (capped at 100 per page).

This isn't the webhooks secret. If you're also consuming Dash webhooks, note that webhook deliveries are verified with a separate per-subscription secret and signature scheme, unrelated to this token — see the Webhooks guide's Verifying Deliveries page.

Need help?

Reach out to your DaySmart account team, or contact DaySmart support, for integration questions this guide doesn't answer.


Did this page help you?