Skip to content

Rotate a signing secret

POST
/v1/webhook-endpoints/{id}/rotate-secret
curl --request POST \
--url https://api.staging.heliumid.io/v1/webhook-endpoints/example/rotate-secret \
--header 'Authorization: Bearer <token>'

Returns a new secret (shown once). The old secret stops working immediately.

id
required
string
>= 1 characters <= 64 characters

The new secret (shown once). The old one stops working now.

Media typeapplication/json
object
endpoint
required
object
id
required
string
url
required
string
description
required
string
eventTypes
required
Array<string>
enabled
required
boolean
secretHint
required
string
createdAt
required
string | null
updatedAt
required
string | null
secret
required
string

Example generated

{
"endpoint": {
"id": "example",
"url": "example",
"description": "example",
"eventTypes": [
"example"
],
"enabled": true,
"secretHint": "example",
"createdAt": "example",
"updatedAt": "example"
},
"secret": "example"
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"correlationId": "example"
}
}

Not authenticated

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"correlationId": "example"
}
}

Not found

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"correlationId": "example"
}
}