Create Workspace API Key
Changed onCreate 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.
post/v1/{workspace}/ws_api_key/
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
workspacestring required
Workspace slug (e.g. staging, production).
Request body
Example request
{
"name": "backend-prod"
}Response
API key created. api_key is returned only once - store it securely.
Example response
{
"id": "ws_apik_exampleId01",
"masked_api_key": "SS.XXXXXXX*****",
"name": "backend-prod",
"created_by": {
"name": "System User",
"email": "user@example.com"
},
"deleted_by": {
"name": "System User",
"email": "user@example.com"
},
"api_key": "SS.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}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 - warning
removed the request property
- breaking