Skip to content

Regenerate an API key

POST
/api/api-keys/{id}/regenerate
curl --request POST \
--url https://api.sipstack.com/api/api-keys/1/regenerate \
--header 'Authorization: Bearer <token>'

Replaces the key’s secret and re-activates it. The previous value stops working immediately. The new key is returned only in this response.

id
required
integer

Key regenerated — data.key is shown once.

Media type application/json
object
success
boolean
message
string
data
object
key
string
prefix
string
Example generated
{
"success": true,
"message": "example",
"data": {
"key": "example",
"prefix": "example"
}
}

Not an owner/admin.

Key not found in your organization.