Skip to main content
POST
Roll a signing secret

Authorizations

Authorization
string
header
required

Your secret API key, sent as Authorization: Bearer hmk_test_....

Headers

Hammock-Version
string

The API version to use for this request. Defaults to the version pinned to your API key.

Idempotency-Key
string

A unique value, up to 255 characters, that makes the request safe to retry for 24 hours.

Maximum string length: 255

Path Parameters

id
string
required

Response

The webhook endpoint, including its new secret.

id
string
required
Example:

"we_6Yt2Bn8mKp4S"

object
string
required
Allowed value: "webhook_endpoint"
url
string<uri>
required
Example:

"https://partner.example/webhooks/hammock"

enabled_events
string[]
required
Example:
status
enum<string>
required
Available options:
enabled,
disabled
livemode
boolean
required
created
string<date-time>
required
description
string | null
secret
string

The signing secret. Only returned when the endpoint is created or its secret is rolled.

Example:

"whsec_Zk3Vb8nQ2mX7cL5pR9tY1wE4"