MFA Initiate
Markdown for LLMsGenerates a one-time multi-factor authentication code for the recipient a tid identifies and emails it to them, at the address returned in destination.email; codes are sent only by email. Verify it with signatures-mfa-verify before expiresAt, 10 minutes after the call. A code can be used once, and each call sends a new code with a new expiry.
A recipient whose isMfaEnabled is true on signatures-envelope-check must verify a code before they can accept, open, sign, reassign, decline or comment on the envelope with the tid alone.
The request body is optional and carries only externalContext.
No bearer token is required. This operation is open to guest callers — a recipient with no Doctavian account, acting from the link in their email — who are identified by the tid from that link instead of a token. The API key is still required, as on every operation: send it in the X-Api-Key header or the x-api-key query parameter. When the call carries no bearer token, the caller is anonymous and the response carries no userId.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Query Parameters
Transaction token identifying one recipient position on one envelope. It reaches the recipient in the link of their notification email — or, for an inpersonsigner, reaches the host named in hostEmail — and signatures-envelope-list returns it as transactionTokenId on entries for positions the caller holds.
Mandatory, and checked even when the call also carries a bearer token. A value that is not a GUID, or a GUID that matches no token, is rejected with 401 INVALID_TRANSACTION_TOKEN, and an empty value (?tid=) with 401 MISSING_TRANSACTION_TOKEN. Leaving the parameter out matches no operation and is answered with 404 NOT_FOUND from the gateway.
uuidRequest Body
application/json
Optional. The only property read is externalContext, which is echoed back unchanged in the response; send no body, or {}, when there is no context to pass.
TypeScript Definitions
Use the request body type in TypeScript.
Optional request body for an operation that takes no input of its own beyond its path and query parameters. The only property read is externalContext, which is echoed back in the response. Send {}, or no body at all, when there is no context to pass.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/signatures/mfa/initiate?tid=6c82c35c-ded7-4b49-83a1-e5fed49a0e69" \ -H "Content-Type: application/json" \ -d '{ "externalContext": { "id": "12345" } }'{ "result": { "statusCode": 200, "message": "OK", "data": { "recipient": { "method": "email", "destination": { "email": "name@example.com" }, "expiresAt": "2026-10-15T10:01:05.000Z" } } }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/signatures/mfa/initiate", "dateTime": "2026-10-15T09:51:05.000Z", "operationId": "38e251e17ee0a08d972e55a86c9dd9be"}{ "error": { "statusCode": 401, "message": "Unauthorized", "innerErrors": [ { "code": "INVALID_TRANSACTION_TOKEN", "message": "Transaction token identifier is invalid or does not exist in the database.", "userMessage": "Transaction token identifier is invalid. Please make sure that you are accessing this page via the link from your email." } ], "externalErrors": [] }, "origin": "POST https://api.doctavian.com/v1/signatures/mfa/initiate", "dateTime": "2026-10-15T09:51:05.000Z", "operationId": "c48e7691767318f18abbe58241cbe101"}{ "error": { "statusCode": 404, "message": "Not Found", "innerErrors": [ { "code": "NOT_FOUND", "message": "OperationNotFound", "userMessage": "Unable to match incoming request to an operation." } ] }, "origin": "", "dateTime": "2026-10-16T07:34:38.000Z"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "FUNCTION_EXECUTION_ERROR", "message": "An error occurred during function execution.", "userMessage": "An error occurred during function execution.", "eventId": "3914bcfd-fb75-47fe-a94d-40bf22bf02d3" } ], "externalErrors": [] }, "origin": "POST https://api.doctavian.com/v1/signatures/mfa/initiate", "dateTime": "2026-10-20T10:41:27.000Z", "operationId": "7b3d0a2d409fb31652fb3917cab4b83d"}