Skip to content

Webhooks

Send a test delivery

POST/v1/webhooks/{webhookId}/test

Send a signed test delivery with the event "ping", even if the webhook is inactive. A webhook with a posting spec gets a made-up lead in the buyer's format instead. Check the result in the delivery log.

Path parameters

  • webhookIdstringrequired

    The webhook's id.

Response

  • idstringrequired

    The delivery's id.

  • webhookIdstringrequired

    The webhook it was sent to.

  • submissionIdstring or nullrequired

    The response it carries. Null for a test delivery.

  • eventstringrequired

    The event. It is "submission.completed" or "submission.abandoned", or "ping" for a test.

  • statusenumrequired

    pending while it is being sent or retried, succeeded once the endpoint accepted it, and failed after the last attempt failed.

    One of "pending", "succeeded", "failed"

  • attemptsnumberrequired

    Attempts made so far.

  • lastStatusnumber or nullrequired

    The HTTP status of the last attempt. Null before the first attempt, or when the endpoint didn't answer.

  • lastErrorstring or nullrequired

    What went wrong on the last attempt. Null when nothing did.

  • nextAttemptAtnumber or nullrequired

    When the next retry is due, in milliseconds since the epoch. Null when none is due.

  • createdAtnumberrequired

    When the delivery was made, in milliseconds since the epoch.

  • payloadanyrequired

    The data field of the request body.

  • postedone of 2required

    The body the test posted, a sample lead in the buyer's format. Null when the webhook has no posting spec.

    Show 2 options
    • Option 1

      • contentTypestringrequired
      • bodystringrequired
    • null

Errors answer with a status and the error shape.