For the complete documentation index, see llms.txt. This page is also available as Markdown.

Callback Example (Basic Implementation)

Follow a simple end-to-end example to create a callback and inspect the payload your endpoint receives.

To configure and receive callbacks, follow the instructions below.

To create callbacks, you must meet the following requirements:

  1. You must be a user of the platform with owner access to at least one mailbox.

  2. You must have a URL that will receive callbacks.

  3. You must be familiar with the API, as the callback interface does not have a UI.

If you meet the three requirements above, you can start configuring your callback.

Create a callback using the following data. This callback will be triggered for each received envelope with the following statuses: WAITING, COMPLETED, EXPIRED, CANCELLED.

URL

Method

POST

request URL

/api/v1/envelope/callback/add

Headers

content-type

application/json

authorization

Bearer {token} where {token} is the authorisation token that which user received after successful authorisation on the platform

mailbox

UUID of the mailbox to which you configured callbacks

URL

Method

POST

request URL

/api/v1/envelope/callback/add

Headers

content-type

application/json

authorization

Bearer {token}, where {token} is the authorization token that the user received after successful authorization on the platform

mailbox

UUID of the mailbox to which you configured callbacks

REQUEST BODY

  • Send at least one envelope to the mailbox where the callback was created.

  • Go to the URL you defined in the callback and wait for the callback data.

  • As soon as your URL receives a callback, you will see the following JSON data. The values for UUIDs, status, labels, subject, dates, template, and sender will match the envelope you received.

Last updated