Authentication
API token
Every request carries your company's API token:
Authorization: Bearer <token>
- The token is an opaque string issued by Obsidian. It is not a JWT; don't try to decode it.
- It doesn't expire. If it leaks, ask support to rotate it: the old token stops working as soon as the new one is issued.
- Keep it on your servers. Never put it in a browser or mobile app.
A missing or invalid token returns:
{
"message": "Unauthenticated.",
"error": { "code": "unauthenticated", "message": "Unauthenticated." }
}
with status 401.
IP allowlist
Requests are only accepted from IP addresses on your company's allowlist,
including requests with a valid token. A request from any other address
returns 403:
{
"message": "Your IP address (203.0.113.9) is not whitelisted.",
"error": { "code": "ip_not_allowed", "message": "Your IP address (203.0.113.9) is not whitelisted." }
}
To add or change addresses, send support the public IPs your servers call from.
Sub-accounts
If your company has sub-accounts, each can have its own token.
- A sub-account token sees only that sub-account's orders and cards.
- Your main token sees your own cards and every sub-account's cards.
- Sub-account tokens can't place orders, read fees or list sub-accounts;
those calls return
403 forbidden.
To place an order on behalf of a sub-account from your main token, pass
sub_company_id when creating the order.
Request format
- Send request bodies as JSON with
Content-Type: application/json. - Responses are always JSON, except the card-details pages opened through
secure-data-link, which are web pages for the cardholder. - Amounts are in US dollars, not cents. Responses usually return them as
decimal strings (
"250.00"); parse them as decimals, not floats. - Timestamps are ISO-8601 in UTC (
2026-11-15T23:15:03+00:00), with two v1 exceptions noted in the reference (profile submission and load status).