Skip to content
dimmiDocs

Webhooks

Reveal a webhook secret

POST/api/v1/webhook-endpoints/{endpoint}/secret-reveals

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the webhooks:write ability

Path parameters

endpointstringrequired

Id of the webhook endpoint, starting with whk_, such as whk_01jx2m8k4t. Find it with GET /webhook-endpoints.

Response 200

OK
dataobjectrequired
Show child attributes
endpoint_idstringrequired

Id of the webhook endpoint the secret belongs to, such as whk_....

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

previous_expires_atstring | nullrequired

When the previous secret stops signing deliveries. Null when no rotation is under way.

Format: date-time

previous_secretstring | nullrequired

The secret used before the last rotation, still valid while the rotation overlaps. Null when there is none.

secretstringrequired

The endpoint's current signing secret, used to check that a delivery came from dimmi. Keep it private.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.