Send Envelope

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

Send envelope

Method
POST

URL

/api/v1/envelope/send

Authorization

Bearer {token}

content-type

application/json

mailboxUuid

{uuid}

Body

“{“”data””: “”string””}”

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

sendEnvelopeDto

{
    "data":"<envelope>
    templateUuid=\"56cacd6a-ffe7-4b77-9c0c-f928d9a18cb5\"
    status=\"DRAFT\"
    templateVersion=\"ab0d11cb-ebdd-42bd-a581-ddca1bb9b585\">
    <state>
            <message/>
    </state>
    <info>
            <subject>Envelope subject</subject>
            <message>Envelope message</message>
            <expire afterDays=\"30\" notifyIn=\"1\"/>
    </info>
    <flow>
            <roles>
                    <role id=\"23f20eec-adad-4325-b553-1bde4be29198\" mailboxUuid=\"9baec31c-e940-4894-b6d1-52033e1af66e\"/>
                    <role id=\"b811f2b6-1656-42aa-9420-a9b8addb0246\" mailboxUuid=\"42c95245-30c1-46ef-bd5b-a9a111deec10\"/>
            </roles>
    </flow>
    <documents>
            <document id=\"4a61f258-fd9d-406c-b47e-81c90d4e5c47\">
                    <field name=\"date field\">2020-12-02T10:20:10.846Z</field>
            </document>
    </documents>
</envelope>"
    }

RESPONSE

Response returns envelope UUID:

You can check envelope status by this UUID.

sendEnvelope

All provided data will be filled to appropriated fields and when next recipient open this envelope this data will be shown.

Last updated