Send a test event
/v1/webhook_endpoints/{id}/testSends one signed sample event of event_ (any type; delivery. by default), marked with the header Parasend-Test: true, and waits up to 10 seconds for the answer. Returns the attempt, the event sent, and the first 512 bytes of your endpoint's response as text (response_), which is not stored. The sample event is not kept: it cannot be replayed and never appears in GET /events. The attempt is listed in the endpoint's attempts with test: true.
Path parameters
-
The webhook endpoint's ID, starting
whk_.
Body
Optional
-
event_typestringEvery event type.
delivery.events follow a delivery from creation to its end,* batch.a batch, and* member.,* email_andsender. * recipient_your account.domain. * delivery.is a hint (the e-mail client loaded an image), never proof of receipt;email_ opened delivery.is the recipient confirming receipt.confirmed delivery.carries aauth_ failed reason, such aspersonal_orcode_ mismatch id_. Thedocument_ mismatch secret.,* request.and* lookup.events belong to features that are not available yet. New types may be added: ignore types you do not know.* One ofdelivery.createddelivery.rejecteddelivery.notifieddelivery.openeddelivery.email_openeddelivery.auth_faileddelivery.confirmeddelivery.downloadeddelivery.delivereddelivery.remindeddelivery.bounceddelivery.expireddelivery.revokeddelivery.consignment_faileddelivery.evidence_sealeddelivery.evidence_timestamp_deferreddelivery.evidence_timestamp_recovereddelivery.paper_pending_approvaldelivery.paper_dispatcheddelivery.paper_faileddocument.previewedbatch.finalizedbatch.completedlookup.completedconsent.grantedconsent.withdrawninvitation.sentlink.openedotp.sentotp.verifiedotp.lockedsecret.attachedsecret.availablesecret.revealedsecret.copiedsecret.expiredsecret.exhaustedsecret.revokedrequest.sentrequest.openedrequest.fulfilledrequest.expiredrequest.closedrequest.reopeneddeletion.scheduledrecipient_domain.verifiedrecipient_domain.degradedrecipient_domain.failedmember.suspendedmember.restoredmember.removedbatch.cancelledbatch.policy_changeddelivery.policy_changedemail_sender.verifiedemail_sender.degradedemail_sender.failedemail_sender.restored
Returns
200 application/json. The test attempt.
Errors have one shape; see Errors for every code.