DataTalk Docs

Authentication

How to authenticate with the DataTalk API

All API requests must include a valid API key in the Authorization header.

API Key Format

DataTalk API keys use the dt_ prefix:

dt_a1b2c3d4e5f6...

Sending Requests

Include the API key as a Bearer token in the Authorization header:

curl https://api.datatalk.bi/v1/databases \
  -H "Authorization: Bearer dt_your_api_key"

Creating an API Key

  1. Log into your DataTalk instance
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. Copy the key immediately — it won't be shown again

API keys are hashed before storage. If you lose the key, you'll need to create a new one.

Key Expiration

API keys can optionally have an expiration date. Expired keys return a 401 error with the code API_KEY_EXPIRED.

Webhook Secret

Each API key can have a webhook secret for signing webhook payloads. This is configured when creating the API key and is used for HMAC-SHA256 signatures on callback deliveries. See Webhooks.

Error Codes

HTTP StatusCodeDescription
401MISSING_AUTHNo Authorization header provided
401INVALID_AUTH_FORMATHeader doesn't match Bearer dt_... format
401INVALID_API_KEYAPI key not found
401API_KEY_EXPIREDAPI key has expired
401USER_NOT_FOUNDUser associated with the key no longer exists
403NO_TENANT_ACCESSUser has no tenant access

Example Error Response

{
  "error": "Invalid API key",
  "code": "INVALID_API_KEY"
}

On this page