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

Send Envelope

This document contains details for the /api/v1/envelope/send endpoint, including the request body format, example payloads, and the response UUID.

Method

Method
POST

URL

/api/v1/envelope/send

Authorization

Bearer {token}

Content-Type

application/json

Body

{"data":"string"}

Use this endpoint to create a new envelope from a template and send it to recipients. The response returns the envelope UUID.

How it works

To create and send an envelope you should know what template will be used for envelope creation.

The request must reuse the same template objects that exist in the template definition, including the template UUID, template version, role IDs, document IDs, and field names.

Template example

This simplified template example shows which values you need to reuse in the send request.

<template uuid="56cacd6a-ffe7-4b77-9c0c-f928d9a18cb5" version="ab0d11cb-ebdd-42bd-a581-ddca1bb9b585">
    <flow>
        <roles>
            <role id="23f20eec-adad-4325-b553-1bde4be29198"/>
            <role id="b811f2b6-1656-42aa-9420-a9b8addb0246"/>
        </roles>
    </flow>
    <documents>
        <document id="4a61f258-fd9d-406c-b47e-81c90d4e5c47">
            <field name="date field" type="date"/>
        </document>
    </documents>
</template>

In the send request:

  • template/@uuid maps to envelope/@templateUuid

  • template/@version maps to envelope/@templateVersion

  • role/@id is reused in flow > roles > role

  • document/@id and field/@name are reused in documents > document > field

Request body

Send the envelope XML as a string inside the data field.

Request example

This example shows the XML payload that you pass inside the data field. It sends an envelope created from the template shown above.

The platform applies the provided values to the matching template fields and sends the envelope to the specified recipients.

Response example

Use this UUID to track the envelope status and perform follow-up actions.

Last updated

Was this helpful?