Skip to main content
POST
Create API Key
Create a new company-scoped API key. The caller must have the api_keys:manage permission. The plain key is returned only once, in this response. When the caller is an account-scoped seq_user_ key, select the company with the x-company-id header. The endpoint always creates the new key in the authenticated request context; a companyId field in the JSON body is not a supported selector.

Request

string
Human-readable key name. If omitted, Sequenzy creates a default integration name.
string
Permission preset to apply when scopes is omitted. Defaults to full_access. Supported presets: full_access, read_only, agent_safe, ai_drafting, data_ingest_safe, data_ingest_automations, transactional_sender, marketing_sender. Full-access keys return a null scopes value, which means all current and future permissions.
string[]
Explicit permission scopes for the new key. If provided, this overrides preset and must contain at least one supported scope.

Responses