Rotate a signing secret
POST
/v1/webhook-endpoints/{id}/rotate-secret
const url = 'https://api.staging.heliumid.io/v1/webhook-endpoints/example/rotate-secret';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”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" }}