WebhookEndpoints

Create webhook endpoint

Changed on

Creates a new webhook endpoint. The signing secret is only returned on creation. Called by Crevio's agent, a script or an MCP client, the response has secret: null and secret_secret_id instead: the id of the account secret that holds it, which a person reveals in Crevio, so the value never lands in a transcript.

post/webhook_endpoints

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

WebhookEndpointCreateRequest required
url, string uri required

The https URL events are POSTed to, on a public host: private, loopback and metadata addresses are refused.

status, 'active' | 'inactive'
api_version, string
enabled_events, string[] required

Response

Webhook endpoint created (includes secret, or secret_secret_id when called by the agent, a script or MCP)

WebhookEndpointWithSecret required
id, string required
object, string required
url, string required
api_version, string required
status, 'active' | 'inactive' required
created_at, string date-time required
updated_at, string date-time required
enabled_events, string[] required
secret, string nullable required

Changes

    • breaking

      the request property enabled_events became required

    • breaking

      the request property url became required

    • breaking

      the enabled_events request property's minItems was increased to 1

    7 more changes in this revision