Webhooks

Sends a sample payload for the given event to the webhook's URL and returns the delivery result.

post/webhooks/{id}/test

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/webhooks/{id}/test
  • Auth: HTTP bearer

Headers

Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

eventstring required

The event to test the webhook for, in dot form (for example payment.succeeded).

Example request

{
  "event": "payment.succeeded"
}

Response

test event sent

bodystring required

The body of the webhook response.

statusinteger required

The HTTP response code of this request.

successboolean required

Whether or not the webhook test was successful.

Example response

{
  "body": "OK",
  "status": 200,
  "success": true
}

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status