Regenerate secret key of workspace
The secret key of a workspace should be kept secret at all times. If it does get compromised, you can generate a new one.
Note
You need to authenticate with your company admin key for this API call.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/workspaces/{key}/actions/regenerate-secret-key
$seatsioClient->workspaces->regenerateSecretKey($key);
await Client.Workspaces.RegenerateSecretKeyAsync(key);
client.workspaces.regenerateSecretKey(key);
client.workspaces.regenerate_secret_key(key)
client.workspaces.regenerate_secret_key key: key
await client.workspaces.regenerateSecretKey(key);
newKey, err := client.Workspaces.RegenerateSecretKey(workspace.Key)
- name: the name of the workspace. Can be any string (including spaces or special characters)
curl -X POST https://api-{region}.seatsio.net/workspaces/18725661-36d6-4755-905a-28ce82d0c2d5/actions/regenerate-secret-key \
-u anAdminKey: -X POST
Response
{
secretKey: "79425661-36d6-4755-905a-28ce82d0c8c1"
}