webhooks

Create a webhook

Requires url and a non-empty events array. A signing secret is auto-generated (and stored encrypted) when not supplied.

post/webhooks

Request

  • Base URL: https://corebee.ai/api/v1
  • URL: https://corebee.ai/api/v1/webhooks
  • Auth: HTTP bearer

Request body

urlstring uri required
eventsstring[] required
secretstring

Optional HMAC signing secret. Auto-generated and stored encrypted when omitted.

enabledboolean

Example request

{
  "events": [
    "conversation.created",
    "message.created"
  ]
}

Response

Created

Example response

{
  "data": {
    "url": "https://example.com/hooks/corebee",
    "events": [
      "conversation.created",
      "message.created"
    ]
  }
}

Changes

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