Skip to main content
PATCH
Rotate Workspace Public Key

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required

Workspace slug (e.g. staging, production).

public_key_id
string
required

Public key identifier (e.g. ws_pubk_...).

Response

Public key rotation accepted.

Workspace public key used by client SDKs.

id
string

Unique identifier of the public key.

Example:

"ws_pubk_exampleId01"

api_key
string

Public key value exposed to clients.

Example:

"SS.PUBK.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

name
string

Label for the public key.

Example:

"web-app"

allowed_domains
string[] | null

Domains allowed to use this public key.

is_secure_mode_enabled
boolean

Indicates whether secure mode is enabled for this key.

is_deleted
boolean

Indicates whether the public key has been deleted.

is_default
boolean

Indicates whether this is the default public key for the workspace.

created_at
string<date-time>

Timestamp when the public key was created.

created_by
object | null

Identity that performed an action (created, updated, rolled, deleted, rotated).

rotated_at
string<date-time> | null

Timestamp when the public key was last rotated.

rotated_by
object | null

Identity that performed an action (created, updated, rolled, deleted, rotated).

updated_at
string<date-time>

Timestamp when the public key was last updated.

updated_by
object | null

Identity that performed an action (created, updated, rolled, deleted, rotated).