DocsDéveloppeurs

Clés API et scopes

An API key belongs to one workspace and carries scopes; it has no role and inherits nothing.

Issue a key

  1. Open Developer → API keys and choose New key.
  2. Name it for yourself under What is it for?
  3. Tick the scopes under What may it do? — these are the whole of its authority.
  4. Optionally limit Allowed addresses and set a date under Stops working on.
  5. Choose Issue key and copy it. It is shown once and cannot be shown again.

Only owners and admins can issue keys.

Scopes for the studio

ScopeAllows
workspace.viewThe brand kit, and connecting over MCP at all.
product.viewReading products.
product.manageImporting products.
ad.viewReading ads, picture sets, options and the studio overview.
ad.manageCreating ads, choosing scripts and cast, producing, making picture ads.
research.viewReading studied reference ads.
research.manageStudying a new reference ad.

Give a key only the scopes it needs. A read-only key cannot spend credits at all.

Using a key

Send it as a bearer token:

Authorization: Bearer ag_live_…

Rotate a key to replace its secret, or revoke it to stop it immediately.

Daily limit for agents

On the same page, set Most credits agents may spend a day. It applies to everything spent through API keys in a rolling 24 hours. The page shows what agents spent in the last 24 hours.

Still stuck? Open a ticket and a person on the team answers by email.