Create Workspace Signing Key
Changed onCreate a signing key for this workspace.
The private_key_pem and private_key_base64 fields are returned only once at creation. Store them securely - they cannot be retrieved later.
Only one active signing key is allowed per workspace. To replace an existing active key, use the Roll Workspace Signing Key endpoint instead.
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace slug (e.g. staging, production).
Response
Signing key created. Private key material is returned once in this response.
Example response
{
"id": "ws_signk_exampleId01",
"uid": "signing_key_exampleUid01",
"created_by": {
"name": "System User",
"email": "user@example.com"
},
"rolled_by": {
"name": "System User",
"email": "user@example.com"
},
"deleted_by": {
"name": "System User",
"email": "user@example.com"
},
"private_key_pem": "-----BEGIN PRIVATE KEY-----\n...redacted...\n-----END PRIVATE KEY-----\n",
"private_key_base64": "LS0tLS1CRUdJTi...redacted..."
}Changes
- breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response400 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response404
- breaking