Create API Key
Create a new API key scoped to this workspace.
The full api_key secret is returned only once in the create response. Store it securely - it cannot be retrieved later.
Authorizations
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Path Parameters
Workspace slug (e.g. staging, production).
Body
Response
API key created. api_key is returned only once - store it securely.
Workspace-scoped REST API key (server-side secret).
Unique identifier of the API key.
"ws_apik_exampleId01"
Masked preview of the API key used in list responses.
"SS.XXXXXXX*****"
Indicates whether the API key has been deleted.
Label for the API key.
"backend-prod"
Domains allowed to use this key.
Timestamp when the API key was created.
Identity that performed an action (created, updated, rolled, deleted, rotated).
Timestamp when the API key was deleted, if applicable.
Identity that performed an action (created, updated, rolled, deleted, rotated).
Full secret API key. Returned only once at creation - store it securely and never commit to source control.
"SS.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"