Create an envelope
const url = 'https://sign-api.binarybridges.co/api/v1/envelopes';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"documentIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"expiresAt":"2026-04-15T12:00:00Z","labels":{"additionalProperty":"example"},"linkTtlHours":1,"message":"example","orgId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","otpRequired":true,"sequentialSigning":true,"signers":[{"email":"example","name":"example","signOrder":1}],"title":"example","workspaceId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://sign-api.binarybridges.co/api/v1/envelopes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "documentIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "expiresAt": "2026-04-15T12:00:00Z", "labels": { "additionalProperty": "example" }, "linkTtlHours": 1, "message": "example", "orgId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "otpRequired": true, "sequentialSigning": true, "signers": [ { "email": "example", "name": "example", "signOrder": 1 } ], "title": "example", "workspaceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Creates a draft envelope with its signers. An envelope cannot be created without at least one signer. The envelope is not sent until sendEnvelope. It is filed in workspaceId (see listWorkspaces), or in the organisation’s General workspace when omitted; the caller needs envelope:create there, and a workspace it cannot create in answers 404 WORKSPACE_NOT_FOUND.
Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»object
object
object
Example generated
{ "documentIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "expiresAt": "2026-04-15T12:00:00Z", "labels": { "additionalProperty": "example" }, "linkTtlHours": 1, "message": "example", "orgId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "otpRequired": true, "sequentialSigning": true, "signers": [ { "email": "example", "name": "example", "signOrder": 1 } ], "title": "example", "workspaceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Sección titulada «Responses»Created
object
object
object
The request was malformed or failed validation.
object
object
Example generated
{ "code": "example", "error": "example", "message": "example", "path": "example", "quota": { "current": 1, "dimension": "example", "limit": 1 }, "status": 1, "timestamp": "2026-04-15T12:00:00Z", "traceId": "example"}No credentials, or a token this organisation’s credentials cannot present. Produced by the security filter chain, so there is no response body.
Authenticated, but the token lacks the role this operation requires. No response body.
The resource is not in a state that allows this — for example sending an envelope that is already sent.
object
object
Example generated
{ "code": "example", "error": "example", "message": "example", "path": "example", "quota": { "current": 1, "dimension": "example", "limit": 1 }, "status": 1, "timestamp": "2026-04-15T12:00:00Z", "traceId": "example"}A domain rule rejected the request.
object
object
Example generated
{ "code": "example", "error": "example", "message": "example", "path": "example", "quota": { "current": 1, "dimension": "example", "limit": 1 }, "status": 1, "timestamp": "2026-04-15T12:00:00Z", "traceId": "example"}An organisation quota is exhausted.
object
object
Example generated
{ "code": "example", "error": "example", "message": "example", "path": "example", "quota": { "current": 1, "dimension": "example", "limit": 1 }, "status": 1, "timestamp": "2026-04-15T12:00:00Z", "traceId": "example"}