LumiCodex API

E-signature

Send documents for electronic signature: create an envelope, add documents and recipients, send it, and collect signed files with a sealed certificate of completion.

How it works

An envelope is the unit of signing. It holds the documents to sign, the recipients who act on them, and the sender identity shown in emails and in the signing app. Envelopes live under the same account as albums — an envelope is a container with subType: "envelope" — but they have their own endpoints under /accounts/{accountId}/envelopes.

There are two ways to send:

Create the envelope, upload documents, add recipients and a sender, then send. Use this when a person composes the envelope in your UI, or when files are uploaded from a browser or disk. Post the whole envelope — documents as URLs or base64 — and it is created and sent in one request. Use this for automated, server-side sending.

Recipients never call your application. Each one receives a link to the hosted signing app, opens the documents, and signs or declines there. If you build your own signing interface, the endpoints it needs are in Signing.

Envelope lifecycle

created (0) draft — documents and recipients can still be changed │ POST …/send ▼ in progress (1) recipients notified, waiting for signatures │ ├─ all recipients signed ─────────▶ completed (20) ├─ a recipient declined ──────────▶ declined (21) ├─ the sender voided the envelope ▶ voided (22) └─ signing failed ────────────────▶ error (23) An envelope is editable only while its status is created. Once it has been sent, upload, recipient, sender, and send calls return 409 Conflict with { "status": "completed", "message": … }. Check first with GET …/envelopes/{envelopeId}/recipients/{recipientId} or, from an agent, the envelopes_is_editable tool.

Listing envelopes

Envelopes appear in the account's container list. Read GET /accounts/{accountId}/containers and keep the entries whose subType is "envelope".

Authorization

Two different credentials are involved, and they are not interchangeable.

Everything under /accounts/{accountId}/envelopes except the recipient endpoints. Use a bearer token from sign-in, or an account API key sent as an x-api-key header. The credential needs owner, admin, or share permission on the account. …/recipients/{recipientId}/signer-app, /sign and /reject. The token is minted by LumiCodex and delivered in the signing link; it is scoped to one envelope and one recipient and expires with the envelope. Changing the account, envelope, or recipient in the route returns 403. This applies to loading, viewing, signing, and rejecting, including links issued before recipient-scoped permissions were introduced. You never create the token yourself. An account-scoped token also satisfies the recipient endpoints, which is what lets your backend read envelope state through GET …/recipients/{recipientId}. Prefer that plain read over /signer-app: the latter writes a "recipient viewed the document" event into the audit trail that ends up on the certificate of completion.

Create an envelope

curl -X POST https://api.lumicodex.com/accounts/{accountId}/envelopes \ -H "Authorization: Bearer <auth token>" \ -H "Content-Type: application/json" \ -d '{ "name": "Model release — Dupont", "description": "Shoot of 14 March 2026", "lang": "fr", "signatureOrder": 0, "authenticationAndDelivery": 0 }' const envelope = await fetch( `https://api.lumicodex.com/accounts/${accountId}/envelopes`, { method: "POST", headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Model release — Dupont", lang: "fr", signatureOrder: 0, // 0 sequential, 1 parallel authenticationAndDelivery: 0, // 0 magic link by email }), }, ).then((r) => r.json()); const envelopeId = envelope.id; Envelope name. Required — an empty name returns 400. It is shown to recipients. Optional internal description. Language for emails and the signing app (en, fr, es, de, it, pt). A recipient's own lang overrides it. 0 sequential (default) — each recipient is invited after the previous one signs. 1 parallel — everyone is invited at once. See the note below. How the signing link is delivered and how the recipient is authenticated. Defaults to 0, a magic link by email. Full list in Reference.

The response is an EnvelopeData record. Keep id — it is the envelopeId in every later call.

{ "id": "18d083239b8u2v9n2ny", "createDate": "2026-09-06T09:12:44.318Z", "name": "Model release — Dupont", "expires": "2026-10-06T09:12:44.318Z", "signatureStatus": 0, "signatureOrder": 0, "authenticationMethod": 3 }

A new envelope expires 30 days after creation, and unsigned recipients are reminded every 5 days, at most twice. Recipients cannot open the signing link after the expiry date.

Sequential delivery only, for now. The send endpoint always invites recipients one after another, even when the envelope was created with signatureOrder: 1. Until that is fixed, an envelope that must go to everyone at once needs one envelope per recipient.

Add documents

Upload the file as the raw request body. The file name goes in the path, and the Content-Type header should describe the file. PDF is the format the signing pipeline is built around.

curl -X POST \ "https://api.lumicodex.com/accounts/{accountId}/envelopes/{envelopeId}/upload/release.pdf" \ -H "Authorization: Bearer <auth token>" \ -H "Content-Type: application/pdf" \ --data-binary @release.pdf const file = input.files[0]; // a File from an <input type="file"> const document = await fetch( `https://api.lumicodex.com/accounts/${accountId}/envelopes/${envelopeId}/upload/${encodeURIComponent(file.name)}`, { method: "POST", headers: { Authorization: `Bearer ${token}`, "Content-Type": file.type || "application/pdf", }, body: file, }, ).then((r) => r.json());

The response is a DocumentData record with the document id, name, size, and pages. Call the endpoint once per document; order follows upload order.

Returns 409 if the envelope has already been sent, and 400 if the body cannot be read as a document. Do not send an empty body.

Documents by URL or base64

Direct send takes documents inline instead of as a binary upload, through a DocumentCreationData record. The same record controls the AI preparation steps that run when the envelope is sent.

File name, including the extension. Title shown to the recipient instead of the file name. HTTPS URL LumiCodex fetches the file from. Base64 file content, as an alternative to url. Generate an optional AI reading aid. Defaults to false; enabling it sends document content to the configured AI provider. The recipient opens the PDF first. The HTML is a reading aid and is not the document signed. Generate a plain-language summary of the clauses that matter, shown beside the document. Detect where each recipient must sign. Applied when a recipient has no explicit signatureLocations. Extract document metadata.

Add recipients

A recipient is a person who acts on the envelope. Signers are the default; viewers, approvers, and editors are also supported.

curl -X POST \ https://api.lumicodex.com/accounts/{accountId}/envelopes/{envelopeId}/recipients \ -H "Authorization: Bearer <auth token>" \ -H "Content-Type: application/json" \ -d '{ "role": 1, "firstName": "Camille", "lastName": "Dupont", "email": "camille@example.com", "phone": "+33685737999", "phoneCountry": "FR", "lang": "fr", "deliveryChannel": 1 }' 1 signer (default), 2 sealer, 3 viewer, 4 editor, 5 agent, 6 validator. Signers and sealers sign; viewers only read; editors, agents, and validators review. At least one of the two is required. Together they become the signer identity printed on the signature. Required to deliver a signing link by email. The address is normalized and linked to an existing LumiCodex user when there is one. Phone in international or national form; phoneCountry is the ISO country used to normalize a national number. Required for SMS or WhatsApp delivery. Language for this recipient's email and signing app. 0 none, 1 email (default), 2 SMS, 3 WhatsApp. Overrides the envelope's channel for this recipient. Overrides the envelope-level authentication for this recipient — for example a one-time password instead of a plain magic link. Paired with firstFactorAuthenticationChannel. The same pair exists as secondFactor… for two-factor signing. Where this recipient signs. Each entry is { itemId, signatureField, page, x, y, width, height } — itemId is the document id, page is 1-based, x and y are PDF points from the bottom-left corner, and the box defaults to 128 × 72 points. Leave it out to let aiSignatureLocations place the fields. Bind the recipient to an existing LumiCodex user instead of matching by email or phone.

The response is a RecipientData record. Its id is the recipientId used by the signing endpoints, and its signatureStatus starts at 0.

Adding a recipient creates or reuses a LumiCodex user for that email or phone number and grants it e-signature permission on this envelope only. Recipients do not need a LumiCodex account, a password, or an invitation.

Add a sender

The sender is the identity recipients see: who is asking for the signature, with what branding. One sender per envelope, and at least one is required before sending.

curl -X POST \ https://api.lumicodex.com/accounts/{accountId}/envelopes/{envelopeId}/senders \ -H "Authorization: Bearer <auth token>" \ -H "Content-Type: application/json" \ -d '{ "firstName": "Fred", "lastName": "Martin", "jobTitle": "Photographer", "companyName": "Studio Lumière", "email": "studio@example.com", "websiteUrl": "https://studio.example.com", "logo": "https://studio.example.com/logo.png" }' At least one is required, otherwise the envelope has no identifiable sender. Shown under the sender name in emails and in the signing app. Contact details offered to the recipient for questions. An HTTPS image URL or a base64 image, used in the emails. Link shown with the sender identity. Reuse a sender profile already stored on the account instead of repeating its fields.

Send the envelope

curl -X POST \ https://api.lumicodex.com/accounts/{accountId}/envelopes/{envelopeId}/send \ -H "Authorization: Bearer <auth token>"

Sending does three things, in order:

Runs the PDF pipeline — mobile-readable layout, highlights, and signature field detection for recipients with no explicit locations. Sends the signing link over the recipient's channel and records the delivery in the audit trail. The envelope stops being editable. Later calls to upload, recipients, senders, or send return 409. Document preparation is synchronous and can take minutes on long PDFs — the request timeout is 10 minutes. Set your client timeout accordingly, and do not retry blindly on a client-side timeout: check the envelope status first, since a retry on a sent envelope returns 409.

Validate your own payload before calling send. The endpoint does not reject an envelope with no document, no recipient, or no sender — it will simply produce an envelope no one can sign.

Create and send in one call

curl -X POST https://api.lumicodex.com/accounts/{accountId}/envelopes/direct-send \ -H "Authorization: Bearer <auth token>" \ -H "Content-Type: application/json" \ -d '{ "envelope": { "name": "Model release — Dupont", "lang": "fr" }, "documents": [ { "name": "release.pdf", "url": "https://files.example.com/release.pdf", "aiSignatureLocations": true } ], "recipients": [ { "role": 1, "firstName": "Camille", "lastName": "Dupont", "email": "camille@example.com", "lang": "fr" } ], "senders": [ { "name": "Studio Lumière", "email": "studio@example.com" } ] }' const envelope = await fetch( `https://api.lumicodex.com/accounts/${accountId}/envelopes/direct-send`, { method: "POST", headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json", }, body: JSON.stringify({ envelope: { name: "Model release — Dupont", lang: "fr" }, documents: [{ name: "release.pdf", content: base64Pdf }], recipients: [ { role: 1, firstName: "Camille", lastName: "Dupont", email: "camille@example.com", }, ], senders: [{ name: "Studio Lumière", email: "studio@example.com" }], }), }, ).then((r) => r.json());

The response is the full EnvelopeData, including the generated document and recipient ids. Same 10-minute timeout as /send.

Signing

Each recipient receives a link to the signing app with everything needed to open the envelope:

https://{signer-app}/sign ?account={accountId} &envelope={envelopeId} &recipient={recipientId} &lang=fr &token={link token}

The hosted app handles the whole flow. The endpoints below are what it calls — read them if you are building your own signing interface, or if you need to reason about what a recipient can do.

1. Open the envelope

const res = await fetch( `https://api.lumicodex.com/accounts/${accountId}/envelopes/${envelopeId}/recipients/${recipientId}/signer-app`, { headers: { Authorization: `Bearer ${linkToken}` } }, ); const body = await res.json(); // Terminal states come back as a status object, not an envelope. if (body.status === "completed") { /* 200 — already signed */ } if (body.status === "cancelled") { /* 410 — declined or voided */ } if (body.status === "expired") { /* 410 — past the expiry date */ }

Otherwise the response is an EnvelopeData containing only the calling recipient, plus the sender and every document. Each document carries short-lived download URLs, valid for two days:

The original document — what actually gets signed. HTML rendering for small screens, present when hasFluidLayout is true. HTML summary of the key clauses, present when hasHighlights is true. This call records that the recipient opened the envelope, with their IP, device, and timestamp — evidence that appears on the certificate of completion. Call it once, when the recipient actually opens the document. To read envelope state from your backend, use GET …/recipients/{recipientId} instead, which returns the same shape without writing an event.

2. Sign

await fetch( `https://api.lumicodex.com/accounts/${accountId}/envelopes/${envelopeId}/recipients/${recipientId}/sign`, { method: "POST", headers: { Authorization: `Bearer ${linkToken}`, "Content-Type": "application/json", }, body: JSON.stringify({ eSigTermsAgreedDate: Date.now(), fingerprint: deviceFingerprintHash, fingerprintData: JSON.stringify(deviceFingerprintDetails), documentMetricsSummaries: readingMetrics, }), }, ); // 204 No Content

An expired envelope returns 410 with status: "expired"; a voided or declined envelope returns 410 with status: "cancelled". A completed envelope returns 204 without another signature. Other envelopes that are not in progress return 409. The signing worker rechecks status and expiry, and its signature transaction rejects an envelope cancelled before the transaction commits.

Unix milliseconds at which the recipient accepted the electronic-signature terms. Recorded as consent evidence. Device fingerprint hash, stored with the signature proof. Serialized fingerprint detail behind the hash. Per-document reading evidence — how long the document was open, how far it was scrolled, which parts were displayed. 204 means accepted, not finished. Cryptographic signing, proof generation, and email delivery run after the response is sent. Treat the envelope as still in progress until a webhook arrives or a later read shows signatureStatus: 20. The endpoint is idempotent: a second call for a recipient who already signed does nothing.

When the last signer signs, LumiCodex:

  • signs each document and stores a proof record per signature,
  • sets the envelope to completed (20),
  • generates a certificate of completion — the full audit trail — and seals it,
  • emails every participant the signed documents and the certificate,
  • fires the signature webhook.

Before that, each intermediate signature confirms that signer by email and, in sequential order, invites the next one.

3. Decline

await fetch( `https://api.lumicodex.com/accounts/${accountId}/envelopes/${envelopeId}/recipients/${recipientId}/reject`, { method: "POST", headers: { Authorization: `Bearer ${linkToken}`, "Content-Type": "application/json", }, body: JSON.stringify({ rejectedAtDate: Date.now(), reason: "The shoot date is wrong.", fingerprint: deviceFingerprintHash, }), }, ); // 204 No Content

One decline ends the envelope: its status becomes declined (21), a sealed certificate of rejection is generated with the reason and the audit trail, everyone is notified, and the webhook fires. The remaining recipients can no longer sign.

Template documents

Contract library

A contract is one definition (its questions and what the workflow needs to know), a Word template that becomes the signed PDF and an HTML template that becomes the reading view of the signing page. The wording is short and written out in full; every answer is printed where it is read.

Each contract is written for four laws, and a sender gets the one of the country in their sender details: France (fr, in French and English), Switzerland (ch, in French, German and English), Germany (de, in German and English) and the United States (us, in English, governed by the law of the sender's state). The law is never chosen per document. It also sets the currency of amounts (euro, Swiss franc, dollar), the way dates are written and, in the United States, the paper size. A language that the contract does not have under the sender's law is refused.

Fifteen contracts are offered: client-production, event-organizer, commercial-content-licence, portfolio-permission, tfp-collaboration, adult-appearance-release, photo-use-agreement, publication-approval, appearance-publication-approval, commercial-image-release, minor-appearance-release, minor-publication-permission, location-access, mutual-nda and one-way-nda. The private-client booking (consumer-booking) is no longer offered.

Two contracts concern a child (client.minor is true in the catalog). The sender invites one parent. On the details page that parent names the child and either names the other parent or declares being the child's only legal representative. The other parent then becomes a third signer of the envelope: the order is first parent, other parent, sender. The document stays awaiting-signature until every parent has signed, and reminders go to the parent whose turn it is.

{ "languages": ["de", "en", "fr"], "laws": ["fr", "ch", "de", "us"], "photoLimits": { "maximum": 500, "thumbnails": 60 }, "studio": { "version": "1.2.0", "fields": [ /* same shape as a contract's inputs; "laws" and "optionalIn" say where a field exists or may stay empty */ ] }, "contracts": [{ "id": "photo-use-agreement", "version": "1.1.0", "category": "others", "title": { "fr": "…", "en": "Mutual permission to use photographs" }, "description": { "fr": "…", "en": "…" }, "languages": ["de", "en", "fr"], "laws": { "fr": ["en", "fr"], "ch": ["de", "en", "fr"], "de": ["de", "en"], "us": ["en"] }, "client": { "label": { "fr": "…", "en": "Adult model" }, "kinds": ["individual"], "adultDeclaration": true, "minor": false }, "privateSender": true, "notices": null, // or { "fr": { "en": "…", "fr": "…" } }: what to know before choosing it in that country "privateAnswers": null, "parents": [], "delivery": false, "photos": { "decisions": true, "uses": false }, "inputs": [ { "id": "project", "type": "text", "label": { "…": "…" }, "required": true, "group": "main" }, { "id": "licenceStart", "type": "date", "default": "today", "required": false, "group": "main" }, { "id": "licenceEnd", "type": "date", "after": "licenceStart", "span": "3y", "required": false, "group": "main" }, { "id": "renewal", "type": "select", "default": "yes", "options": [{ "value": "yes", "label": { "…": "…" } }], "required": false, "group": "main" }, { "id": "photographerChannels", "type": "urls", "default": { "fr": "…", "en": "their own websites and social media accounts" }, "required": false, "group": "main" }, { "id": "participantChannels", "type": "urls", "default": { "fr": "…", "en": "their own personal websites and social media accounts" }, "required": false, "group": "main" }, { "id": "clientCredit", "type": "text", "defaultFrom": "client.name", "required": false, "group": "terms" } ] }] }
  • required is true only when nothing fills the answer in: the question has no default and no defaultFrom. Every other answer may be left out and the contract prints its default. A contract never prints a blank: a render that would is refused with a 422 naming the question.
  • group is a hint for a form: main for what the sender decides for each job, terms for what is already filled in.
  • Types are text, textarea, date (yyyy-MM-dd), number, money (1200.00, euros), select (one of options[].value), email and urls.
  • A date with "default": "today" left empty is fixed on the day the document is sent (Paris). A date with after closes a period: left empty it is the start plus span (3y, 6m, 90d); it may not come before the start, nor lie in the past.
  • urls is a list of websites and profiles, written the way people write them: mysite.com, www.instagram.com/name, with or without https://, separated by lines, commas or spaces. They are stored as HTTPS addresses and printed without scheme or www.. A social account is sent as the address of its profile (instagram.com/name, tiktok.com/@name). With a default sentence, an empty answer prints that sentence: each side may then publish on their own sites and accounts.
  • atMost names another amount this one may not exceed (licenceFee within fee). requiredWhen makes a question required when other answers have the given values.
  • photos is set when the contract is about photographs chosen in an album: decisions when the recipient approves or declines each one, uses when the sender names where a licence lets them be used.
  • parents lists the contracts a signed first agreement may be; delivery marks a booking whose licence starts on delivery; privateAnswers lists, per question, the only answers a private-individual sender may give.

Sender details

GET / PUT documents/profile read and save { "values": { … } }, keyed by studio.fields[].id: kind (individual for a sole trader, organization for a company, private-individual for a person acting outside any business), legalName, businessId, address, email, and, optional or with a default, tradeName, signerName, signerEmail, signerTitle, vat, cureDays, removalDays, credit, privacyEmail and privacyNoticeUrl. The response adds complete and missing. A company names who signs (signerName, signerTitle); a sole trader or a private individual signs in their own name with their own email. Fields marked professional are not asked of, and not kept for, a private individual. A document keeps the details it was sent with.

A private individual can send the contracts whose privateSender is true (photo permissions, TFP agreements, NDAs, location permission). For location-access their access is free and for a personal portfolio, and no insurance is claimed unless they choose it. Any other contract, or a paid own-PDF order, answers 422.

Review and send

{ "templateId": "photo-use-agreement", "language": "fr", "requestId": "0b9c3a2e-6d0c-4d0e-9a41-0f1f6f5f3c11", "answers": { "project": "Portraits en studio" }, "recipient": { "email": "lea@example.com", "kind": "individual" }, "photos": { "albumId": "18fd498229fy6vko62l", "itemIds": ["18fd49a11a2b3c4d5e6"], "snapshotSha256": "…" }, "confirmations": { "termsReviewed": true, "languageUnderstood": true, "electronicSignatureSufficient": true } }

preview checks the answers and returns title, fields (the answers as printed) and html: the contract as the other party will read it, an HTML fragment in which every value is already encoded. For a contract with photos it also returns photos with the snapshotSha256 to send back when creating, and thumbnails (false above 60 photographs: the PDF then lists file names). Creating needs the three confirmations and, for photos, a requestId (UUID) and the reviewed snapshotSha256; the same requestId never sends twice. Of the recipient only email is needed: they complete the rest themselves.

The recipient's details and decisions are theirs: nothing is ticked or decided on their behalf. Once they submit, the PDF is rendered, the envelope's document gets its fluidLayout (the same contract in HTML, built from the contract's own template, not generated by AI) and they continue to signing. The signing page opens on that reading view when a document has one; the PDF, one tap away, remains the document that is signed. A document keeps the contract version it was composed with; its record keeps the contract, its version, the SHA-256 of both templates and every value the templates were given.

Photographs

A contract with photos takes 1 to 500 photographs of one album (photoLimits.maximum); videos are not part of a photo contract. The admin starts with every photograph of the album. Up to 60 photographs (photoLimits.thumbnails) the PDF prints a reference image beside each file; above, it lists the file names two per row. The signing pages always show every photograph in the gallery viewer.

Each original is fingerprinted (SHA-256) once and the result is kept. For a large album that has never been used in a document, preview may answer 409 with { "code": "photos-preparing", "done": 120, "total": 300 }: call it again; each call continues where the last stopped. A 409 with exhibit-changed, archive-changed or photo-changed means the album changed since the review: preview again. Later additions to the album are never part of a document already sent.

With photos.uses (a paid licence), photos.uses in the request lists one to three of website, social and advertising, each with its channels: addresses for the first two (accepted like a urls answer), a description in words for advertising.

{ "accountId": "18f51f3e29bdjq6nhbc", "albumId": "18fd498229fy6vko62l", "groupId": null, "tokensExpire": "2026-11-12T19:00:00+00:00", "photos": [{ "itemId": "18fd49a11a2b3c4d5e6", "fileName": "studio-0412.jpg", "decision": "approved", "item": { "id": "18fd49a11a2b3c4d5e6", "width": 5792, "height": 8688, "…": "…" }, "edgeToken": "eyJ…" }] }

This recipient route takes the signing link's token, for any signer of the document, while the document is open or signed (404 once cancelled, declined or expired). Each private photograph comes with its own edgeToken, scoped to that one item and valid for at most an hour; the link opens nothing else of the album. A photograph that has since left the album has no item and is listed by name. Call the route again to renew the tokens of a page left open. The contract's HTML lists the photographs in a [data-contract-photos] block (li[data-photo][data-decision]); the signing pages show the gallery above that list.

Current photo document status

POST documents/photo-status with { "albumId", "itemIds" } (up to 100 ids) returns, per photograph, versionStatus (matched, changed, unverified or uncovered) and the records of the signed documents that name it: { documentId, title, partyName, kind, status, startsOn, endsOn, channels }. kind is approval (the recipient decided each photograph), licence or portfolio; status is scheduled, active, expired or declined. With renewal set to yes a permission stays active after its first term and has no endsOn: it runs until one party refuses its renewal in writing, which the platform does not see. The status reads signed evidence and the cached fingerprint of the current original; it changes no gallery permission and never downloads a file.

Follow-ups and several participants

publication-approval follows a signed tfp-collaboration, and appearance-publication-approval a signed adult-appearance-release (parents in the catalog). Send parentDocumentId with the recipient's name and email exactly as in the first agreement; both parties must have signed it, and the sender details must be those it was sent with. A summary with canRequestApproval: true can be followed. Any other contract refuses a parentDocumentId.

For a shoot with several adults, create one document per person, each with its own requestId: every person gets a separate agreement and completes their own details. The admin does this for up to 20 people.

Duplicate a document

GET documents/{documentId}/duplicate returns the editable create input of a document (contract, language, answers, recipient, photo selection, parent) with no confirmations and no requestId. It writes nothing. A new send uses the current sender details and the current version of the contract.

Send your own PDF

POST /accounts/{accountId}/documents/own-pdf accepts a multipart form with one file and an input JSON field. Use an authenticated user with account access. The PDF must be unsigned, unencrypted, at most 20 MiB and 30 pages. The whole request is limited to 20 MiB + 64 KiB. Validation happens before envelope creation.

{ "requestId": "{a fresh UUID, reused only for retries of this exact request}", "title": "Photography agreement", "language": "fr", "recipient": { "email": "client@example.com", "name": "Alex Client" }, "boxes": [ { "signer": "client", "page": 1, "x": 50, "y": 80, "width": 160, "height": 60 }, { "signer": "studio", "page": 2, "x": 50, "y": 80, "width": 160, "height": 60 } ], "paidConsumerOrder": false, "confirmations": { "electronicSignatureSufficient": true, "languageUnderstood": true, "termsReviewed": true } }

Exactly one box belongs to each signer. Pages are one-based; integer coordinates use PDF default user space, from the bottom left, including the crop origin. Width is 80–300 and height 30–120; boxes must fit inside the crop box and must not overlap. The admin converts PDF.js viewports for rotated pages and uses 160 × 60 boxes. Files remain in the browser until the photographer reviews every page and confirms Send.

Returns the ordinary document summary with templateId: "own-pdf". The original file SHA-256, reviewed input, boxes, sender and confirmation time are recorded. All AI processing flags are off. The client receives the ordinary signing invitation, followed by the studio countersignature; there is no details-entry step. Reminders, cancellation and final downloads use the existing document endpoints.

Keep requestId and the exact file/input when retrying after a lost response. An existing request returns its recorded summary without creating another envelope or email. Changing that request's payload returns 409. A creating or failed result requires checking the original envelope before any new send. Validation returns 422; oversized requests return 413. Duplication returns ownPdf: { input, fileName, sha256 }, with request ID and confirmations cleared. Upload the original again; reuse placements only when the hash matches.

If an uncertain send later completes or is declined, the document summary follows the envelope's final result and its PDF/certificate downloads remain available. The original send error stays in the stored evidence. An unfinished uncertain send remains failed and is not automatically resent.

For a paid private-client PDF, set paidConsumerOrder: true and provide an HTTPS privacyNoticeUrl in Studio details covering withdrawal processing. The client’s final button says “Signer et commander avec obligation de paiement” in French or “Sign and order with obligation to pay” in English. Only that recipient receives paymentOrderRequired: true and consumerWithdrawalUrl in the signer-app response. The withdrawal link is also included in their invitation and reminders.

This does not check the PDF’s consumer terms, supply the complete pre-contract information pack or validate the uploaded agreement. Newly created paid PDFs use the retained-copy access described below. Existing paid PDFs created before withdrawal support have no withdrawal reference; this change does not silently migrate or resend them.

Retained consumer contract copies

A paid own-PDF order for a private client includes a private /contract#reference=… link. POST /consumer-contracts/lookup takes { "reference": "…" } and returns contract/studio identity and files: each has id, stage, sha256, size, capturedAt and optional signatureReceivedAt. Stages are offer, client-signed, signed, completion-certificate and rejection-certificate. A signing timestamp describes receipt of the signing action; arbitrary uploaded PDFs retain their own formation terms.

POST /consumer-contracts/download takes { "reference": "…", "fileId": "…" } and returns the verified PDF. Unknown or foreign references return 404; an integrity failure returns 409. The reference stays in the request body, never the URL. Responses are not cached. Both endpoints are anonymous, rate-limited and independent of account/signing credentials.

Copies are private objects outside the photographer’s storage prefix, pinned to an object version and checked by SHA-256 when archived and downloaded. Their metadata is outside the account partition without TTL. Completed signature proofs are required before labelling a copy signed. Recovery fills missing signed copies and the applicable completion or rejection certificate. Existing uploaded contracts are not backfilled.

Retained copies survive expiry and account closure. Missing copies must be investigated; their absence does not determine whether an agreement was formed. The archive has no automatic erasure clock. Account deletion returns 409 while known consumer envelopes are active or required retained copies are missing. Resolve signing and archive failures first. Actual retention, restoration, account-closure handling and monitored recovery remain deployment responsibilities; a configured policy reference is not proof of those operations.

Online withdrawal for consumer contracts

The signer app’s /withdraw#reference=… page opens independently of the signing token. It requires no user account, reason or photographer approval and remains available after signing expiry and photographer-account closure. It records a declaration; it does not determine eligibility, cancel an envelope, change gallery access or issue a refund.

POST /consumer-withdrawals/lookup takes { "reference": "…" }. The response identifies the contract and studio and supplies the studio’s privacy notice and contact. Keep the private reference out of query strings, analytics and request-body logs. These anonymous endpoints use the reference as their credential and are rate-limited.

{ "reference": "64-character private reference from the invitation", "requestId": "47ec1495-97b0-45bb-ab91-616d746962a2", "documentId": "document-id-from-lookup", "firstName": "Camille", "lastName": "Martin", "acknowledgementEmail": "camille@example.com", "confirmed": true }

Present a review step before the explicit “Confirmer la rétractation” action. The response contains requestId, documentId, the exact statement, immutable submittedAt, acknowledgementEmail, acknowledgementStatus, acknowledgementAcceptedAt and refundDueBy. The last date is fourteen days after receipt, for refunds due under the applicable statutory conditions; it is not a payment or eligibility decision. A later or corrected declaration does not restart an earlier valid withdrawal’s deadline.

Retry an uncertain submission with the same UUID and fields. Changed fields with the same UUID return 409. A new UUID records a new declaration, for example to correct an email address, without changing or erasing earlier evidence. Invalid fields return 422; an unknown reference returns 404. Do not reject a declaration merely because a signing link expired or a purported withdrawal deadline passed.

Client acknowledgements and studio notifications are attempted immediately and recovered independently, with five total attempts per destination. accepted means the email provider accepted the message, not that the recipient received or read it. pending/sending indicate unconfirmed sending; needs-attention requires operator follow-up. Mail failure does not erase the declaration. The page also offers a downloadable text copy. Account-scoped document summaries include a withdrawals array with every declaration and its current acknowledgement status.

Withdrawal evidence is retained separately from the account without a TTL. This is not the retained signed contract. Rollout requires the separate signer page, recovery schedule, monitored mail failures and a verified privacy/retention policy. The function follows L221-21 and D221-5; its implementation does not certify the contents of an uploaded PDF.

The private operator endpoint GET /ops/overview adds documentsByPlan: [{ plan, total, createdThisMonth, completed, waiting, failed, recordedEmailsThisMonth }]. It requires platform moderation permission. Counts use current account plans and UTC months; email counts deduplicate provider IDs in signature audits and exclude unaudited messages. They are operational counts, not invoice totals or usage limits.

Booking licence and delivery receipt

The bookings client-production and event-organizer ("delivery": true in the catalog) grant a non-exclusive licence that starts when the photographs are delivered and the price is paid, without another signature. answers.licenceFee is the part of answers.fee that pays for the licence and may not exceed it. The licence is worldwide; its use and its length are answers of the contract. Social media, paid advertising and press distribution need separate terms. notificationNotes contains recordedAt, recordedBy, reference and optional notifiedAt. No notification timestamp is inferred merely from the first receipt listing a photo; payment evidence is separate.

A completed eligible booking returns canDeliver: true in its summary. In the admin, open the Client Gallery's Website & downloads tab and choose the signed booking. The account-scoped API checks the matching client assignment, current ordinary user permissions, published website, moderation and JPEG download permission. It changes no access rights and records no payment. Older signed bookings retain their original terms and cannot use this action.

// Account credentials, not a recipient magic link. const preview = await api.get(deliveryUrl + '/preview?groupId=' + groupId); // { snapshot: { documentId, envelopeId, inputSha256, title, clientEmail, // language, groupId, galleryName, galleryUrl, // files: [{ itemId, albumId, fileName, downloadFileName, // archiveVersionId, versionId, etag, archiveKey, // originalSha256, originalVersionId, originalEtag }] }, snapshotSha256 } // Show the fixed list and ask the sender to confirm it belongs to this booking. { "groupId": "{client gallery ID}", "snapshotSha256": "{hash returned by preview}", "confirmsProjectPhotos": true }

Returns { id, snapshot, snapshotSha256, createdAt, status, text, emailAcceptedAt, notifiedAt, notificationReference, notificationNotes }. A changed list returns 409 with code: "delivery-changed"; invalid gallery setup returns 422. Review again after correcting it. A receipt lists at most 5,000 photos and its canonical snapshot must fit within 120,000 UTF-8 bytes. Split larger deliveries. The full receipt is emailed in the agreement's language, with a text attachment and the studio's Reply-To address. GET …/{documentId}/deliveries returns saved receipts including their downloadable text, even if the gallery has since changed. All receipt responses are no-store. The first review reads the archived originals with at most four concurrent streams; later reviews reuse hashes after checking the source key, storage version and ETag. A two-minute request limit bounds this work. If a review times out, retry it: completed hashes remain cached and no receipt email has been sent. Missing or changed originals return 409 (archive-changed or photo-changed). The size check may reject a large list before hashing, reserving space for the original hashes and receipt metadata.

sent means the email provider accepted the message, not that the client read it. sending and failed may represent uncertain outcomes. Repeating the same document/snapshot returns its saved result without emailing again. Check the provider before manually forwarding the downloadable receipt. Receipts have no TTL; their list and text are immutable. Later gallery additions need another reviewed receipt. snapshotSha256 hashes the receipt's canonical snapshot; inputSha256 hashes the frozen contract input. Neither is an original-photo or signed-PDF hash. originalSha256 is the lowercase SHA-256 of the archived original bytes, not the downloadable JPEG. originalVersionId and originalEtag identify that archived object; they can differ from the media image version. Older receipts have no original hashes. A repeated or corrected receipt does not renew an existing photograph's licence term. Receipt text distinguishes new, previously listed and replaced versions by photograph ID and references the earlier receipt.

{ "notifiedAt": "2026-11-07T14:00:00Z", "reference": "Client acknowledgement email received on 7 November 2026" }

Requires an authenticated account user. Record evidence the client actually received the receipt, including after a manual notification. The date must be between receipt creation and now; a reference is required (up to 500 characters). This saves one notification entry with the recording user, leaves the original receipt unchanged and sends no email. Returns the updated receipt. A second entry returns 409; notification cannot be overwritten. A still-running email request blocks recording for its first five minutes. createdAt records creation, emailAcceptedAt provider acceptance, and notifiedAt the sender's evidenced notification declaration. The system does not independently verify that declaration or establish payment. To correct or dispute a declaration, POST the same shape to …/{receiptId}/notification-notes. reference is required; notifiedAt is optional when the correct date is unknown. This appends an attributed note while preserving the original declaration and earlier notes (up to 20). notificationNotes contains recordedAt, recordedBy, reference and optional notifiedAt. No notification timestamp is inferred merely from the first receipt listing a photo; payment evidence is separate.

Automatic reminders

A daily job selects one reminder for the person currently expected to sign: after five and ten days from creation, then a final warning within three days of expiry. The details step uses /complete; a prepared contract uses /sign. Expiry notices go to both parties. Completed, declined, cancelled and actively preparing documents are skipped. After downtime only the latest overdue reminder is sent, not a burst of older reminders.

The internal POST /schedulers/document-reminders endpoint requires X-LumiCodex-Scheduler-Key matching Ops:SchedulerKey (503 if unconfigured, 401 if incorrect). It returns 202 before processing. A conditional scheduler-event claim per document, recipient and notice prevents duplicate sends during concurrent or repeated runs. Failed or interrupted sends stay claimed because delivery may have occurred; inspect the provider and audit records before using the manual reminder. A 202 is acceptance of the run, not confirmation that emails were delivered.

Read the details request

{ "status": "details", "language": "fr", "title": "Autorisation réciproque d'utilisation de photos – Portraits en studio", "studioName": "Camille Martin", "kinds": ["individual"], "kind": "individual", "name": "Léa Dubois", "email": "lea@example.com", "summary": [{ "label": "Où le photographe publie", "value": "camille-martin.example\ninstagram.com/camille.martin" }], "adultAttestationRequired": true, "photoDecisions": true, "photos": { "accountId": "…", "albumId": "…", "groupId": null, "photos": [{ "itemId": "…", "fileName": "studio-0412.jpg", "item": { "…": "…" }, "edgeToken": "eyJ…" }] } }

status is details while the form is needed. Any other value carries only status and language: preparing (another request is generating the PDF), ready (continue to /sign), completed, cancelled or expired. This read writes no audit event.

summary lists what the sender decided for this job, with labels written for the person reading. photos is present when the contract has photographs, in the shape of the photographs route; reading the details again renews its viewing tokens. With photoDecisions the recipient approves or declines each photograph; with adultAttestationRequired they state that they are an adult with the capacity to sign. lockedIdentity and parentReference are set on a follow-up, whose recipient is the person who signed the first agreement. With minor the document concerns a child and the recipient is a parent: the page asks for the child and for who else signs, and childName, childBirthDate, otherParentName and otherParentEmail return what an earlier, refused submission contained. law is the law of the document; guardianStatement and soleGuardianStatement are the two statements a parent makes, worded for that law (a parent signs alone as the only legal representative in France and Germany, with the other parent's agreement in Switzerland, with full authority in the United States). Show them as given: the signed record keeps the same words.

Submit the details

const res = await fetch(detailsUrl, { method: "POST", headers: { Authorization: `Bearer ${linkToken}`, "Content-Type": "application/json" }, body: JSON.stringify({ kind: "organization", name: "Acme Images SAS", address: "4 quai Saint-Antoine, 69002 Lyon", signerName: "Alex Durand", signerTitle: "Directeur marketing", businessId: "123456789", // optional company registration number / SIREN // When the details asked for them: // adultConfirmed: true, capacityConfirmed: true, // photoDecisions: [{ itemId: "18fd49a11a2b3c4d5e6", decision: "approved" }, { itemId: "…", decision: "declined" }], // For a child (minor: true): the child, the parent's own statement, and who else signs. // childName: "Jules Dubois", childBirthDate: "2018-05-14", guardianConfirmed: true, // otherParentName: "Marc Dubois", otherParentEmail: "marc@example.com", // or soleGuardian: true }), }); // 200 { "status": "ready" } — open /sign with the same query string // 422 { "detail": "…", "errors": [{ "code": "invalid-input", "field": "recipient.name", "message": "…" }] }

Validation failures return 422 with a detail message and, where available, an errors array of { code, field, message } entries. Editable fields use answers.questionId, studio.fieldId or recipient.fieldId. Show the message beside the matching field and keep the entered values. Show a message with no matching control in the form summary. Messages are in the language of the document (French, English or German).

For a child, childBirthDate is YYYY-MM-DD and must make the child under 18. The parent either sends otherParentName and otherParentEmail (an address different from their own and from the sender's; that person is invited to sign once the first parent has) or soleGuardian: true. Both statements are the parent's own and are kept in the signed record; errors use recipient.childName, recipient.childBirthDate, recipient.guardianConfirmed, recipient.otherParentName and recipient.otherParentEmail.

businessId is an optional company registration number (up to 80 characters), printed with the party identity. It is also accepted in the sender’s recipient object and returned by the details and duplicate reads. signerName and signerTitle apply to businesses only; an individual signs in their own name. The call renders the contract and uploads the PDF before it returns, so allow a few seconds. It records the request evidence and a sent audit event carrying the PDF's SHA-256, and sends no further email to this recipient. A second submission returns the current state without generating another PDF.

The sender side lives under /accounts/{accountId}/documents with account credentials: catalog, profile (studio details), preview, create, list, remind, cancel, countersign and download. It is the admin's API and may change; build integrations on the envelope endpoints above. Cancelling voids the envelope (signatureStatus 22), writes a voided audit event and emails every recipient.

Download documents and proofs

curl -X POST \ https://api.lumicodex.com/accounts/{accountId}/envelopes/{envelopeId}/download \ -H "Authorization: Bearer <auth token>" { "documents": [ { "name": "release.pdf", "type": "document", "url": "https://…" }, { "name": "certificate-of-completion-…pdf", "type": "proof", "url": "https://…" } ] } The envelope's documents. Once signing has completed, these are the signed versions. The certificate of completion when the envelope is completed, or the certificate of rejection when it is declined. Absent while the envelope is in progress. The URLs are pre-signed and expire after one hour. Fetch them without an Authorization header — do not send your LumiCodex token to storage — and request fresh ones rather than storing them.

Signature events

Register one webhook per account (see Webhooks) and LumiCodex posts signature progress to it. This is the reliable way to know an envelope finished, since /sign returns before the work completes.

{ "source": "LumiCodex", "type": "signature", "accountId": "18d0832354e7ot0p9cm", "envelopeId": "18d083239b8u2v9n2ny", "recipientId": "18d0846a1f2k4p8m7qz", "signatureStatus": 20 } That recipient signed. In a sequential envelope, the next recipient has just been invited. Every recipient has signed. The signed documents and the certificate of completion are available from the download endpoint. A recipient declined. The envelope is closed and the certificate of rejection is available. Signing failed for that recipient and the envelope is in the error state. Inspect it before retrying. Handlers must be idempotent — the same event can arrive more than once. Respond 2xx quickly and do the work asynchronously.

Reference

Enumerations are sent and returned as integers, not names.

signatureStatus

Draft. Editable. Sent, waiting for signatures. Every recipient signed. A recipient declined. Cancelled by the sender. Signing failed.

authenticationAndDelivery

Magic link by email. Magic link by SMS. One-time password by email. One-time password by SMS. One-time password by email as a second factor. One-time password by SMS as a second factor. Identity verification, invited by email. Identity verification, invited by SMS.

Other enumerations

0 owner · 1 signer · 2 sealer · 3 viewer · 4 editor · 5 agent · 6 validator 0 sequential · 1 parallel 0 none · 1 email · 2 SMS · 3 WhatsApp 0 none · 1 one-time password · 2 password · 3 magic link · 4 authenticator · 5 identity verification 0 none · 1 email · 2 SMS · 3 WhatsApp · 4 form · 5 API

Errors

Missing envelope name, unreadable document, or a malformed id in the path. Missing, wrong, or expired token — including an expired signing link. The credential has no permission on this account or envelope. Account, envelope, or recipient not found. The envelope has been sent and can no longer be modified. The signing link points to an envelope that is declined, voided, or expired.

Agent tools

The same operations are available to AI agents through the LumiCodex MCP endpoint: envelopes_list, envelopes_create, envelopes_get, envelopes_is_editable, envelopes_add_document, envelopes_add_recipient, envelopes_add_sender, envelopes_send, envelopes_get_downloads, and envelopes_direct_send. They take the same fields as the REST bodies documented here, and the account is inferred from the API key or bearer token.