Rotate Workspace Key Secret
Rotate the secret on a workspace key/secret pair. The key value is unchanged; only secret is regenerated. Backend SDKs using the old secret must switch to the new value.
Rotation is allowed on every record, including the record where is_default is true.
Authorizations
Pass as Authorization: ServiceToken <token>. You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Path Parameters
Response
Rotation accepted. The response returns the updated record with a new secret; key is unchanged.
A workspace key/secret pair used to authenticate backend SDKs (Suprsend(workspace_key, workspace_secret)).
Unlike ws_api_key, both key and secret are returned in full plain text on every response - list, detail, create and rotate. Treat every response as sensitive: do not log it, do not surface it to browsers, and store the secret only in an environment variable or secrets manager.
Full workspace secret. This is the workspace_secret passed to backend SDKs when authenticating (Suprsend(workspace_key, workspace_secret)). Returned in plain text on every response, not masked and not "returned once".
Anyone with read access to this response can authenticate as this workspace. Handle every list, detail, create and rotate response as sensitive data.
"SS.WSS.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"