Developers / Start here / Authentication & provisioning
Authentication & provisioning
Key types, the key lifecycle, the organization provisioning gate and browser/domain setup.
Paths, headers and fields mirror The IDIA Hub's Protocol API implementation, checked November 7, 2026. Keys and credit rates are issued per organization inside the Hub; source review is not an independent production assessment.
Two kinds of key
Identity Verification keys are created in Trading Desk → API Keys and call the /v1/utility routes. Mesh Node keys are created in Data Marketplace → Vulture and call the /v1/vulture routes. Either kind can call provision-status, billing balance and webhook management; verification access follows the endpoint's ownership checks.
Send the key in x-api-key. Authorization: Bearer <IDIA key> also works; a Supabase JWT in Authorization is treated as gateway routing, not as an IDIA key. The Hub stores only a SHA-256 hash of each key and records when it was last used.
| Key | Created in | Routes |
|---|---|---|
| Identity Verification key | Trading Desk → API Keys | /v1/auth/provision-status, /v1/billing/balance, /v1/webhooks*, /v1/utility/* |
| Mesh Node key | Data Marketplace → Vulture | /v1/auth/provision-status, /v1/billing/balance, /v1/webhooks*, /v1/vulture/* |
Key lifecycle
Create: the full key is shown once. Store it in a server-side secret manager, never in a browser, mobile app or repository.
Rotate: create a new key, deploy it, then revoke the old one from the same tab. Revoked keys fail immediately with 401 invalid_api_key.
Expire: Mesh Node keys carry an expiry date and can be limited to allowed IP addresses; reissue a node key before it expires.
The provisioning gate
A valid key is not enough. An administrator of your organization must turn on each service (Identity Verification and The Vulture) for the organization. Until then, calls to that service fail with 403 not_provisioned even though the key is valid.
Call GET /v1/auth/provision-status first. It returns, for each service, provisioned (true/false), rate_cr (your organization's credit rate), organization_id and organization_name, plus wallet.synapse_credits_available.
{
"status": "success",
"services": {
"identity_verification": { "provisioned": true, "rate_cr": 0.0, "organization_id": "<uuid>", "organization_name": "<name>" },
"vulture": { "provisioned": false, "rate_cr": 0.0, "organization_id": "<uuid>", "organization_name": "<name>" }
},
"wallet": { "synapse_credits_available": 0.0 }
}Browsers, CORS and domains
The API answers CORS preflight for any origin and allows the headers content-type, x-api-key, authorization, apikey, x-client-info, idempotency-key, x-idia-environment and last-event-id, with GET, POST, DELETE and OPTIONS. That makes it reachable from a browser, but you should still call it from your server so your key is never exposed.
Custom domain: if you put the API behind your own domain (for example a CNAME on auth.thebigidia.com style subdomains), point it at the Hub's API host as a proxied route on your own account. Cloudflare Error 1014 (CNAME cross-user banned) appears when a CNAME points at a host on another Cloudflare account; use a proxy or the direct URL instead. A 403 in the browser console with no IDIA error body is usually a missing allowed header, not a provisioning problem.