Two companies. One venture. A partnership neither could pull off alone. World Industries and Meridian Corp have found the kind of deal that comes around once — combining strengths, splitting nothing, both sides better off than they started. No losers here. Just two boards who see what's possible together, and a deadline before the opportunity moves on.
The only thing standing between a handshake and a headline is trust — proof that every signature is real, every document is untampered, and every step is recorded beyond dispute. That's where you come in.
To launch the venture safely, you'll need to command the three forces of the signing workflow:
Every field must be signed. Every step must be verifiable. Two companies are betting their future on this moment — and on a platform they can trust. Make it count.
Objective: Build a signing workflow end-to-end — upload a document, create an envelope with two recipients in sequential signing order, send it, and confirm completion.
This mission sends real signing notifications to two email addresses. Before running the steps, open the Doctavian collection in Postman, go to Variables, and set the following:
| Variable | Description |
|---|---|
mission2.partyAEmail | We recommend using your own email here. The collection uses this address for Party A and as the envelope's sender email, so you'll sign the envelope yourself, receive the sender's status notifications, and can view the envelope in the portal |
mission2.partyAName | Full name of Party A — we recommend your own name |
mission2.partyBEmail | Email address of Party B — notified after Party A signs |
mission2.partyBName | Full name of Party B |
Use email addresses you have access to — both parties will receive signing notifications and will need to complete the signing session for the mission to reach
Completedstatus.
Before running the steps, Download the Joint Venture Agreement and take a look at where the two signature blocks sit — one for Party A, one for Party B. Knowing their position on the page makes it much easier to follow how the fields are placed in Step 2.
Open the Doctavian Postman collection and navigate to the Mission 2 — The Meridian Merger folder. Run the steps in order — each one builds on the previous.
Don't have the collection yet? Make sure you've completed the Quickstart and have a valid access token before starting.
Unlike Document Generation, the Signatures API doesn't separate the pieces into independent resources you assemble one at a time. The entire envelope — every document, every recipient, every field, every rule — is built in a single, tightly structured request. This mission walks through what's actually inside that request and why each piece matters.
Before the envelope can be assembled, the document must be in Doctavian Storage: there is no way to send document content inline when creating an envelope. Open Step 1 — Upload the joint venture document in Postman, attach the file you downloaded earlier, and send the request:
POST https://api.doctavian.com/v1/signatures/document/upload
Authorization: Bearer <token>
x-api-key: <api-key>
Content-Type: multipart/form-data
file: mission-2-jv-agreement.pdfA 201 Created confirms the upload. Note the storage id at result.data.files[0].id: it is the only thing the envelope create request needs to know about the document. The collection saves it as {{mission2.uploadedDocument}}.
A storage id resolves for 24 hours and can be used once: creating the envelope moves the file into it. If you need to rerun Step 2, rerun Step 1 first; reusing the id fails with
500FILE_NOT_EXISTS_IN_STORAGE. See Storage and File IDs.
Open Step 2 — Create the envelope. It calls POST /signatures/envelope/create (signatures-envelope-create), and the body has four sections, each playing a different role:
{{mission2.uploadedDocument}} in urn, with loadMethod: "Storage", and assigns it referenceDocumentId: 1. This local ID is what the fields section below uses to point back at this specific document — it has nothing to do with the document's storage id, it only needs to be unique within this request.referenceSignerId (1 and 2), the signer role and a signOrder (1 and 2). Both are marked mandatory: true, meaning if either one declines, the whole envelope is declined and the other recipient is canceled — there's no partial deal here.referenceDocumentId and referenceSignerId. The positions correspond to the signature blocks printed on the agreement itself.subject and message, the sender shown to recipients, and the rules governing the whole transaction: signing order, expiry, reminders, sender notifications, and the locale and timeZone used for notifications, signing pages and dates.Put together, the request looks like this:
POST https://api.doctavian.com/v1/signatures/envelope/create
Authorization: Bearer <token>
x-api-key: <api-key>
Content-Type: application/json
{
"documents": [
{
"referenceDocumentId": 1,
"name": "Joint Venture Agreement",
"loadMethod": "Storage",
"urn": "{{mission2.uploadedDocument}}"
}
],
"recipients": [
{
"referenceSignerId": 1,
"name": "{{mission2.partyAName}}",
"email": "{{mission2.partyAEmail}}",
"role": "signer",
"signOrder": 1,
"mandatory": true
},
{
"referenceSignerId": 2,
"name": "{{mission2.partyBName}}",
"email": "{{mission2.partyBEmail}}",
"role": "signer",
"signOrder": 2,
"mandatory": true
}
],
"fields": [
{ "name": "signature_party_a", "type": "signature", "referenceDocumentId": 1, "referenceSignerId": 1,
"page": 1, "positionX": 85, "positionY": 690, "width": 200, "height": 60, "isRequired": true },
{ "name": "name_party_a", "type": "name", "referenceDocumentId": 1, "referenceSignerId": 1,
"page": 1, "positionX": 115, "positionY": 650, "width": 175, "height": 35, "isRequired": true },
{ "name": "signature_party_b", "type": "signature", "referenceDocumentId": 1, "referenceSignerId": 2,
"page": 1, "positionX": 340, "positionY": 690, "width": 200, "height": 60, "isRequired": true },
{ "name": "name_party_b", "type": "name", "referenceDocumentId": 1, "referenceSignerId": 2,
"page": 1, "positionX": 365, "positionY": 650, "width": 175, "height": 35, "isRequired": true }
],
"envelope": {
"subject": "Joint Venture Agreement — Signature Required",
"message": "The terms have been agreed. Please review and sign the Joint Venture Agreement to finalise the partnership.",
"senderName": "World Industries",
"senderEmail": "{{mission2.partyAEmail}}",
"isSignOrder": true,
"expireInDays": 5,
"alertDaysBeforeExpiry": 2,
"firstReminderDays": 2,
"repeatingReminderDays": 1,
"notifyWhenOpened": true,
"notifyWhenSigned": true,
"locale": "en-GB",
"timeZone": "Europe/London"
}
}Field coordinates are pixels from the page's top-left corner; see Place Document Fields. When you write your own envelopes, the full set of rules for each section is in the API reference.
Together, isSignOrder and signOrder create the sequencing here. With isSignOrder set to true, only the first recipient in the order is emailed when the envelope is sent; Party B is notified once Party A has signed.
Send the request. A 201 Created confirms the envelope is assembled and in Draft status. Note the envelope id at result.data.envelope.id; the collection saves it as {{mission2.envelopeId}}.
The envelope is in
Draftuntil you send it — no notifications go out yet. You can still change it withPUT /signatures/envelope/{envelopeId}/updateat this point. You can also open the envelope directly in the Doctavian Portal to see it exactly as a portal user would.
Open Step 3 — Send the envelope and send the request. This is the moment the envelope stops being a configuration and becomes a live transaction:
POST https://api.doctavian.com/v1/signatures/envelope/{{mission2.envelopeId}}/send
Authorization: Bearer <token>
x-api-key: <api-key>The body is optional; it carries only an externalContext to echo back. Because of isSignOrder: true, only Party A receives a notification email right now — Party B's turn starts once Party A signs.
A 200 OK confirms the envelope is sent: result.data.envelope.status moves from Draft to In Progress. From here the envelope's documents, recipients and fields are fixed.
Party A and Party B will each receive a personalised email inviting them to sign through the portal. Step 4 below shows you how to track their progress via the API.
Open Step 4 — Check envelope status and send the request:
GET https://api.doctavian.com/v1/signatures/envelope/{{mission2.envelopeId}}/get
Authorization: Bearer <token>
x-api-key: <api-key>The response shows result.data.envelope.status alongside each recipient's own status and signDate, and the current value of every field. This is how you'd track progress programmatically rather than waiting on email notifications alone.
Once Party A signs, Doctavian logs it in the envelope's audit trail and automatically notifies Party B — no separate API call required to advance the sequence. Run this step again after both parties have signed to confirm the full sequence completed.
A completed envelope returns status: "Completed" with both recipients showing status: "Completed". For the other statuses, see Envelope Lifecycle.
Polling is fine for a mission. In production, send an
X-Client-Authorizationheader with the send request and Doctavian willPOSTto your service every time the envelope's or a recipient's status changes. See Envelope status callbacks.
isSignOrder and each recipient's signOrderThe agreement is signed. The joint venture starts. Continue to Mission 3 — The Empire Scales →