Webhooks

Retrieve the default webhook secret

The secret that signs events sent to the webhook URL a generation or batch request names. It's made the first time you read it. Keep it in your server's environment.

Needs an API key with the generations:write scope.

get/v1/webhooks/default/secret

Request

  • Base URL: https://api.tryleap.ai
  • URL: https://api.tryleap.ai/v1/webhooks/default/secret
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Response

The secret.

object'webhook_secret' required
secretstring required

The signing secret, whsec_ and base64. Keep it in your server's environment.

Changes

No recorded changes to this operation across all 1 revision of this API.