Skip to content
Navigation

Rotate Webhook Secret

POST /v1/monitors/{id}/rotate-secret
Free (0 credits) Permission: monitors:write

Generates and returns a new HMAC secret for generic webhooks.

Authorization

  • bearerAuth: optional HTTP
  • apiKeyAuth: optional API key in header

Path parameters

  • id: required string

Returns

200

New secret

JSON
  • webhook_secret: optional string

401

Missing or invalid API key or OAuth access token
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

404

Requested user or resource not found
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

Type to search…

↑↓ navigate ↵ select Esc close