WebhookEndpoints

Test webhook endpoint

Changed on

Sends a signed test event to the endpoint and returns what the receiver answered. A receiver that responds at all — even with an error status — is a 200 here, with delivered: false; 502 means nothing answered (DNS failure, refused connection, timeout).

post/webhook_endpoints/{id}/test

Request

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

Path parameters

id, string required

The resource's ID, as returned in its id field

Query parameters

event_type, string

The event type to send as a test

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.

Response

The receiver's response to the test event

object required
delivered, boolean required

Whether the receiver answered with a 2xx status

response_code, integer required

The HTTP status the receiver returned

response_body, string required

The body the receiver returned, truncated to 10,000 characters

message, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision