Orbitoads
Browse documentation

Keys and access

Supply the key in the X-API-Key header from your server. Select one, several or all permitted accounts. Write access combines a campaign-management key with the holder’s own manager or owner permissions.

Markdown

Send the key

Every request carries the key in a header:

Example
X-API-Key: orb_0f3c…   (68 characters: orb_ followed by 64 hexadecimal digits)

There is no OAuth flow and no token exchange — the key is the credential. Keep it on your server; never ship it to a browser or a mobile app.

Get a key

In the panel: API & Webhooks → + New key. Keys are part of the Pro and Agency plans; each person can hold up to 5 active keys. A key is shown once, right after you create it — we store only its SHA-256 hash and cannot show it again. Lost it? Revoke it and create a new one.

What a key can do

PermissionHow you get itWhat it allows
Readevery keycampaigns, stats, conversions, tasks, targeting codes, webhooks, sending conversions to us
Manage campaignstick Allow managing campaigns when you create the key, or switch it on later on the key’s cardeverything in Read, plus create, edit, pause/resume, budget, copy, bulk actions, delete, media upload

A read-only key that calls a write endpoint gets 403 READ_ONLY_KEY. Give dashboards and reporting tools a read-only key; give a manage key only to code you trust to change campaigns. No key — read or manage — can take money out of a cabinet: budget moves only between the cabinet balance and its campaigns.

Writes also need an active Pro or Agency plan at the moment of the call (403 FEATURE_NOT_AVAILABLE otherwise) and the same per-feature plan rights the panel checks.

Which cabinets a key reaches

When you create a key you choose its scope:

ScopeThe key reaches
All my cabinets (default)every cabinet you can open in the panel, including ones added later
Severalthe cabinets you ticked
One cabinetthat cabinet only

The scope only ever narrows what you can open in the panel — it never widens it. It is re-checked on every request: when you lose access to a cabinet, your keys lose it in the same moment. GET /v1/account/info always lists exactly what the key reaches right now.

If a key reaches several cabinets, pass account_id on calls that act on one of them (400 ACCOUNT_ID_REQUIRED tells you when it’s missing).

Agencies and team members

API access follows the access you have in the panel, cabinet by cabinet:

Who you areCabinets your key reachesCan manage campaigns in
Account owner (regular user)your own cabinetsall of them
Agency owneryour personal and agency cabinetsall of them
Agency team memberthe cabinets the agency shared with youcabinets shared with Manager access; Viewer cabinets stay read-only
  • Team members create their own keys on their own API & Webhooks page. The agency’s plan covers them.
  • The agency owner sees every key the team created under API & Webhooks → Team keys — whose it is, whether it can manage campaigns, how many cabinets it reaches, when it was last used — and can revoke any of them.
  • GET /v1/account/info returns access_level for each cabinet: owner, manager or viewer. A write to a viewer cabinet returns 403 VIEW_ONLY_ACCESS.
  • If the owner removes a member, lowers them to Viewer, or the agency plan ends, the member’s keys follow immediately — nothing to revoke by hand.

What the roles mean in the panel: Manager — full campaign management in that cabinet; Viewer — campaigns and stats only. The owner can also let a member add cabinets, invite teammates or share their own cabinets (never above their own level).

Revoke and rotate

  • Revoke a key on its card in the panel. It stops working immediately.
  • Rotate = create a new key, deploy it, then revoke the old one. Two keys can be active at once, so there is no downtime.
  • The webhook secret (for verifying webhooks) is separate from the key and can be rotated on its own.

Keep keys safe

  • One key per integration, so you can revoke one without breaking the others.
  • Store keys in environment variables or a secret manager. Never commit them, never paste them into chats or tickets.
  • Prefer read-only keys; add Manage campaigns only where the code changes campaigns.
  • Narrow the scope to the cabinets an integration needs.
  • If a key may have leaked, revoke it first and investigate second. Every change made through the API appears in the campaign’s history in the panel marked 🔌 API.

Errors you can get here

HTTPcodeMeaning
401API_KEY_MISSINGno X-API-Key header
401API_KEY_INVALIDwrong, revoked or expired key
401NO_ACCOUNTSthe key reaches no active cabinet right now
403READ_ONLY_KEYa write with a key that doesn’t have Manage campaigns
403VIEW_ONLY_ACCESSa write to a cabinet shared with you as Viewer
403FEATURE_NOT_AVAILABLEthe plan doesn’t include this action
403WRITE_NOT_ALLOWEDthis kind of key (issued by Orbito Ads for partners) can’t write

Full list: Errors.

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

Implementation notes

Connecting a workspace

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

Keys and cabinet permissions

Keep X-API-Key on the server. A reporting key has read access. Changes require Manage campaigns, owner or manager access to the selected account, and the corresponding active plan and feature rights.

Request outcomes and response fields
APIHTTPMeaning
API_KEY_MISSING401Send the API key in the X-API-Key header.
API_KEY_INVALID401The supplied key is invalid, expired or revoked.
NO_ACCOUNTS401No active ad account is available to this key.
READ_ONLY_KEY403The key permits reading. Campaign writes require management permission.
VIEW_ONLY_ACCESS403A Viewer can inspect this ad account. A change requires account-level write access.
FEATURE_NOT_AVAILABLE403The current plan does not include this operation.
WRITE_NOT_ALLOWED403The key type the provider issues to partners does not allow writes.

Scope and revocation

A provider key can cover one, selected or all authorised accounts. Scope is checked on each call. Up to five active keys per person are supported on eligible plans. Revoke a lost key and rotate the webhook secret separately.

Operations and fields

X-API-Key read manage campaigns account_id

  • X-API-Key
  • read
  • manage campaigns
  • account_id

Request example

GET /api/v1/account/info HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}

Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.

Protocol reference

MethodRouteParametersRequest contentResponse codes
GET/api/v1/account/info——200, 401, 429
GET/api/v1/campaigns/{ad_id}ad_id, account_id—200, 400, 401, 404, 429
PATCH/api/v1/campaigns/{ad_id}ad_id, account_idapplication/json · UpdateRequest200, 400, 401, 403, 404, 409, 429

Source · Data source

Schema fields and limits · Keys and cabinet permissions

FieldDocumented value
X-API-KeyHTTP header
account_idinteger
access_levelowner | manager | viewer
cabinet_typeeuro | ton | stars

Source · Data source

Cabinet

FieldField type
idinteger
namestring
cabinet_typeeuro | ton | stars
is_activeboolean
access_levelowner | manager | viewer | admin
currencyEUR | TON | STARS
balanceMoney
balance_updated_atstring | null · date-time
min_budgetnumber
featuresobject

Source · Data source

Reference revision

Pro Panel
Pro Panel