Skip to main content

Generate and Send Envelope (Docusign Gen)

POST 

/restapi/v2.1/accounts/:accountId/envelopes/genAndSendEnvelopes

Docusign Gen-compatible endpoint that resolves the inbound genTemplateMappings[0].templateId to a previously-imported Propper template, merges the mapping values into the document, and dispatches the envelope for signature in a single call.

Requires the docgen.compat.docusign_gen flag to be enabled for the calling org. When the flag is off the route returns 404 to look identical to a non-imported template.

Request

Responses

Envelope created and sent.

Response Headers
    X-Request-Id

    Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.

    traceparent

    W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.