Skip to main content
POST
Create an API key
Send the secret as a Bearer token to the REST API or any Pomerado MCP.
  • A key carries only permissions you hold. It gets api_keys:manage, billing:manage or team:manage only when permissions names them.
  • It expires after 90 days unless expires_in_days says otherwise.
  • With deliver “dashboard”, nothing is created yet: this returns a Dashboard link where the person creates the key and sees the secret, so it never reaches this client.
  • With purpose “connect”, for the Connect page: it revokes your older connect keys that nothing copied (mark_copied) and no request used, for the same integration (or for the account) beyond three, and at your key limit the oldest of them, so these keys never fill your limit. Until then the key is not listed and it expires after 1 day; its first copy or first use extends it to 90 days from then. A copied or used key is never revoked this way, and you can create at most 20 connect keys an hour.
  • On a Personal account less than 24 hours old, you can create 2 keys an hour. A connect key counts unless it was revoked before it was copied or used, and a new connect key revokes your other connect keys that nothing copied or used, for every integration.
  • At your key limit, any new key first revokes your oldest connect key that nothing copied and no request used.
  • Callers: an API key, an MCP OAuth token or a Dashboard session.
  • Permission: any signed-in member, for their own records; an API key also needs api_keys:manage.
  • Effect: Creates or changes something.
  • Errors: permission_not_held, not_found, api_key_limit_reached, api_key_create_throttled, new_account_key_throttled, and the errors any request can get.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

1 to 100 characters, without leading or trailing spaces

Required string length: 1 - 100
Pattern: ^\S(?:.*\S)?$
Example:

"Nightly price check"

permissions
enum<string>[]

Permissions the key carries, each one you hold. Default: all you hold except api_keys:manage, billing:manage and team:manage

Required array length: 1 - 16 elements
Available options:
account:read,
tools:read,
usage:read,
tools:build,
runs:create,
jobs:read,
jobs:cancel,
logins:read,
logins:manage,
api_keys:manage,
billing:manage,
team:manage
Example:
integration_id
string

an integration ID: int_ and 32 lowercase hex digits

Example:

"int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

expires_in_days
integer

Days until the key expires, 1 to 365 (default 90); ignored with purpose connect, whose key lasts 1 day until it is copied or used

Required range: 1 <= x <= 365
Example:

30

deliver
enum<string>

Return a Dashboard link instead of the secret, so the secret never reaches this client

Available options:
dashboard
purpose
enum<string>

connect: a key the Connect page makes for an agent, which also carries account:read when you hold it. Creating one revokes your older unused connect keys for the same integration (or for the account) beyond three, and at your key limit your oldest unused connect key; a key that has been used is never revoked this way. At most 20 connect keys an hour.

Available options:
connect

Response

With deliver dashboard: where to finish

dashboard_url
string
required

A signed-in Dashboard page where the person finishes this and sees the secret once