Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Questra Program session token or workspace API key (qpk_live_…)

Body

application/json
name
string
required
Minimum string length: 1
Example:

"CI deploy"

scopes
enum<string>[]
required

Non-empty list of scopes. Pass * for full workspace access.

Minimum array length: 1
Available options:
*,
meta:read,
members:read,
members:write,
billing:read,
billing:write,
privacy:read,
privacy:write,
integrations_settings:read,
integrations_settings:write,
programming_settings:read,
programming_settings:write,
api_keys:read,
api_keys:write,
webhooks:read,
webhooks:write,
surveys:read,
surveys:write,
surveys:share,
integrations:read,
integrations:write,
workflows:read,
workflows:write
Example:
expires_at
string<date-time> | null

Optional expiry. Omit or null for a non-expiring key.

Example:

null

Response

API key created

data
object
required