ParasendDocs
Sign in Start free

Send a test event

POST/v1/webhook_endpoints/{id}/test

Sends one signed sample event of event_type (any type; delivery.created 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_excerpt), 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

  • idstringrequired

    The webhook endpoint's ID, starting whk_.

Body

Optional

  • Every event type. delivery.* events follow a delivery from creation to its end, batch.* a batch, and member.*, email_sender.* and recipient_domain.* your account. delivery.email_opened is a hint (the e-mail client loaded an image), never proof of receipt; delivery.confirmed is the recipient confirming receipt. delivery.auth_failed carries a reason, such as personal_code_mismatch or id_document_mismatch. The 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 of delivery.created delivery.rejected delivery.notified delivery.opened delivery.email_opened delivery.auth_failed delivery.confirmed delivery.downloaded delivery.delivered delivery.reminded delivery.bounced delivery.expired delivery.revoked delivery.consignment_failed delivery.evidence_sealed delivery.evidence_timestamp_deferred delivery.evidence_timestamp_recovered delivery.paper_pending_approval delivery.paper_dispatched delivery.paper_failed document.previewed batch.finalized batch.completed lookup.completed consent.granted consent.withdrawn invitation.sent link.opened otp.sent otp.verified otp.locked secret.attached secret.available secret.revealed secret.copied secret.expired secret.exhausted secret.revoked request.sent request.opened request.fulfilled request.expired request.closed request.reopened deletion.scheduled recipient_domain.verified recipient_domain.degraded recipient_domain.failed member.suspended member.restored member.removed batch.cancelled batch.policy_changed delivery.policy_changed email_sender.verified email_sender.degraded email_sender.failed email_sender.restored

Returns

200 application/json. The test attempt.

Errors have one shape; see Errors for every code.