assinafy 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
1
1
  # Assinafy Ruby SDK API Reference
2
2
 
3
- > Contract source: Assinafy API v1 OpenAPI 3.1.0, retrieved 2026-11-24 from
3
+ > Contract source: Assinafy API v1 OpenAPI 3.1.0, retrieved 2026-12-02 from
4
4
  > `https://api.assinafy.com.br/v1/docs/openapi.json` (112 paths, 147 operations, 62 schemas).
5
- > Staging: `https://api.angry-pisco.stage.assinafy.com.br/v1/docs/openapi.json` (120 paths, 157 operations, 63 schemas).
6
- > `scripts/check_api_contract.rb` validates production contract compatibility weekly.
5
+ > `scripts/check_api_contract.rb` validates contract compatibility weekly. The four Authentication operations
6
+ > (login and password management) are intentionally not wrapped: integrations
7
+ > authenticate with an API key or an OAuth client created in the Assinafy app.
7
8
 
8
9
  This is the SDK-facing contract reference. Paths below are wire paths; Ruby methods return the unwrapped
9
10
  `data` member for Assinafy response envelopes, pagination helpers return `{ data:, meta: }`, binary methods
@@ -13,26 +14,22 @@ Required parameters and object properties are marked with `*`.
13
14
 
14
15
  ## Authentication and safety
15
16
 
16
- - `X-Api-Key` is the recommended server-side credential. A bearer token is either a login session token or an
17
- OAuth 2.1 access token. If both an API key and a token are configured, the current SDK sends only `X-Api-Key`;
17
+ - `X-Api-Key` is the recommended server-side credential. A bearer token is an OAuth 2.1 access token. If both an API key and a token are configured, the current SDK sends only `X-Api-Key`;
18
18
  prefer configuring exactly one credential.
19
19
  - OAuth 2.1 authenticates an application acting *in a user's workspace with that user's permission*, as opposed
20
- to `X-Api-Key`/bearer, which authenticate the workspace or user directly. The flow is authorization-code with
20
+ to `X-Api-Key`, which authenticates the workspace directly. The flow is authorization-code with
21
21
  mandatory PKCE `S256`; `Assinafy::OAuth` builds the verifier, challenge, `state`, and authorization URL, and
22
22
  `client.oauth` covers the token lifecycle. A token is scoped to one workspace and carries only the scopes the
23
23
  user approved, and it never reaches billing, account lifecycle, credential management, or admin surfaces
24
24
  regardless of scope. A missing scope answers `403` with a `WWW-Authenticate` challenge naming it, which the
25
25
  SDK exposes as `ApiError#context[:www_authenticate]` on every resource: reconnect with that scope added rather
26
26
  than retrying. Store the `code_verifier`, `state`, and expected issuer with each authorization attempt — the
27
- issuer of the authorization server it uses: `https://auth.assinafy.com.br` in production,
28
- `https://auth-sandbox.assinafy.com.br` in the sandbox. Check `state` and `iss` against those stored values on
27
+ issuer of the authorization server it uses (`https://auth.assinafy.com.br` in production; another environment
28
+ publishes its own in its discovery metadata). Check `state` and `iss` against those stored values on
29
29
  the callback before anything else, including an `error=` return, and keep refresh tokens out of logs.
30
30
  - Signer-facing operations use the one-time `signer-access-code` query parameter where shown. Never log, commit,
31
31
  or place API keys, bearer tokens, signer codes, or real recipient addresses in examples or fixtures.
32
- - `POST /v1/login` answers with an `mfa_token` challenge instead of an access token when the user has two-factor
33
- authentication enabled. `AuthResource#verify_mfa` exchanges it, without workspace credentials; the challenge is
34
- single-use and expires 5 minutes after login.
35
- - Webhook endpoint signing secrets (`whsec_...`) are readable only with an API key or user session.
32
+ - Webhook endpoint signing secrets (`whsec_...`) are readable only with an API key.
36
33
  OAuth applications with `webhooks:write` can rotate secrets and must store the returned value. Treat them like API keys. Verify every delivery with
37
34
  `WebhookVerifier#verify_delivery` against the raw request body.
38
35
  - HTTP connections require TLS 1.2 or newer and use Ruby/Faraday TLS verification and the host system trust store;
@@ -57,19 +54,15 @@ Required parameters and object properties are marked with `*`.
57
54
  | POST | `/v1/accounts` | `AccountResource#create` | Bearer token or `X-Api-Key` | None | required; `application/json` object { `name*`: string; `notification_sender_type`: string (`"User"`, `"Account"`) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Account`](#account) } |
58
55
  | GET | `/v1/documents/{documentId}/activities` | `DocumentResource#activities` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>query `sort`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50) | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`DocumentActivity`](#documentactivity)> } |
59
56
  | GET | `/v1/assignments` | `AssignmentResource#list` | Bearer token or `X-Api-Key` | query `accountId`: string<br>query `sort`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50) | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Assignment`](#assignment)> } |
60
- | POST | `/v1/documents/{documentId}/assignments` | `AssignmentResource#create` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `method*`: string (`"virtual"`, `"collect"`); `signers*`: Array<object { `id*`: string; `verification_method`: string (`"Email"`, `"Whatsapp"`, `"DigitalCertificate"`, `"IdDocumentFaceMatchBasic"`); `notification_methods`: Array<string (`"Email"`, `"Whatsapp"`)>; `embedded`: boolean; `step`: integer; `sign_as`: string or null (`"Sign"`, `"Approve"`, `"Acknowledge"`, `"Party"`, `"Witness"`, `"Intervening"`, `"Receipt"`, `"IssuerEndorserGuarantor"`, `"IssuerEndorserGuarantorSurety"`, `"Surety"`, `"PartySurety"`, `"JointDebtor"`, `"PartyJointDebtor"`, `"ContractingParty"`, `"ContractedParty"`, `"Landlord"`, `"Tenant"`, `"Buyer"`, `"Seller"`, `"AttorneyInFact"`, `"LegalRepresentative"`, `"Employer"`, `"Employee"`, `null`) }>; `entries`: Array<object { `page_id`: string; `fields`: Array<object { `signer_id`: string; `field_id`: string; `display_settings`: [`DisplaySettings`](#displaysettings) }> }>; `message`: string; `expires_at`: string (format: date-time); `copy_receivers`: Array<string>; `max_total_credits`: number } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Assignment`](#assignment) } |
61
- | POST | `/v1/documents/{documentId}/assignments/estimate-cost` | `AssignmentResource#estimate_cost` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `method`: string (`"virtual"`, `"collect"`); `signers`: Array<object { `verification_method`: string (`"Email"`, `"Whatsapp"`, `"DigitalCertificate"`, `"IdDocumentFaceMatchBasic"`); `sign_as`: string or null (`"Sign"`, `"Approve"`, `"Acknowledge"`, `"Party"`, `"Witness"`, `"Intervening"`, `"Receipt"`, `"IssuerEndorserGuarantor"`, `"IssuerEndorserGuarantorSurety"`, `"Surety"`, `"PartySurety"`, `"JointDebtor"`, `"PartyJointDebtor"`, `"ContractingParty"`, `"ContractedParty"`, `"Landlord"`, `"Tenant"`, `"Buyer"`, `"Seller"`, `"AttorneyInFact"`, `"LegalRepresentative"`, `"Employer"`, `"Employee"`, `null`); `notification_methods`: Array<string (`"Email"`, `"Whatsapp"`)> }>; `entries`: Array<object> } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`CostEstimate`](#costestimate) } |
57
+ | POST | `/v1/documents/{documentId}/assignments` | `AssignmentResource#create` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `method*`: string (`"virtual"`, `"collect"`); `signers*`: Array<object { `id*`: string; `verification_method`: string (`"Email"`, `"Whatsapp"`, `"DigitalCertificate"`, `"IdDocumentFaceMatchBasic"`); `notification_methods`: Array<string (`"Email"`, `"Whatsapp"`)>; `embedded`: boolean; `step`: integer; `sign_as`: string or null (`"Sign"`, `"Approve"`, `"Acknowledge"`, `"Party"`, `"Witness"`, `"Intervening"`, `"Receipt"`, `"IssuerEndorserGuarantor"`, `"IssuerEndorserGuarantorSurety"`, `"Surety"`, `"PartySurety"`, `"JointDebtor"`, `"PartyJointDebtor"`, `"ContractingParty"`, `"ContractedParty"`, `"Landlord"`, `"Tenant"`, `"Buyer"`, `"Seller"`, `"AttorneyInFact"`, `"LegalRepresentative"`, `"Employer"`, `"Employee"`) }>; `entries`: Array<object { `page_id`: string; `fields`: Array<object> }>; `message`: string; `expires_at`: string (format: date-time); `copy_receivers`: Array<string>; `max_total_credits`: number } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Assignment`](#assignment) } |
58
+ | POST | `/v1/documents/{documentId}/assignments/estimate-cost` | `AssignmentResource#estimate_cost` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `method`: string (`"virtual"`, `"collect"`); `signers`: Array<object { `verification_method`: string (`"Email"`, `"Whatsapp"`, `"DigitalCertificate"`, `"IdDocumentFaceMatchBasic"`); `sign_as`: string or null (`"Sign"`, `"Approve"`, `"Acknowledge"`, `"Party"`, `"Witness"`, `"Intervening"`, `"Receipt"`, `"IssuerEndorserGuarantor"`, `"IssuerEndorserGuarantorSurety"`, `"Surety"`, `"PartySurety"`, `"JointDebtor"`, `"PartyJointDebtor"`, `"ContractingParty"`, `"ContractedParty"`, `"Landlord"`, `"Tenant"`, `"Buyer"`, `"Seller"`, `"AttorneyInFact"`, `"LegalRepresentative"`, `"Employer"`, `"Employee"`); `notification_methods`: Array<string (`"Email"`, `"Whatsapp"`)> }>; `entries`: Array<object> } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`CostEstimate`](#costestimate) } |
62
59
  | PUT | `/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/resend` | `AssignmentResource#resend_notification` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `is_sent`: boolean; `document_id`: string; `signer_id`: string } } |
63
60
  | POST | `/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/estimate-resend-cost` | `AssignmentResource#estimate_resend_cost` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ResendCostEstimate`](#resendcostestimate) } |
64
61
  | PUT | `/v1/documents/{documentId}/assignments/{assignmentId}/reset-expiration` | `AssignmentResource#reset_expiration` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string | required; `application/json` object { `expires_at*`: string or null (format: date-time) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Assignment`](#assignment) } |
65
62
  | GET | `/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/identity-verification` | `AssignmentResource#identity_review` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`SignerIdentityReview`](#signeridentityreview) } |
66
- | GET | `/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/identity-verification/images/{name}` | `AssignmentResource#identity_review_image` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string<br>path `signerId*`: string<br>path `name*`: string (`"document_front"`, `"document_back"`, `"document_pdf"`, `"face"`) | None | `200` `image/jpeg` string (format: binary); `image/png` string (format: binary); `application/pdf` string (format: binary) |
63
+ | GET | `/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/identity-verification/images/{name}` | `AssignmentResource#identity_review_image` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string<br>path `signerId*`: string<br>path `name*`: string (`"document_front"`, `"document_back"`, `"document_pdf"`, `"face"`) | None | `200` `image/jpeg` string (format: binary); `200` `image/png` string (format: binary); `200` `application/pdf` string (format: binary) |
67
64
  | POST | `/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/identity-verification/review` | `AssignmentResource#decide_identity_review` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string<br>path `signerId*`: string | required; `application/json` object { `decision*`: string (`"Approved"`, `"Rejected"`); `note`: string or null (max length: 2000) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`SignerIdentityReview`](#signeridentityreview) } |
68
- | POST | `/v1/login` | `AuthResource#login` | Public | None | required; `application/json` object { `email*`: string (format: email); `password*`: string (format: password) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`AuthSession`](#authsession) } |
69
- | PUT | `/v1/authentication/request-password-reset` | `AuthResource#request_password_reset` | Public | None | required; `application/json` object { `email*`: string (format: email) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `email`: string (format: email) } } |
70
- | PUT | `/v1/authentication/reset-password` | `AuthResource#reset_password` | Public | None | required; `application/json` object { `email*`: string (format: email); `token`: string; `new_password*`: string (format: password) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `email`: string (format: email) } } |
71
- | PUT | `/v1/authentication/change-password` | `AuthResource#change_password` | Bearer token or `X-Api-Key` | None | required; `application/json` object { `email*`: string (format: email); `password*`: string (format: password); `new_password*`: string (format: password) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `email`: string (format: email) } } |
72
- | POST | `/v1/authentication/mfa/verify` | `AuthResource#verify_mfa` | Public | None | required; `application/json` object { `mfa_token*`: string; `code*`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`AuthSession`](#authsession) } |
65
+ | GET | `/v1/documents/{documentId}/signer-capacities` | `DocumentResource#signer_capacities` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<object { `signer_id*`: string; `sign_as*`: string (`"Sign"`, `"Approve"`, `"Acknowledge"`, `"Party"`, `"Witness"`, `"Intervening"`, `"Receipt"`, `"IssuerEndorserGuarantor"`, `"IssuerEndorserGuarantorSurety"`, `"Surety"`, `"PartySurety"`, `"JointDebtor"`, `"PartyJointDebtor"`, `"ContractingParty"`, `"ContractedParty"`, `"Landlord"`, `"Tenant"`, `"Buyer"`, `"Seller"`, `"AttorneyInFact"`, `"LegalRepresentative"`, `"Employer"`, `"Employee"`) }> } |
73
66
  | GET | `/v1/accounts/{accountId}/contracts` | `ContractResource#list` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `status`: Array<string (`"draft"`, `"active"`, `"expired"`, `"terminated"`)><br>query `counterparty`: string<br>query `search`: string<br>query `end_date_from`: string (format: date)<br>query `end_date_to`: string (format: date)<br>query `ending_within_days`: integer (min: 0) (max: 3650)<br>query `external_system`: string<br>query `external_id`: string<br>query `sort`: string<br>query `expand`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50) | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`DocumentContract`](#documentcontract)> } |
74
67
  | GET | `/v1/accounts/{accountId}/documents/{documentId}/contract` | `ContractResource#get` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentContract`](#documentcontract) or [`DocumentContractAmendment`](#documentcontractamendment) } |
75
68
  | PUT | `/v1/accounts/{accountId}/documents/{documentId}/contract` | `ContractResource#update` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `documentId*`: string | required; `application/json` [`DocumentContractInput`](#documentcontractinput) | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentContract`](#documentcontract) or [`DocumentContractAmendment`](#documentcontractamendment) } |
@@ -83,12 +76,15 @@ Required parameters and object properties are marked with `*`.
83
76
  | GET | `/v1/documents/{documentId}` | `DocumentResource#details` | Bearer token or `X-Api-Key` or signer access code | path `documentId*`: string<br>query `expand`: Array<string (`"envelope_id"`, `"envelope"`)> | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Document`](#document) } |
84
77
  | DELETE | `/v1/documents/{documentId}` | `DocumentResource#delete` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
85
78
  | PATCH | `/v1/documents/{documentId}` | `DocumentResource#rename` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `name*`: string (max length: 255) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Document`](#document) } |
79
+ | PUT | `/v1/documents/{documentId}/cancel` | `DocumentResource#cancel` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Document`](#document) } |
86
80
  | GET | `/v1/documents/{documentId}/download/{artifactName}` | `DocumentResource#download` | Bearer token or `X-Api-Key` or signer access code | path `documentId*`: string<br>path `artifactName*`: string (`"original"`, `"certificated"`, `"certificate-page"`, `"pades"`, `"bundle"`) | None | `200` `application/pdf` string (format: binary) |
87
81
  | GET | `/v1/documents/{documentSignatureHash}/verify` | `DocumentResource#verify` | Public | path `documentSignatureHash*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentVerification`](#documentverification) } |
88
82
  | GET | `/v1/accounts/{accountId}/documents/{documentId}/tags` | `DocumentResource#list_tags` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Tag`](#tag)> } |
89
83
  | PUT | `/v1/accounts/{accountId}/documents/{documentId}/tags` | `DocumentResource#replace_tags` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `documentId*`: string | required; `application/json` object { `tags`: Array<string> } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Tag`](#tag)> } |
90
84
  | POST | `/v1/accounts/{accountId}/documents/{documentId}/tags` | `DocumentResource#append_tags` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `documentId*`: string | required; `application/json` object { `tags`: Array<string> } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Tag`](#tag)> } |
91
85
  | DELETE | `/v1/accounts/{accountId}/documents/{documentId}/tags/{tagId}` | `DocumentResource#detach_tag` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `documentId*`: string<br>path `tagId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `detached`: boolean } } |
86
+ | GET | `/v1/documents/{documentId}/watchers` | `DocumentResource#watchers` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Signer`](#signer)> } |
87
+ | PUT | `/v1/documents/{documentId}/watchers` | `DocumentResource#set_watchers` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `watcher_ids*`: Array<string (min length: 1)> (max items: 10) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Signer`](#signer)> } |
92
88
  | GET | `/v1/accounts/{accountId}/embed-origins` | `AccountResource#list_embed_origins` | Bearer token or `X-Api-Key` | path `accountId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`EmbedOrigin`](#embedorigin)> } |
93
89
  | POST | `/v1/accounts/{accountId}/embed-origins` | `AccountResource#create_embed_origin` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` object { `origin*`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`EmbedOrigin`](#embedorigin) } |
94
90
  | PUT | `/v1/accounts/{accountId}/embed-origins/{originId}` | `AccountResource#update_embed_origin` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `originId*`: string | required; `application/json` object { `origin*`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`EmbedOrigin`](#embedorigin) } |
@@ -100,11 +96,12 @@ Required parameters and object properties are marked with `*`.
100
96
  | POST | `/v1/accounts/{accountId}/envelopes/estimate-cost` | `EnvelopeResource#estimate_cost` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` [`EnvelopeCreateRequest`](#envelopecreaterequest) | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`CostEstimate`](#costestimate) } |
101
97
  | GET | `/v1/accounts/{accountId}/envelopes/{envelopeId}` | `EnvelopeResource#get` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentEnvelope`](#documentenvelope) } |
102
98
  | DELETE | `/v1/accounts/{accountId}/envelopes/{envelopeId}` | `EnvelopeResource#delete` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
103
- | PATCH | `/v1/accounts/{accountId}/envelopes/{envelopeId}` | `EnvelopeResource#update` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string | required; `application/json` object { `name`: string (min length: 1) (max length: 255); `message`: string or null; `document_ids`: Array<string> } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentEnvelope`](#documentenvelope) } |
99
+ | PATCH | `/v1/accounts/{accountId}/envelopes/{envelopeId}` | `EnvelopeResource#update` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string | required; `application/json` object { `name`: string (min length: 1) (max length: 255); `message`: string or null; `document_ids`: Array<string> (min items: 1) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentEnvelope`](#documentenvelope) } |
104
100
  | GET | `/v1/accounts/{accountId}/envelopes/{envelopeId}/activities` | `EnvelopeResource#activities` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string<br>query `sort`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50) | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`EnvelopeActivity`](#envelopeactivity)> } |
105
101
  | GET | `/v1/accounts/{accountId}/envelopes/{envelopeId}/download/{artifactName}` | `EnvelopeResource#download` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string<br>path `artifactName*`: string (`"original"`, `"certificated"`, `"certificate-page"`, `"pades"`, `"bundle"`) | None | `200` `application/zip` string (format: binary) |
106
102
  | PUT | `/v1/accounts/{accountId}/envelopes/{envelopeId}/cancel` | `EnvelopeResource#cancel` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<object { `id*`: string; `status*`: string; `cancelled*`: boolean }> } |
107
103
  | PUT | `/v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/resend` | `EnvelopeResource#resend_notification` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `is_sent*`: boolean; `envelope_id*`: string; `signer_id*`: string } } |
104
+ | POST | `/v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/estimate-resend-cost` | `EnvelopeResource#estimate_resend_cost` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ResendCostEstimate`](#resendcostestimate) } |
108
105
  | POST | `/v1/accounts/{accountId}/envelopes/{envelopeId}/documents` | `EnvelopeResource#add_document` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string | required; `application/json` [`EnvelopeDocumentRequest`](#envelopedocumentrequest) plus object { `max_total_credits`: number (min: 0) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentEnvelope`](#documentenvelope) } |
109
106
  | DELETE | `/v1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}` | `EnvelopeResource#remove_document` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string<br>path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`DocumentEnvelope`](#documentenvelope) } |
110
107
  | GET | `/v1/accounts/{accountId}/fields` | `FieldResource#list` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `include_inactive`: boolean<br>query `include_standard`: boolean | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Field`](#field)> } |
@@ -115,24 +112,25 @@ Required parameters and object properties are marked with `*`.
115
112
  | POST | `/v1/accounts/{accountId}/fields/{fieldId}/validate` | `FieldResource#validate` | Bearer token or `X-Api-Key` or signer access code | path `accountId*`: string<br>path `fieldId*`: string | required; `application/json` object { `value*`: any } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`FieldValidation`](#fieldvalidation) } |
116
113
  | POST | `/v1/accounts/{accountId}/fields/validate-multiple` | `FieldResource#validate_multiple` | Bearer token or `X-Api-Key` or signer access code | path `accountId*`: string | required; `application/json` Array<object { `field_id*`: string; `value*`: any }> | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`FieldValidationResult`](#fieldvalidationresult)> } |
117
114
  | GET | `/v1/field-types` | `FieldResource#types` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`FieldType`](#fieldtype)> } |
118
- | GET | `/v1/users/self/mfa` | `AuthResource#mfa_methods` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `methods`: Array<object { `id`: string; `type`: string; `label`: string; `confirmed_at`: string (format: date-time); `last_used_at`: string (format: date-time) }>; `recovery_codes_remaining`: integer } } |
119
- | POST | `/v1/users/self/mfa/totp` | `AuthResource#start_totp_enrollment` | Bearer token or `X-Api-Key` | None | optional; `application/json` object { `label`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `id`: string; `secret`: string; `provisioning_uri`: string } } |
120
- | PUT | `/v1/users/self/mfa/totp/confirm` | `AuthResource#confirm_totp_enrollment` | Bearer token or `X-Api-Key` | None | required; `application/json` object { `id*`: string; `code*`: string; `password`: string (format: password); `reauth_code`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `recovery_codes`: Array<string> } } |
121
- | POST | `/v1/users/self/mfa/recovery-codes` | `AuthResource#regenerate_recovery_codes` | Bearer token or `X-Api-Key` | None | required; `application/json` object { `password`: string (format: password); `code`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `recovery_codes`: Array<string> } } |
122
- | DELETE | `/v1/users/self/mfa/{customId}` | `AuthResource#delete_mfa_method` | Bearer token or `X-Api-Key` | path `customId*`: string | required; `application/json` object { `password`: string (format: password); `code`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `is_mfa_enabled`: boolean } } |
115
+ | GET | `/v1/documents/{documentId}/notification-history` | `DocumentResource#notification_history` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<object { `signer_id*`: string; `notification_history*`: Array<[`NotificationHistoryEntry`](#notificationhistoryentry) plus object> }> } |
123
116
  | GET | `/v1/accounts/{accountId}/notification-policy` | `AccountResource#notification_policy` | Bearer token or `X-Api-Key` | path `accountId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`NotificationPolicy`](#notificationpolicy) } |
124
117
  | PUT | `/v1/accounts/{accountId}/notification-policy` | `AccountResource#update_notification_policy` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` object { `events`: [`NotificationPolicyEvents`](#notificationpolicyevents); `owners_receive_all`: boolean } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`NotificationPolicy`](#notificationpolicy) } |
125
118
  | GET | `/v1/users/self/notification-preferences` | `UserResource#notification_preferences` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`NotificationPreferences`](#notificationpreferences) } |
126
119
  | PUT | `/v1/users/self/notification-preferences` | `UserResource#update_notification_preferences` | Bearer token or `X-Api-Key` | None | required; `application/json` [`NotificationPreferences`](#notificationpreferences) | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`NotificationPreferences`](#notificationpreferences) } |
127
120
  | POST | `/v1/oauth/token` | `OAuthResource#token` | Public | None | required; `application/x-www-form-urlencoded` [`OAuthTokenRequest`](#oauthtokenrequest); `application/json` [`OAuthTokenRequest`](#oauthtokenrequest) | `200` `application/json` object { `access_token`: string; `issued_token_type`: string; `token_type`: string; `expires_in`: integer; `refresh_token`: string or null; `scope`: string; `id_token`: string or null } |
128
- | POST | `/v1/oauth/revoke` | `OAuthResource#revoke` | Public | None | required; `application/x-www-form-urlencoded` [`OAuthRevokeRequest`](#oauthrevokerequest); `application/json` [`OAuthRevokeRequest`](#oauthrevokerequest) | `200` No body |
121
+ | POST | `/v1/oauth/revoke` | `OAuthResource#revoke` | Public | None | required; `application/x-www-form-urlencoded` [`OAuthRevokeRequest`](#oauthrevokerequest); `application/json` [`OAuthRevokeRequest`](#oauthrevokerequest) | `200` no body |
129
122
  | GET | `/v1/oauth/userinfo` | `OAuthResource#userinfo` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` object { `sub`: string; `name`: string or null; `email`: string or null (format: email); `email_verified`: boolean or null } |
130
123
  | GET | `/v1/documents/{documentId}/thumbnail` | `DocumentResource#thumbnail` | Bearer token or `X-Api-Key` or signer access code | path `documentId*`: string<br>query `artifact`: string | None | `200` `image/*` string (format: binary) |
131
124
  | GET | `/v1/documents/{documentId}/pages/{pageId}/download` | `DocumentResource#download_page` | Bearer token or `X-Api-Key` or signer access code | path `documentId*`: string<br>path `pageId*`: string<br>query `artifact`: string | None | `200` `image/*` string (format: binary) |
132
125
  | GET | `/v1/public/documents/{documentId}` | `DocumentResource#public_info` | Public | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Document`](#document) } |
133
- | PUT | `/v1/public/documents/{documentId}/send-token` | `DocumentResource#send_token` | Public | path `documentId*`: string | required; `application/json` object { `channel*`: string (`"email"`); `recipient*`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `document`: object { `resource`: string; `id`: string; `name`: string; `page_count`: integer; `created_by`: string }; `channel`: string; `recipient`: string } } |
126
+ | PUT | `/v1/public/documents/{documentId}/send-token` | `DocumentResource#send_token` | Public | path `documentId*`: string | required; `application/json` object { `channel*`: string (`"email"`); `recipient*`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `document`: object; `channel`: string; `recipient`: string } } |
134
127
  | GET | `/v1/users/self/push-preferences` | `UserResource#push_preferences` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`PushPreferences`](#pushpreferences) } |
135
128
  | PUT | `/v1/users/self/push-preferences` | `UserResource#update_push_preferences` | Bearer token or `X-Api-Key` | None | required; `application/json` [`PushPreferences`](#pushpreferences) | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`PushPreferences`](#pushpreferences) } |
129
+ | POST | `/v1/documents/{documentId}/scheduled-sends` | `AssignmentResource#schedule` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `send_at*`: string (format: date-time) or integer; `method`: string (`"virtual"`, `"collect"`); `signers*`: Array<object>; `expires_at`: string (format: date-time) or integer or null } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
130
+ | GET | `/v1/accounts/{accountId}/scheduled-sends` | `ScheduledSendResource#list` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50)<br>query `document_id`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`ScheduledSend`](#scheduledsend)> } |
131
+ | POST | `/v1/accounts/{accountId}/scheduled-sends` | `EnvelopeResource#schedule` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` [`EnvelopeCreateRequest`](#envelopecreaterequest) plus object { `send_at*`: string (format: date-time) or integer } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
132
+ | PUT | `/v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/cancel` | `ScheduledSendResource#cancel` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `scheduledSendId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
133
+ | PUT | `/v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/send` | `ScheduledSendResource#send_now` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `scheduledSendId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
136
134
  | GET | `/v1/accounts/{accountId}/signers` | `SignerResource#list` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `search`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50) | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Signer`](#signer)> } |
137
135
  | POST | `/v1/accounts/{accountId}/signers` | `SignerResource#create` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` object { `full_name*`: string; `email`: string (format: email); `whatsapp_phone_number`: string; `government_id`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Signer`](#signer) } |
138
136
  | GET | `/v1/accounts/{accountId}/signers/{signerId}` | `SignerResource#get` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Signer`](#signer) } |
@@ -152,7 +150,7 @@ Required parameters and object properties are marked with `*`.
152
150
  | POST | `/v1/verify` | `SignerResource#verify_email` | signer access code | None | required; `application/json` object { `verification-code*`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
153
151
  | PUT | `/v1/documents/{documentId}/signers/confirm-data` | `SignerResource#confirm_data` | signer access code | path `documentId*`: string | required; `application/json` object { `email`: string (format: email); `whatsapp_phone_number`: string; `has_accepted_terms`: boolean } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
154
152
  | PUT | `/v1/signers/accept-terms` | `SignerResource#accept_terms` | signer access code | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `full_name*`: string; `email*`: string or null (format: email); `has_accepted_terms*`: boolean } } |
155
- | POST | `/v1/signature` | `SignerResource#upload_signature` | signer access code | query `type`: string (`"signature"`, `"initial"`)<br>query `reuse`: boolean | required; `image/png` string (format: binary); `image/jpeg` string (format: binary) | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
153
+ | POST | `/v1/signature` | `SignerResource#upload_signature` | signer access code | query `type`: string<br>query `reuse`: boolean | required; `image/png` string (format: binary); `image/jpeg` string (format: binary) | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
156
154
  | GET | `/v1/signature/{signatureType}` | `SignerResource#download_signature` | signer access code | path `signatureType*`: string | None | `200` `image/*` string (format: binary) |
157
155
  | GET | `/v1/signers/{signerId}/documents` | `SignerDocumentResource#list` | signer access code or Bearer token or `X-Api-Key` | path `signerId*`: string<br>query `envelope_id`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50) | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Document`](#document)> } |
158
156
  | GET | `/v1/signers/{signerId}/documents/search` | `SignerDocumentResource#search` | signer access code or Bearer token or `X-Api-Key` | path `signerId*`: string<br>query `envelope_id`: string<br>query `search`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Document`](#document)> } |
@@ -160,8 +158,6 @@ Required parameters and object properties are marked with `*`.
160
158
  | POST | `/v1/sign/certified-copy` | `SignerDocumentResource#send_certified_copy` | signer access code | None | optional; `application/json` object { `document_id`: string } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `available`: boolean; `notification_method`: string (`"Email"`, `"Whatsapp"`); `resends_left`: integer or null; `sent_to`: string } } |
161
159
  | GET | `/v1/signers/downloads/{token}` | `SignerDocumentResource#download_certified_copy` | Public | path `token*`: string | None | `200` `application/pdf` string (format: binary) |
162
160
  | POST | `/v1/signers/downloads/{token}/resend` | `SignerDocumentResource#resend_certified_copy` | Public | path `token*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: object { `available`: boolean; `notification_method`: string (`"Email"`, `"Whatsapp"`); `resends_left`: integer or null; `sent_to`: string } } |
163
- | POST | `/v1/authentication/social-login` | `AuthResource#social_login` | Public | None | required; `application/json` object { `provider*`: string (`"google"`); `token*`: string; `has_accepted_terms*`: boolean } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`AuthSession`](#authsession) } |
164
- | POST | `/v1/auth/link-social-login` | `AuthResource#link_social_login` | Bearer token or `X-Api-Key` | None | required; `application/json` object { `provider*`: string (`"google"`); `token*`: string } | `200` `application/json` [`Envelope`](#envelope) |
165
161
  | GET | `/v1/accounts/{accountId}/stats` | `AccountResource#stats` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `granularity`: string (`"monthly"`, `"daily"`)<br>query `month`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`DocumentStatsRow`](#documentstatsrow)> } |
166
162
  | GET | `/v1/users/self/stats` | `UserResource#stats` | Bearer token or `X-Api-Key` | query `granularity`: string (`"monthly"`, `"daily"`)<br>query `month`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`DocumentStatsRow`](#documentstatsrow)> } |
167
163
  | GET | `/v1/accounts/{accountId}/tags` | `TagResource#list` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `search`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Tag`](#tag)> } |
@@ -172,9 +168,6 @@ Required parameters and object properties are marked with `*`.
172
168
  | POST | `/v1/accounts/{accountId}/templates/{templateId}/documents` | `DocumentResource#create_from_template` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `templateId*`: string<br>header `Idempotency-Key`: string | required; `application/json` object { `signers*`: Array<object { `role_id*`: string; `id`: string; `email`: string; `name`: string; `whatsapp_phone_number`: string; `verification_method`: string (`"Email"`, `"Whatsapp"`, `"DigitalCertificate"`, `"IdDocumentFaceMatchBasic"`); `notification_methods`: Array<string>; `embedded`: boolean; `step`: integer }>; `editor_fields`: Array<object { `field_id*`: string; `value*`: string }>; `name`: string; `message`: string; `expires_at`: string (format: date-time); `tags`: Array<string>; `max_total_credits`: number } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`Document`](#document) } |
173
169
  | POST | `/v1/accounts/{accountId}/templates/{templateId}/documents/estimate-cost` | `DocumentResource#estimate_cost_from_template` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `templateId*`: string | required; `application/json` object { `signers*`: Array<object { `role_id*`: string; `verification_method`: string (`"Email"`, `"Whatsapp"`, `"DigitalCertificate"`, `"IdDocumentFaceMatchBasic"`); `notification_methods`: Array<string> }> } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`CostEstimate`](#costestimate) } |
174
170
  | GET | `/v1/users/self` | `UserResource#me` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`AuthUser`](#authuser) } |
175
- | GET | `/v1/users/api-keys` | `AuthResource#get_api_key` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ApiKey`](#apikey) } |
176
- | POST | `/v1/users/api-keys` | `AuthResource#create_api_key` | Bearer token or `X-Api-Key` | None | required; `application/json` object { `password*`: string (format: password) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ApiKey`](#apikey) } |
177
- | DELETE | `/v1/users/api-keys` | `AuthResource#delete_api_key` | Bearer token or `X-Api-Key` | None | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<any> } |
178
171
  | GET | `/v1/accounts/{accountId}/webhooks/subscriptions` | `WebhookResource#get` | Bearer token or `X-Api-Key` | path `accountId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`WebhookSubscription`](#webhooksubscription) } |
179
172
  | PUT | `/v1/accounts/{accountId}/webhooks/subscriptions` | `WebhookResource#register` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` object { `events*`: Array<string>; `is_active*`: boolean; `url*`: string (format: uri); `email*`: string (format: email) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`WebhookSubscription`](#webhooksubscription) } |
180
173
  | PUT | `/v1/accounts/{accountId}/webhooks/inactivate` | `WebhookResource#inactivate` | Bearer token or `X-Api-Key` | path `accountId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`WebhookSubscription`](#webhooksubscription) } |
@@ -193,24 +186,6 @@ Required parameters and object properties are marked with `*`.
193
186
  | GET | `/.well-known/oauth-protected-resource` | `OAuthResource#protected_resource_metadata` | Public | None | None | `200` `application/json` object { `resource`: string (format: uri); `authorization_servers`: Array<string (format: uri)>; `scopes_supported`: Array<string>; `bearer_methods_supported`: Array<string> } |
194
187
  | GET | `/v1/documents/{documentId}/assignments/{assignmentId}/whatsapp-notifications` | `AssignmentResource#whatsapp_notifications` | Bearer token or `X-Api-Key` | path `documentId*`: string<br>path `assignmentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`WhatsappNotification`](#whatsappnotification)> } |
195
188
 
196
- ### Staging operations
197
-
198
- These operations are published by `https://api.angry-pisco.stage.assinafy.com.br/v1/docs` and are not yet
199
- published in production. Configure that staging base URL for these calls; production can return 404.
200
-
201
- | Method | Path | Ruby SDK method | Authentication | Parameters | Request body | Success wire response |
202
- | --- | --- | --- | --- | --- | --- | --- |
203
- | GET | `/v1/documents/{documentId}/signer-capacities` | `DocumentResource#signer_capacities` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<object { `signer_id*`: string; `sign_as*`: string (`"Sign"`, `"Approve"`, `"Acknowledge"`, `"Party"`, `"Witness"`, `"Intervening"`, `"Receipt"`, `"IssuerEndorserGuarantor"`, `"IssuerEndorserGuarantorSurety"`, `"Surety"`, `"PartySurety"`, `"JointDebtor"`, `"PartyJointDebtor"`, `"ContractingParty"`, `"ContractedParty"`, `"Landlord"`, `"Tenant"`, `"Buyer"`, `"Seller"`, `"AttorneyInFact"`, `"LegalRepresentative"`, `"Employer"`, `"Employee"`) }> } |
204
- | GET | `/v1/documents/{documentId}/watchers` | `DocumentResource#watchers` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Signer`](#signer)> } |
205
- | PUT | `/v1/documents/{documentId}/watchers` | `DocumentResource#set_watchers` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `watcher_ids*`: Array<string (min length: 1)> (max items: 10) } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`Signer`](#signer)> } |
206
- | POST | `/v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/estimate-resend-cost` | `EnvelopeResource#estimate_resend_cost` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `envelopeId*`: string<br>path `signerId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ResendCostEstimate`](#resendcostestimate) } |
207
- | GET | `/v1/documents/{documentId}/notification-history` | `DocumentResource#notification_history` | Bearer token or `X-Api-Key` | path `documentId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<object { `signer_id*`: string; `notification_history*`: Array<[`NotificationHistoryEntry`](#notificationhistoryentry) plus object { `delivered_at`: string or null (format: date-time); `opened_at`: string or null (format: date-time) }> }> } |
208
- | POST | `/v1/documents/{documentId}/scheduled-sends` | `AssignmentResource#schedule` | Bearer token or `X-Api-Key` | path `documentId*`: string | required; `application/json` object { `send_at*`: string (format: date-time) or integer; `method`: string (`"virtual"`, `"collect"`); `signers*`: Array<object>; `expires_at`: string (format: date-time) or integer or null } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
209
- | GET | `/v1/accounts/{accountId}/scheduled-sends` | `ScheduledSendResource#list` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>query `page`: integer (min: 1)<br>query `per-page`: integer (min: 1) (max: 50)<br>query `document_id`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: Array<[`ScheduledSend`](#scheduledsend)> } |
210
- | POST | `/v1/accounts/{accountId}/scheduled-sends` | `EnvelopeResource#schedule` | Bearer token or `X-Api-Key` | path `accountId*`: string | required; `application/json` [`EnvelopeCreateRequest`](#envelopecreaterequest) plus object { `send_at*`: string (format: date-time) or integer } | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
211
- | PUT | `/v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/cancel` | `ScheduledSendResource#cancel` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `scheduledSendId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
212
- | PUT | `/v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/send` | `ScheduledSendResource#send_now` | Bearer token or `X-Api-Key` | path `accountId*`: string<br>path `scheduledSendId*`: string | None | `200` `application/json` [`Envelope`](#envelope) plus object { `data`: [`ScheduledSend`](#scheduledsend) } |
213
-
214
189
  ## Error responses
215
190
 
216
191
  OAuth endpoints are the exception to everything in this section: `/v1/oauth/token` and
@@ -265,9 +240,8 @@ Transport, timeout, and TLS failures raise `Assinafy::NetworkError`; caller-side
265
240
 
266
241
  ### Template operations
267
242
 
268
- The sandbox and SDK support these five template operations. Their request and response behavior is documented
269
- here so applications can use the complete template lifecycle. Confirm availability in the target Assinafy
270
- environment before making these operations part of a critical workflow.
243
+ The deployed API and the SDK support these five template operations, which the OpenAPI document does not list.
244
+ Their request and response behavior is documented here so applications can use the complete template lifecycle.
271
245
 
272
246
  | Method | Path | Ruby SDK method | Authentication | Request / response |
273
247
  | --- | --- | --- | --- | --- |
@@ -298,8 +272,13 @@ request.
298
272
  ### Document upload and tags
299
273
 
300
274
  `DocumentResource#upload` sends only the multipart `file` part; the API names the document after the uploaded
301
- file name. Rename it with `DocumentResource#rename`. Documents and templates are limited to 25 MB, checked
302
- locally together with the `.pdf` extension and `%PDF-` header.
275
+ file name. Rename it with `DocumentResource#rename`. Uploads accept PDF, DOC, DOCX and ODT; Word and OpenDocument
276
+ files are converted to PDF. Documents and templates are limited to 25 MB, checked locally together with the
277
+ extension and, for PDFs, the `%PDF-` header. Templates accept PDF only.
278
+
279
+ `DocumentResource#cancel` stops a `pending_signature` or `pending_identity_review` document and keeps it as
280
+ `rejected_by_user`; `#delete` runs the same cancellation before deleting. Both answer `409` `EnvelopeOpen` for a
281
+ document of an open envelope, and `cancel` answers `409` `DocumentClosed` once every signer has signed.
303
282
 
304
283
  `DocumentResource#list` accepts `tags` as a comma-separated String or an Array of tag IDs, which the SDK joins
305
284
  with commas; matching documents carry every listed tag. `DocumentResource#replace_tags` and `#append_tags` accept
@@ -371,9 +350,13 @@ look successful while the connection stays active.
371
350
 
372
351
  Verification and notification methods are coupled per signer: the omitted side is inferred from the other, and
373
352
  when both are omitted both are `Email`. Exactly one notification method is allowed. Allowed pairs: `Email` with
374
- `Email`, `Whatsapp` with `Whatsapp`, and `DigitalCertificate` or `IdDocumentFaceMatchBasic` with either. `Email` costs 0 credits; `Whatsapp`
375
- costs 0.45 credits (its WhatsApp notification, paid plans only); `DigitalCertificate` costs 0.5 credits per signer
376
- on top of its notification, shown in cost estimates under the breakdown code `SignatureDigitalCertificate`.
353
+ `Email`, `Whatsapp` with `Whatsapp`, and `DigitalCertificate` or `IdDocumentFaceMatchBasic` with either. `Email`
354
+ costs 0 credits; `Whatsapp` costs its WhatsApp notification (0.4 credits on Pro, 0.45 on other paid plans);
355
+ `DigitalCertificate` adds the plan's certificate price per signer (`SignatureDigitalCertificate`, on every envelope
356
+ document the signer signs); `IdDocumentFaceMatchBasic` adds Free 1.5, Standard 1, Pro 0.5 or 0.25 credits on other
357
+ plans (`VerificationIdDocumentFaceMatchBasic`, once per envelope signer). `estimate_cost` returns the exact charge.
358
+ On the free plan, creation answers `429` `FreePlanEmailLimit` with `Retry-After` once the daily signer email
359
+ limit is reached.
377
360
 
378
361
  ### Digital-certificate signing
379
362
 
@@ -414,7 +397,7 @@ names from its `images` with `identity_review_image`, and submit `decide_identit
414
397
  or `decision: 'Rejected'` while the document is pending_signature or pending_identity_review. Rejection cancels
415
398
  the document and notifies signers and copy receivers. Optional `note:` (at most 2000 characters) is recorded in
416
399
  activities and sent to the provider; it is never shown to the signer. Images are fetched from the provider,
417
- available only during InReview, and must not be cached. Evidence images and decisions require an API key or user session; third-party OAuth applications
400
+ available only during InReview, and must not be cached. Evidence images and decisions require an API key; third-party OAuth applications
418
401
  can read the review summary with `documents:read`, but cannot fetch images or decide it. The review retains summaries, with `evidence_available`
419
402
  false when none is retained or fetched. Direct approvals expose evidence through the signer_identity_verified
420
403
  activity instead. Observe signer_identity_review_required, signer_identity_review_approved,
@@ -461,7 +444,7 @@ it is not a per-document creation field. `update(message: nil)` clears the messa
461
444
  its documents. Cancel notifies recipients, remove-document cancels that open document, and delete requires the
462
445
  envelope to be closed and preserves its documents. Downloads return ZIP bytes.
463
446
 
464
- Embedded signing requires the Embed feature and API-key/user-session authentication; third-party OAuth cannot
447
+ Embedded signing requires the Embed feature and API-key authentication; third-party OAuth cannot
465
448
  manage origins or create sessions. Register exact origins through `accounts.create_embed_origin`, mark an
466
449
  Email/Whatsapp signer `embedded: true`, then call `assignments.create_embed_session`. Load its returned URL in
467
450
  an iframe within five minutes. `exchange_embed_session` is normally called by Assinafy's embed page; its token
@@ -502,7 +485,7 @@ returns pagination metadata. Envelope activities are always paginated.
502
485
 
503
486
  ### Scheduled sends, capacities and watchers
504
487
 
505
- Staging exposes `assignments.schedule(document_id, payload, send_at:)` and
488
+ `assignments.schedule(document_id, payload, send_at:)` and
506
489
  `envelopes.schedule(payload, send_at:)`. Both reuse the corresponding creation payload validators and return
507
490
  `ScheduledSend` without sending or charging now. `send_at` is ISO 8601 (no offset means UTC) or Unix seconds,
508
491
  from one hour to 90 days ahead; every explicit document deadline must be at least two hours after it.
@@ -514,7 +497,8 @@ prevent immediate assignment creation, and does not support an idempotency key.
514
497
  `scheduled_sends.list(document_id:, page:, per_page:)` returns all states, newest first; all scheduled-send
515
498
  operations require `documents:write`, including listing. `cancel(id)` cancels only pending sends;
516
499
  `send_now(id)` creates the assignment/envelope immediately. A refused send-now remains pending, so cancel it
517
- if a later attempt is unwanted. Repeating send/cancel after a terminal state raises `ApiError` with 409.
500
+ if a later attempt is unwanted. On the free plan a send can stay `pending` with `next_attempt_at` for up to
501
+ seven days while the daily signer email limit is full, and `send_now` answers `429` `FreePlanEmailLimit`. Repeating send/cancel after a terminal state raises `ApiError` with 409.
518
502
 
519
503
  Assignments accept `sign_as` on each signer, defaulting to `Sign` when omitted or nil. The exact supported
520
504
  values are `AssignmentResource::SIGNER_CAPACITIES`; they identify the sender's stated signing capacity,
@@ -530,21 +514,21 @@ policy. Change them only while the document is open. A signer who is also a watc
530
514
  `documents.notification_history(id)` adds nullable delivery/open timestamps to each signer's records.
531
515
  Opens can come from link scanners or mail clients and are not proof of human reading. Envelope reminders
532
516
  have `envelopes.estimate_resend_cost(id, signer_id)`; one reminder covers the whole envelope and returns
533
- `ResendCostEstimate` (`total`, not `total_credits`). An estimate does not check timing eligibility. Staging
534
- reminders refuse expired requests, repeats within two minutes, or more than ten reminders in 24 hours;
517
+ `ResendCostEstimate` (`total`, not `total_credits`). An estimate does not check timing eligibility.
518
+ Reminders refuse expired requests, repeats within two minutes, or more than ten reminders in 24 hours;
535
519
  reminders through the envelope and its documents share that limit.
536
520
 
537
521
  ### Signing and explicit empty values
538
522
 
539
523
  Use `assignments.sign(document_id, assignment_id, [], signer_access_code:)` for virtual assignments after
540
524
  terms, contact confirmation and OTP verification. For collect assignments, store both `signature` and
541
- `initial` PNG images first, even if no initial field is placed. Supply the required item values; omitted
525
+ `initial` images (PNG or JPEG) first, even if no initial field is placed. Supply the required item values; omitted
542
526
  read-only dates are filled by the server, optional fields may remain empty, and an omitted required field
543
527
  fails. Image fields use stored images and `signatureDate` uses the server's signing timestamp. The SDK passes
544
528
  empty String values through; the API still rejects them for required fields, including signature fields.
545
- Staging returns the signer's assignment, without signing URLs, with only their items and other parties' contact
546
- details and government IDs null. A completed request may be repeated safely according to staging's contract,
547
- but the SDK never retries it automatically.
529
+ The API returns the signer's assignment, without signing URLs, with only their items and other parties' contact
530
+ details and government IDs null. A completed request may be repeated safely, but the SDK never retries it
531
+ automatically.
548
532
 
549
533
  `signers.update` preserves explicit nil or empty String for email, WhatsApp number and government ID, so
550
534
  callers can clear them. Omitted fields remain unchanged; full_name cannot be cleared. Verified contact
@@ -565,7 +549,7 @@ return-value, and usage details.
565
549
  | `Assinafy::Client.from_config`, `.from_hash` | Construct a client from string- or symbol-keyed configuration. | [`client.rb`](../lib/assinafy/client.rb) |
566
550
  | `Client#faraday_connection` | Return the configured Faraday connection for advanced integration. | [`client.rb`](../lib/assinafy/client.rb) |
567
551
  | `Client#upload_and_request_signatures` | Upload, optionally wait, create signers, and create a virtual assignment. | [`client.rb`](../lib/assinafy/client.rb) |
568
- | `Client#auth`, `#oauth`, `#accounts`, `#users`, `#documents`, `#contracts`, `#signers`, `#signer_documents`, `#assignments`, `#envelopes`, `#scheduled_sends`, `#webhooks`, `#templates`, `#fields`, `#tags`, `#webhook_verifier` | Return the client's resource and helper instances. | [`client.rb`](../lib/assinafy/client.rb) |
552
+ | `Client#oauth`, `#accounts`, `#users`, `#documents`, `#contracts`, `#signers`, `#signer_documents`, `#assignments`, `#envelopes`, `#scheduled_sends`, `#webhooks`, `#templates`, `#fields`, `#tags`, `#webhook_verifier` | Return the client's resource and helper instances. | [`client.rb`](../lib/assinafy/client.rb) |
569
553
  | `Assinafy::Configuration.new`, `.from_hash` | Build configuration directly or from string/symbol keys. | [`configuration.rb`](../lib/assinafy/configuration.rb) |
570
554
  | `Configuration#auth_headers` | Return the selected API-key, bearer, or empty authentication header set. | [`configuration.rb`](../lib/assinafy/configuration.rb) |
571
555
  | Configuration readers/writers: `api_key`, `token`, `account_id`, `base_url`, `webhook_secret`, `timeout`, `logger` | Read or update configuration values; `base_url=` and `timeout=` validate like the constructor. Construct a new client to apply changes. | [`configuration.rb`](../lib/assinafy/configuration.rb) |
@@ -577,11 +561,10 @@ return-value, and usage details.
577
561
  | `SignerResource#find_by_email` | Page through a successful search and return a case-insensitive match or `nil`. | [`signer_resource.rb`](../lib/assinafy/resources/signer_resource.rb) |
578
562
  | `SignerDocumentResource#document` | Alias for `#current`. | [`signer_document_resource.rb`](../lib/assinafy/resources/signer_document_resource.rb) |
579
563
  | `SignerDocumentResource#list_as_workspace`, `#search_as_workspace` | List/search a signer's documents with workspace credentials; `#list`/`#search` require the signer access code and send only it. | [`signer_document_resource.rb`](../lib/assinafy/resources/signer_document_resource.rb) |
580
- | `AuthResource#api_key` | Alias for `#get_api_key`. | [`auth_resource.rb`](../lib/assinafy/resources/auth_resource.rb) |
581
564
  | `WebhookResource#update` | Alias for `#register` (acts on the oldest endpoint). | [`webhook_resource.rb`](../lib/assinafy/resources/webhook_resource.rb) |
582
565
  | `AssignmentResource.build_payload` | Validate and normalize virtual or collect assignment bodies locally. | [`assignment_resource.rb`](../lib/assinafy/resources/assignment_resource.rb) |
583
- | `WebhookVerifier.new`, `#verify_delivery` | Verify a Standard Webhooks delivery (`webhook-id`, `webhook-timestamp`, `webhook-signature`) with the endpoint's `whsec_` secret, rejecting timestamps outside the tolerance (default 300 seconds). |
584
- | `WebhookVerifier#verify` | Verify a hex HMAC-SHA256 signature added by the receiver's own gateway. |
566
+ | `WebhookVerifier.new`, `#verify_delivery` | Verify a Standard Webhooks delivery (`webhook-id`, `webhook-timestamp`, `webhook-signature`) with the endpoint's `whsec_` secret, rejecting timestamps outside the tolerance (default 300 seconds). | [`webhook_verifier.rb`](../lib/assinafy/support/webhook_verifier.rb) |
567
+ | `WebhookVerifier#verify` | Verify a hex HMAC-SHA256 signature added by the receiver's own gateway. | [`webhook_verifier.rb`](../lib/assinafy/support/webhook_verifier.rb) |
585
568
  | `WebhookVerifier::SECRET_PREFIX`, `::DEFAULT_TOLERANCE` | The `whsec_` secret prefix and the default 300-second timestamp tolerance. | [`webhook_verifier.rb`](../lib/assinafy/support/webhook_verifier.rb) |
586
569
  | `WebhookVerifier#extract_event`, `#event_type`, `#event_payload`, `#event_object`, `#event_subject`, `#event_data` | Parse and access webhook envelope fields; `event_data` is retained as a compatibility helper. | [`webhook_verifier.rb`](../lib/assinafy/support/webhook_verifier.rb) |
587
570
  | `Assinafy::Error.new`, `#context` | Construct/read the SDK base error and its structured context. | [`errors.rb`](../lib/assinafy/errors.rb) |
@@ -607,7 +590,7 @@ The schema catalog below describes the published response objects and their nest
607
590
 
608
591
  ## Schema catalog
609
592
 
610
- All 63 published schemas (including staging ScheduledSend) are listed below. `*` marks required properties. Nested fields are listed with dot notation; links identify reusable schemas. Examples use placeholder contacts.
593
+ All 63 published schemas are listed below. `*` marks required properties. Nested fields are listed with dot notation; links identify reusable schemas. Examples use placeholder contacts.
611
594
 
612
595
  ### Account
613
596
 
@@ -656,14 +639,6 @@ The workspace's plan and what is left of it.
656
639
  | `balances.documents` | [`Balance`](#balance) | |
657
640
  | `balances.credits` | [`Balance`](#balance) | |
658
641
 
659
- ### ApiKey
660
-
661
-
662
-
663
- | Property | Type | Description |
664
- | --- | --- | --- |
665
- | `api_key` | string or null | Example: `"mIpe_zdJfKUpMK9Va3XuYgzPXMxz49fIaRCWXseVkpVAX608A9j3i_D67qU5qW3M"`. |
666
-
667
642
  ### Assignment
668
643
 
669
644
  A request for signers to sign a document.
@@ -674,7 +649,7 @@ A request for signers to sign a document.
674
649
  | `id` | string | Example: `"615606ef81d199996981dbce"`. |
675
650
  | `document_id` | string or null | The document this assignment belongs to. `null` only if the document was deleted. Example: `"615601fab04c0a3147bb1246"`. |
676
651
  | `created_at` | string (format: date-time) | Example: `"2026-06-03T03:54:16Z"`. |
677
- | `sender_email` | string or null (format: email) | Email of the user who sent the document; null once that user has deleted their account. Example: `"signer@example.com"`. |
652
+ | `sender_email` | string or null (format: email) | Email of the user who sent the document; null once that user has deleted their account. Example: `"sender@example.com"`. |
678
653
  | `method` | string (`"virtual"`, `"collect"`) | Example: `"virtual"`. |
679
654
  | `expires_at` | string or null (format: date-time) | Example: `null`. |
680
655
  | `message` | string or null | |
@@ -707,17 +682,17 @@ A signer within an assignment: the base Signer plus per-assignment verification/
707
682
  | `resource` | string | Present in single-resource responses. Example: `"signer"`. |
708
683
  | `id` | string | Example: `"62d6ee35c7741ca4006b9e11"`. |
709
684
  | `full_name` | string | Example: `"John Signer"`. |
710
- | `email` | string or null (format: email) | Example: `"signer@example.com"`. |
711
- | `whatsapp_phone_number` | string or null | E.164 format; normalized on save. Example: `"+5548999990000"`. |
685
+ | `email` | string or null (format: email) | Example: `"john@example.com"`. |
686
+ | `whatsapp_phone_number` | string or null | E.164 format; normalized on save. A number written with `+` is read with the country code it names first, and as Brazilian if it isn't valid there; one without `+` is read as a Brazilian area code and number first. Example: `"+5548999990000"`. |
712
687
  | `government_id` | string or null | Signer's normalized CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Example: `"39053344705"`. |
713
688
  | `has_accepted_terms` | boolean | Example: `false`. |
714
689
  | `verification_method` | string or null | Example: `"Email"`. |
715
- | `notification_methods` | array or null | Example: `["Email"]`. |
690
+ | `notification_methods` | Array<string> or null | Example: `["Email"]`. |
716
691
  | `step` | integer or null | Sequential signing step (defaults to 1). Example: `1`. |
717
692
  | `notified` | boolean or null | |
718
693
  | `identity_verification_status` | string or null (`"Pending"`, `"InReview"`, `"Approved"`, `"Declined"`, `"Expired"`, `"Abandoned"`) | Latest identity-document verification status; `InReview` means the account must decide it before the document can be certificated. Example: `"InReview"`. |
719
694
  | `completed` | boolean or null | Only present in account-owner contexts. |
720
- | `notification_history` | array or null | Per-channel delivery history for this signer (email + WhatsApp), most-recent send order. |
695
+ | `notification_history` | Array<[`NotificationHistoryEntry`](#notificationhistoryentry)> or null | Per-channel delivery history for this signer (email + WhatsApp), most-recent send order. |
721
696
 
722
697
  ### AssignmentSummary
723
698
 
@@ -759,7 +734,7 @@ A JWT access token plus the authenticated user and the accounts they belong to.
759
734
  | --- | --- | --- |
760
735
  | `id` | string | Example: `"bgjazeo5r9v2lq7l36dx48np"`. |
761
736
  | `name` | string | Example: `"John Smith"`. |
762
- | `email` | string (format: email) | Example: `"signer@example.com"`. |
737
+ | `email` | string (format: email) | Example: `"example@example.com"`. |
763
738
  | `telephone` | string or null | Example: `"17989206641"`. |
764
739
  | `government_id` | string or null | Example: `"15774136604"`. |
765
740
  | `is_email_verified` | boolean | Example: `false`. |
@@ -840,14 +815,14 @@ A document and its current lifecycle state.
840
815
  | `verification_url` | string or null (format: uri) | The public verification page for this document. `null` until the document is `certificated`. Example: `"https://www.assinafy.com.br/verificador/a3f1c9e07b2d4e8f9a6c5b1d0e7f3a2c9b8d4e6f"`. |
841
816
  | `decline_reason` | string or null | Example: `null`. |
842
817
  | `declined_by` | [`Signer`](#signer) or null | |
843
- | `tags` | Array<object { `id`: string; `name`: string; `color`: string or null }> | The workspace's labels on the document. Always empty when the signer reads it with their code.
818
+ | `tags` | Array<object { `id`: string; `name`: string; `color`: string or null }> | The workspace's labels on the document. Always empty when the signer reads it with their code. |
844
819
  | `tags[].id` | string | |
845
820
  | `tags[].name` | string | |
846
821
  | `tags[].color` | string or null | 6-char hex without leading #. Example: `"ff8800"`. |
847
822
  | `assignment` | [`Assignment`](#assignment) or null | The document's assignment, or `null` before one is created. The server decides when it is included, whatever `expand` the request sends: the document list, `GET /v1/documents/{documentId}`, the signer's document list and document creation from a template always include it; `/documents/search` and the upload response never do. Only the rename response follows `?expand=assignment`. |
848
823
  | `pages` | Array<[`DocumentPage`](#documentpage)> | The document's pages. Included on the same responses as `assignment`, and also on the upload response. |
849
824
  | `envelope_id` | string or null | Only on `GET /v1/documents/{documentId}?expand=envelope_id` read by the workspace, not in document lists or webhooks, so their payloads keep their shape: the envelope this document is in, or `null` for a document sent on its own, taken out of its envelope, or whose envelope was deleted. Example: `null`. |
850
- | `envelope` | object { `id*`: string; `name*`: string } | Only on `GET /v1/documents/{documentId}?expand=envelope` read by the workspace and `GET /v1/sign?expand=envelope` or `GET /v1/signers/{signerId}/document?expand=envelope` read with the signer's code, not in document lists or webhooks: the envelope this document is in, or `null` for a document sent on its own, taken out of its envelope, or whose envelope was deleted. The signer's reads name the envelope their code belongs to even when the code's own document was taken out, since the code still reaches the rest. |
825
+ | `envelope` | object { `id*`: string; `name*`: string } or null | Only on `GET /v1/documents/{documentId}?expand=envelope` read by the workspace and `GET /v1/sign?expand=envelope` or `GET /v1/signers/{signerId}/document?expand=envelope` read with the signer's code, not in document lists or webhooks: the envelope this document is in, or `null` for a document sent on its own, taken out of its envelope, or whose envelope was deleted. The signer's reads name the envelope their code belongs to even when the code's own document was taken out, since the code still reaches the rest. |
851
826
  | `envelope.id` * | string | Example: `"fe1c140cb49b79f940aab95fddd"`. |
852
827
  | `envelope.name` * | string | Example: `"Contrato de prestação de serviços"`. |
853
828
  | `has_contract` | boolean | Only on `GET /v1/documents/{documentId}` read by the workspace, while the environment has contract tracking on: not with a signer's access code, not in document lists or webhooks, and left out when the lookup fails, so a missing key means unknown. Whether `GET /v1/accounts/{accountId}/documents/{documentId}/contract` answers with contract terms, the document's own or those of a contract it amends whose document still exists, so a page can lay out the contract section before reading it. Example: `true`. |
@@ -856,15 +831,15 @@ A document and its current lifecycle state.
856
831
 
857
832
  ### DocumentActivity
858
833
 
859
- A document activity event.
834
+ A document activity/audit event.
860
835
 
861
836
  | Property | Type | Description |
862
837
  | --- | --- | --- |
863
838
  | `id` | integer | Example: `4`. |
864
839
  | `event` | string | Event type code. Example: `"assignment_created"`. |
865
840
  | `message` | string | Example: `"Assignment created by John Smith."`. |
866
- | `payload` | object or array or null | `[]` for the events that record nothing (`document_uploaded`, `document_metadata_ready`, `document_prepared`). Otherwise an event-specific snapshot taken when the event happened, with the same keys as the webhook of that event (see **Webhook Payloads**). The common ones: `user_name` (`assignment_created`, `user_rejected_document`); `signer_full_name` (every `signer_*` event and `signature_requested`); `signer_email`, `signer_whatsapp_phone_number` and `notification_method` (`signature_requested`); `reviewer_name` (identity review decisions); `error_message` (`document_processing_failed`). `message` already carries the actor's name, translated, so clients can show it as is. A `*_at` key inside the payload is returned as an ISO 8601 string here, as in every API response, but as a Unix integer in webhook bodies. |
867
- | `origin` | object { `ip`: string or null; `user-agent`: string } | Request origin when available. |
841
+ | `payload` | object or null | `[]` for the events that record nothing (`document_uploaded`, `document_metadata_ready`, `document_prepared`). Otherwise an event-specific snapshot taken when the event happened, with the same keys as the webhook of that event (see **Webhook Payloads**). The common ones: `user_name` (`assignment_created`, `user_rejected_document`); `signer_full_name` (every `signer_*` event and `signature_requested`); `signer_email`, `signer_whatsapp_phone_number` and `notification_method` (`signature_requested`); `reviewer_name` (identity review decisions); `error_message` (`document_processing_failed`). `message` already carries the actor's name, translated, so clients can show it as is. A `*_at` key inside the payload is returned as an ISO 8601 string here, as in every API response, but as a Unix integer in webhook bodies. |
842
+ | `origin` | object { `ip`: string or null; `user-agent`: string } or null | Request origin when available. |
868
843
  | `origin.ip` | string or null | `null` when the request carried no client address. Example: `"172.19.0.1"`. |
869
844
  | `origin.user-agent` | string | |
870
845
  | `created_at` | string (format: date-time) | Example: `"2022-07-19T19:28:13Z"`. |
@@ -938,7 +913,7 @@ Every attribute is optional and only the ones sent change. `null` clears an attr
938
913
  | `notice_period_days` | integer or null (min: 0) (max: 3650) | Days before `end_date` the notice period starts (`document_contract_renewal_notice`); none when unset. |
939
914
  | `owner_id` | string or null | An active member of this workspace. |
940
915
  | `metadata` | object or null; additional values: string (max length: 500) | Your own fields: up to 50 keys of 1 to 40 letters, digits, `_`, `-` or `.`, each holding plain text of at most 500 characters; no number under a key ending in `_at`, or `stuck_since`. |
941
- | `external_references` | array or null (max items: 20) | Replaces the whole list; `[]` or `null` clears it. Two items whose `system` and `id` compare equal case aside are one reference (the first sent is kept); a pair the database takes for one beyond that (accents, `ß` and `ss`) answers `400`. |
916
+ | `external_references` | Array<object { `system*`: string (max length: 64); `id*`: string (max length: 255) }> or null (max items: 20) | Replaces the whole list; `[]` or `null` clears it. Two items whose `system` and `id` compare equal case aside are one reference (the first sent is kept); a pair the database takes for one beyond that (accents, `ß` and `ss`) answers `400`. |
942
917
  | `parent_document_id` | string or null | Links the document as an amendment of this contract document, or of any document in its family (resolved to the root); `null` unlinks a pending amendment. With it, the other attributes are the terms the instrument changes, not terms of its own; on a pending amendment a `null` value drops that term from the delta rather than clearing it on the parent. |
943
918
  | `relation_type` | string (`"amendment"`, `"renewal"`, `"termination"`) | Required on the first link. `amendment` may change `value`, `currency`, `start_date` (effective from, display only), `end_date`, `auto_renew`, `renewal_term_months`, `notice_period_days`, `counterparty_name`, `counterparty_taxpayer_id` and `metadata`; `renewal` only `end_date` and `value`; `termination` only `end_date` (the effective date). |
944
919
  | `updated_at` | string (format: date-time) | Optional precondition: the `updated_at` the client read the contract (or this document's amendment link) with, as the API returned it. If the contract or link changed since, nothing is written and the answer is `409` with `code: ContractChanged`. Not sent, or `null`: the write applies whatever changed meanwhile (last write wins). Compared to the second; a fraction of a second, as a JavaScript date prints it, is read and ignored. New terms and a first link have nothing to have read, so sending one answers `409`; on a pending amendment, send the link's own `updated_at` (the GET on that document). Example: `"2026-10-23T12:00:00Z"`. |
@@ -962,7 +937,7 @@ Documents sent together to the same signers. Each document keeps its own assignm
962
937
  | `documents[].signers` * | Array<object { `id*`: string; `full_name*`: string; `email*`: string or null; `whatsapp_phone_number*`: string or null; `completed*`: boolean; `signed_at*`: string or null (format: date-time) }> | The document's signers: a signer appears only on the documents they are on. |
963
938
  | `documents[].signers[].id` * | string | Example: `"fa8c140cb49b79f940aab95fddd"`. |
964
939
  | `documents[].signers[].full_name` * | string | Example: `"Ana Souza"`. |
965
- | `documents[].signers[].email` * | string or null | Example: `"signer@example.com"`. |
940
+ | `documents[].signers[].email` * | string or null | Example: `"ana@example.com"`. |
966
941
  | `documents[].signers[].whatsapp_phone_number` * | string or null | Example: `"+5548999990001"`. |
967
942
  | `documents[].signers[].completed` * | boolean | Whether they have signed this document. Example: `false`. |
968
943
  | `documents[].signers[].signed_at` * | string or null (format: date-time) | When they signed this document; `null` until they do. Example: `"2026-11-06T14:30:00Z"`. |
@@ -1080,8 +1055,8 @@ A document activity of an envelope's trail, naming its document.
1080
1055
  | `id` | integer | Example: `4`. |
1081
1056
  | `event` | string | Event type code. Example: `"assignment_created"`. |
1082
1057
  | `message` | string | Example: `"Assignment created by John Smith."`. |
1083
- | `payload` | object or array or null | `[]` for the events that record nothing (`document_uploaded`, `document_metadata_ready`, `document_prepared`). Otherwise an event-specific snapshot taken when the event happened, with the same keys as the webhook of that event (see **Webhook Payloads**). The common ones: `user_name` (`assignment_created`, `user_rejected_document`); `signer_full_name` (every `signer_*` event and `signature_requested`); `signer_email`, `signer_whatsapp_phone_number` and `notification_method` (`signature_requested`); `reviewer_name` (identity review decisions); `error_message` (`document_processing_failed`). `message` already carries the actor's name, translated, so clients can show it as is. A `*_at` key inside the payload is returned as an ISO 8601 string here, as in every API response, but as a Unix integer in webhook bodies. |
1084
- | `origin` | object { `ip`: string or null; `user-agent`: string } | Request origin when available. |
1058
+ | `payload` | object or null | `[]` for the events that record nothing (`document_uploaded`, `document_metadata_ready`, `document_prepared`). Otherwise an event-specific snapshot taken when the event happened, with the same keys as the webhook of that event (see **Webhook Payloads**). The common ones: `user_name` (`assignment_created`, `user_rejected_document`); `signer_full_name` (every `signer_*` event and `signature_requested`); `signer_email`, `signer_whatsapp_phone_number` and `notification_method` (`signature_requested`); `reviewer_name` (identity review decisions); `error_message` (`document_processing_failed`). `message` already carries the actor's name, translated, so clients can show it as is. A `*_at` key inside the payload is returned as an ISO 8601 string here, as in every API response, but as a Unix integer in webhook bodies. |
1059
+ | `origin` | object { `ip`: string or null; `user-agent`: string } or null | Request origin when available. |
1085
1060
  | `origin.ip` | string or null | `null` when the request carried no client address. Example: `"172.19.0.1"`. |
1086
1061
  | `origin.user-agent` | string | |
1087
1062
  | `created_at` | string (format: date-time) | Example: `"2022-07-19T19:28:13Z"`. |
@@ -1112,9 +1087,9 @@ A document of an envelope, as sent on creation (`documents[]`) and when added.
1112
1087
  | --- | --- | --- |
1113
1088
  | `id` * | string (min length: 1) | A `metadata_ready` document of the workspace with no assignment. Example: `"615601fab04c0a3147bb1246"`. |
1114
1089
  | `method` | string (`"virtual"`, `"collect"`) | As on an assignment: `virtual` (the default), signed on its virtual page, or `collect`, signed on the fields placed in `entries`. |
1115
- | `entries` | Array<object { `page_id*`: string; `fields*`: Array<object { `signer_id*`: string; `field_id*`: string; `display_settings*`: [`DisplaySettings`](#displaysettings) }> (min items: 1) }> (min items: 1) | Required for `collect`, as on an assignment: the fields placed on each page of the document. Its signers are the ones on its fields, exactly its `signer_ids`. |
1090
+ | `entries` | Array<object { `page_id*`: string; `fields*`: Array<object { `signer_id*`: string; `field_id*`: string; `display_settings*`: [`DisplaySettings`](#displaysettings) }> }> (min items: 1) | Required for `collect`, as on an assignment: the fields placed on each page of the document. Its signers are the ones on its fields, exactly its `signer_ids`. |
1116
1091
  | `entries[].page_id` * | string | A page of the document. |
1117
- | `entries[].fields` * | Array<object { `signer_id*`: string; `field_id*`: string; `display_settings*`: [`DisplaySettings`](#displaysettings) }> (min items: 1) | |
1092
+ | `entries[].fields` * | Array<object { `signer_id*`: string; `field_id*`: string; `display_settings*`: [`DisplaySettings`](#displaysettings) }> | The fields placed on this page. A page with none adds nothing, as on an assignment. |
1118
1093
  | `entries[].fields[].signer_id` * | string | A signer of the document. |
1119
1094
  | `entries[].fields[].field_id` * | string | A field definition of the workspace. |
1120
1095
  | `entries[].fields[].display_settings` * | [`DisplaySettings`](#displaysettings) | |
@@ -1149,7 +1124,7 @@ A reusable field definition.
1149
1124
  | `type` | string | Example: `"signature"`. |
1150
1125
  | `regex` | string or null | |
1151
1126
  | `is_pre_defined` | boolean | |
1152
- | `is_active` | boolean | Whether the field is offered for new placements: the field list leaves an inactive one out unless `include_inactive` is set. Documents and templates already using an inactive field keep working: its values are still validated and signed.
1127
+ | `is_active` | boolean | Whether the field is offered for new placements: the field list leaves an inactive one out unless `include_inactive` is set. Documents and templates already using an inactive field keep working: its values are still validated and signed. |
1153
1128
  | `is_required` | boolean | |
1154
1129
  | `is_standard` | boolean | |
1155
1130
  | `is_read_only` | boolean | |
@@ -1309,6 +1284,25 @@ Credits a reminder to one signer will take, and whether the account can pay for
1309
1284
  | `credit_balance` | number or null | Credits available. `null` when the account's credits are not limited. Example: `10`. |
1310
1285
  | `has_sufficient_credits` | boolean | Whether the reminder would pass its credit check now: the check the reminder itself makes, so a contract that allows overage passes with a low `credit_balance`, and a plan whose payment is pending doesn't, whatever the balance. Example: `true`. |
1311
1286
 
1287
+ ### ScheduledSend
1288
+
1289
+ A **Create assignment** or **Create envelope** request kept until `send_at`, then made as that route makes it, by the member who scheduled it.
1290
+
1291
+ | Property | Type | Description |
1292
+ | --- | --- | --- |
1293
+ | `resource` | string | Example: `"scheduled_send"`. |
1294
+ | `id` * | string | Example: `"64f1a2b3c4d5e6f708192a3b"`. |
1295
+ | `type` * | string (`"assignment"`, `"envelope"`) | What it creates. Example: `"assignment"`. |
1296
+ | `document_ids` * | Array<string> | The documents it sends: one for an assignment, the envelope's for an envelope. A deleted document is left out. Example: `["615601fab04c0a3147bb1246"]`. |
1297
+ | `status` * | string (`"pending"`, `"processing"`, `"sent"`, `"cancelled"`, `"failed"`) | `pending` until `send_at` (or **Send a scheduled send now**); `processing` while its request is being made; then `sent` (the request was made; its invitations go out right after), `failed` or, if cancelled while pending, `cancelled`. A send whose run was interrupted while `processing` made nothing, and fails within about an hour. Example: `"pending"`. |
1298
+ | `send_at` * | string (format: date-time) | When it was scheduled to go. It stays as scheduled when the send is postponed (`next_attempt_at`). Example: `"2026-11-20T12:00:00Z"`. |
1299
+ | `next_attempt_at` * | string or null (format: date-time) | Set while a `pending` send is postponed by the free plan's daily signer email limit: when it is tried again, as the limit has room for its invitations then. `null` for a send that was never held back. Example: `null`. |
1300
+ | `assignment_id` * | string or null | The assignment it created, once an `assignment` is `sent`. Example: `null`. |
1301
+ | `envelope_id` * | string or null | The envelope it created, once an `envelope` is `sent`; `null` again once the envelope is deleted. Example: `null`. |
1302
+ | `failure_reason` * | string or null | Why it was not sent, once `failed`: the refusal the create route answered then (no documents or credits left, a signer removed, the document already sent, the plan without Envelopes), that the workspace is being deleted, that the member who scheduled it left the workspace, or that the free plan's daily signer email limit held it back for 7 days after `send_at`. Written in Portuguese. Example: `null`. |
1303
+ | `created_at` * | string (format: date-time) | Example: `"2026-11-14T18:00:00Z"`. |
1304
+ | `processed_at` * | string or null (format: date-time) | When it was sent, failed or cancelled. Example: `null`. |
1305
+
1312
1306
  ### Signer
1313
1307
 
1314
1308
  A signing party belonging to a workspace account.
@@ -1318,8 +1312,8 @@ A signing party belonging to a workspace account.
1318
1312
  | `resource` | string | Present in single-resource responses. Example: `"signer"`. |
1319
1313
  | `id` | string | Example: `"62d6ee35c7741ca4006b9e11"`. |
1320
1314
  | `full_name` | string | Example: `"John Signer"`. |
1321
- | `email` | string or null (format: email) | Example: `"signer@example.com"`. |
1322
- | `whatsapp_phone_number` | string or null | E.164 format; normalized on save. A number written with `+` is read with the country code it names first, and as Brazilian if it isn't valid there; one without `+` is read as a Brazilian area code and number first.
1315
+ | `email` | string or null (format: email) | Example: `"john@example.com"`. |
1316
+ | `whatsapp_phone_number` | string or null | E.164 format; normalized on save. A number written with `+` is read with the country code it names first, and as Brazilian if it isn't valid there; one without `+` is read as a Brazilian area code and number first. Example: `"+5548999990000"`. |
1323
1317
  | `government_id` | string or null | Signer's normalized CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Example: `"39053344705"`. |
1324
1318
  | `has_accepted_terms` | boolean | Example: `false`. |
1325
1319
 
@@ -1337,14 +1331,14 @@ A signing party belonging to a workspace account.
1337
1331
  | `reason_codes[].code` | string | Example: `"NAME_MISMATCH"`. |
1338
1332
  | `reason_codes[].description` | string | Example: `"Nome no documento difere do cadastrado (similaridade 52%)"`. |
1339
1333
  | `evidence_available` | boolean | Example: `true`. |
1340
- | `expected` | object { `name`: string or null; `cpf`: string or null } | What the signer was registered with. |
1334
+ | `expected` | object { `name`: string or null; `cpf`: string or null } or null | What the signer was registered with. |
1341
1335
  | `expected.name` | string or null | Example: `"Maria da Silva"`. |
1342
1336
  | `expected.cpf` | string or null | Example: `"52998224725"`. |
1343
- | `document` | object { `type`: string or null; `name`: string or null; `cpf`: string or null } | What was read from the document. |
1337
+ | `document` | object { `type`: string or null; `name`: string or null; `cpf`: string or null } or null | What was read from the document. |
1344
1338
  | `document.type` | string or null | Example: `"CNH"`. |
1345
1339
  | `document.name` | string or null | Example: `"MARIA SILVA"`. |
1346
1340
  | `document.cpf` | string or null | Example: `"52998224725"`. |
1347
- | `matches` | object { `cpf`: boolean or null; `name`: number or null; `birth_date`: boolean or null } | |
1341
+ | `matches` | object { `cpf`: boolean or null; `name`: number or null; `birth_date`: boolean or null } or null | |
1348
1342
  | `matches.cpf` | boolean or null | Example: `true`. |
1349
1343
  | `matches.name` | number or null | Name similarity, 0-1. Example: `0.5217`. |
1350
1344
  | `matches.birth_date` | boolean or null | Example: `null`. |
@@ -1356,7 +1350,7 @@ A signing party belonging to a workspace account.
1356
1350
  | `images` | Array<string (`"document_front"`, `"document_back"`, `"document_pdf"`, `"face"`)> | The evidence images the reviewer can open with **Signer identity review image**, in display order: `document_front`, `document_back`, `document_pdf`, `face`. Only while `status` is `InReview`; empty once decided. Example: `["document_front","document_back","face"]`. |
1357
1351
  | `ruleset_version` | string or null | Example: `"2026-10-12.2"`. |
1358
1352
  | `evidence_sha256` | string or null | Example: `"9f2c0d6e4b1a8c3f5e7d9b0a2c4e6f8a1b3d5f7091e2c4a6b8d0f2e4a6c8e0b2"`. |
1359
- | `reviewed_by` | object { `id`: string; `name`: string } | |
1353
+ | `reviewed_by` | object { `id`: string; `name`: string } or null | |
1360
1354
  | `reviewed_by.id` | string | Example: `"Kx9pQ2"`. |
1361
1355
  | `reviewed_by.name` | string | Example: `"Ana Souza"`. |
1362
1356
  | `reviewed_at` | string or null (format: date-time) | Example: `"2026-10-13T21:05:00Z"`. |
@@ -1372,8 +1366,8 @@ The current signer, as returned by `GET /v1/signers/self`. Extends Signer with t
1372
1366
  | `resource` | string | Present in single-resource responses. Example: `"signer"`. |
1373
1367
  | `id` | string | Example: `"62d6ee35c7741ca4006b9e11"`. |
1374
1368
  | `full_name` | string | Example: `"John Signer"`. |
1375
- | `email` | string or null (format: email) | Example: `"signer@example.com"`. |
1376
- | `whatsapp_phone_number` | string or null | E.164 format; normalized on save. Example: `"+5548999990000"`. |
1369
+ | `email` | string or null (format: email) | Example: `"john@example.com"`. |
1370
+ | `whatsapp_phone_number` | string or null | E.164 format; normalized on save. A number written with `+` is read with the country code it names first, and as Brazilian if it isn't valid there; one without `+` is read as a Brazilian area code and number first. Example: `"+5548999990000"`. |
1377
1371
  | `government_id` | string or null | Signer's normalized CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Example: `"39053344705"`. |
1378
1372
  | `has_accepted_terms` | boolean | Example: `false`. |
1379
1373
  | `has_signature` | boolean | Whether the signer has a saved signature image stored. Example: `true`. |
@@ -1400,24 +1394,24 @@ The document as its signer reads it with the access code: the document with `cur
1400
1394
  | `verification_url` | string or null (format: uri) | The public verification page for this document. `null` until the document is `certificated`. Example: `"https://www.assinafy.com.br/verificador/a3f1c9e07b2d4e8f9a6c5b1d0e7f3a2c9b8d4e6f"`. |
1401
1395
  | `decline_reason` | string or null | Example: `null`. |
1402
1396
  | `declined_by` | [`Signer`](#signer) or null | |
1403
- | `tags` | Array<object { `id`: string; `name`: string; `color`: string or null }> | |
1397
+ | `tags` | Array<object { `id`: string; `name`: string; `color`: string or null }> | The workspace's labels on the document. Always empty when the signer reads it with their code. |
1404
1398
  | `tags[].id` | string | |
1405
1399
  | `tags[].name` | string | |
1406
1400
  | `tags[].color` | string or null | 6-char hex without leading #. Example: `"ff8800"`. |
1407
1401
  | `assignment` | [`Assignment`](#assignment) or null | The document's assignment, or `null` before one is created. The server decides when it is included, whatever `expand` the request sends: the document list, `GET /v1/documents/{documentId}`, the signer's document list and document creation from a template always include it; `/documents/search` and the upload response never do. Only the rename response follows `?expand=assignment`. |
1408
1402
  | `pages` | Array<[`DocumentPage`](#documentpage)> | The document's pages. Included on the same responses as `assignment`, and also on the upload response. |
1409
1403
  | `envelope_id` | string or null | Only on `GET /v1/documents/{documentId}?expand=envelope_id` read by the workspace, not in document lists or webhooks, so their payloads keep their shape: the envelope this document is in, or `null` for a document sent on its own, taken out of its envelope, or whose envelope was deleted. Example: `null`. |
1410
- | `envelope` | object { `id*`: string; `name*`: string } | Only on `GET /v1/documents/{documentId}?expand=envelope` read by the workspace and `GET /v1/sign?expand=envelope` or `GET /v1/signers/{signerId}/document?expand=envelope` read with the signer's code, not in document lists or webhooks: the envelope this document is in, or `null` for a document sent on its own, taken out of its envelope, or whose envelope was deleted. The signer's reads name the envelope their code belongs to even when the code's own document was taken out, since the code still reaches the rest. |
1404
+ | `envelope` | object { `id*`: string; `name*`: string } or null | Only on `GET /v1/documents/{documentId}?expand=envelope` read by the workspace and `GET /v1/sign?expand=envelope` or `GET /v1/signers/{signerId}/document?expand=envelope` read with the signer's code, not in document lists or webhooks: the envelope this document is in, or `null` for a document sent on its own, taken out of its envelope, or whose envelope was deleted. The signer's reads name the envelope their code belongs to even when the code's own document was taken out, since the code still reaches the rest. |
1411
1405
  | `envelope.id` * | string | Example: `"fe1c140cb49b79f940aab95fddd"`. |
1412
1406
  | `envelope.name` * | string | Example: `"Contrato de prestação de serviços"`. |
1413
1407
  | `has_contract` | boolean | Only on `GET /v1/documents/{documentId}` read by the workspace, while the environment has contract tracking on: not with a signer's access code, not in document lists or webhooks, and left out when the lookup fails, so a missing key means unknown. Whether `GET /v1/accounts/{accountId}/documents/{documentId}/contract` answers with contract terms, the document's own or those of a contract it amends whose document still exists, so a page can lay out the contract section before reading it. Example: `true`. |
1414
1408
  | `created_at` | string (format: date-time) | Example: `"2026-06-03T03:54:16Z"`. |
1415
1409
  | `updated_at` | string (format: date-time) | Example: `"2026-06-03T03:54:16Z"`. |
1416
- | `current_signer` | [`Signer`](#signer) plus object { `verification_method`: string; `notification_methods`: array or null; `completed`: boolean } | This signer. Once the code is closed, only `id` and the last three. |
1410
+ | `current_signer` | [`Signer`](#signer) plus object { `verification_method`: string; `notification_methods`: Array<string> or null; `completed`: boolean } | This signer. Once the code is closed, only `id` and the last three. |
1417
1411
  | `is_signer_access_closed` | boolean | Whether the code is closed. Example: `false`. |
1418
- | `certified_copy` | object { `available*`: boolean; `notification_method*`: string or null (`"Email"`, `"Whatsapp"`, `null`); `resends_left*`: integer or null } | Whether the signer can ask for the certified copy again (`POST /v1/sign/certified-copy`). |
1412
+ | `certified_copy` | object { `available*`: boolean; `notification_method*`: string or null (`"Email"`, `"Whatsapp"`); `resends_left*`: integer or null } | Whether the signer can ask for the certified copy again (`POST /v1/sign/certified-copy`). |
1419
1413
  | `certified_copy.available` * | boolean | Example: `false`. |
1420
- | `certified_copy.notification_method` * | string or null (`"Email"`, `"Whatsapp"`, `null`) | The channel it goes on; `null` when there is none. Example: `"Email"`. |
1414
+ | `certified_copy.notification_method` * | string or null (`"Email"`, `"Whatsapp"`) | The channel it goes on; `null` when there is none. Example: `"Email"`. |
1421
1415
  | `certified_copy.resends_left` * | integer or null | WhatsApp re-sends left; `null` for e-mail. Example: `null`. |
1422
1416
 
1423
1417
  ### SigningUrl
@@ -1427,7 +1421,7 @@ One entry per signer whose turn has come. The link depends on how the signer get
1427
1421
  | Property | Type | Description |
1428
1422
  | --- | --- | --- |
1429
1423
  | `signer_id` | string | |
1430
- | `url` | string or null | See the schema description. `null` for a signer notified only by WhatsApp and for an embedded signer. Example: `"https://api.assinafy.com.br/v1/sign/doc1?email=signer@example.com"`. |
1424
+ | `url` | string or null | See the schema description. `null` for a signer notified only by WhatsApp and for an embedded signer. Example: `"https://api.assinafy.com.br/v1/sign/doc1?email=joe@example.com"`. |
1431
1425
  | `embedded` | boolean | Whether the signer was marked `embedded` when the assignment was created. Example: `false`. |
1432
1426
 
1433
1427
  ### Tag
@@ -1540,7 +1534,7 @@ A URL that receives the account's webhook events. Every active endpoint subscrib
1540
1534
  | `id` | string | Endpoint ID. Example: `"65f1c2a9b3e4d5f60718293a4b5c6d7e"`. |
1541
1535
  | `name` | string or null | Label to tell endpoints apart. Example: `"ERP"`. |
1542
1536
  | `url` | string (format: uri) | URL that receives the events; `https` is required for a new or changed URL. Example: `"https://example.com/webhooks/assinafy"`. |
1543
- | `email` | string (format: email) | Contact email for delivery-failure notices. Example: `"signer@example.com"`. |
1537
+ | `email` | string (format: email) | Contact email for delivery-failure notices. Example: `"ops@example.com"`. |
1544
1538
  | `events` | Array<string> | Event types delivered to this endpoint (see **List webhook event types**). Example: `["document_ready","signer_signed_document"]`. |
1545
1539
  | `is_active` | boolean | Whether events are delivered to this endpoint. Example: `true`. |
1546
1540
  | `is_held` | boolean | Whether deliveries are paused after 10 failures in a row: we probe the endpoint on a growing schedule and deliver what it missed when it answers (see **Delivery contract**). Editing the URL, or sending `is_active: true`, lifts the pause. Example: `false`. |
@@ -1567,11 +1561,11 @@ Body of every webhook delivery. Timestamps in the body (`created_at`, and the `*
1567
1561
  | `event` * | string | Event type. See **List webhook event types**; `webhook_test` is sent only by **Send a test delivery**. Example: `"signer_viewed_document"`. |
1568
1562
  | `message` | string or null | Reserved; currently always `null`. Example: `null`. |
1569
1563
  | `payload` | object or null | Event-specific parameters; keys vary per event. |
1570
- | `origin` | object { `ip`: string; `user-agent`: string } | Where the action came from, when it was triggered by a request. |
1564
+ | `origin` | object { `ip`: string; `user-agent`: string } or null | Where the action came from, when it was triggered by a request. |
1571
1565
  | `origin.ip` | string | Example: `"203.0.113.7"`. |
1572
1566
  | `origin.user-agent` | string | Example: `"Mozilla/5.0"`. |
1573
1567
  | `created_at` * | integer | When the event was recorded (Unix timestamp, seconds). Example: `1790000000`. |
1574
- | `subject` * | object | Who performed the action: a `User`, `Signer` or `Account` (the endpoint itself in a `webhook_test`), plus a `type` property naming it. |
1568
+ | `subject` * | object | Who performed the action: a `User`, `Signer` or `Account` (the endpoint itself in a `webhook_test`; the document itself for `document_expiring`, `document_expired` and `signature_reminder_sent`), plus a `type` property naming it. |
1575
1569
  | `object` * | object | What the action was performed on: a `Document`, `Signer` or `Template` with its relations expanded (the endpoint itself in a `webhook_test`), plus a `type` property naming it. |
1576
1570
  | `account_id` * | string | ID of the account that owns the event. Example: `"65f1c2a9b3e4d5f6"`. |
1577
1571
 
@@ -1595,7 +1589,7 @@ An account's webhook subscription configuration.
1595
1589
  | `is_held` | boolean | Whether deliveries are paused after 10 failures in a row (see **Delivery contract**). Example: `false`. |
1596
1590
  | `held_since` | integer or null | When the pause began (Unix timestamp, seconds); `null` while deliveries run. Example: `null`. |
1597
1591
  | `url` | string or null | Webhook endpoint URL; `https` is required for a new or changed URL. Example: `"https://example.com?test=1"`. |
1598
- | `email` | string or null | Contact email for delivery notices. Example: `"signer@example.com"`. |
1592
+ | `email` | string or null | Contact email for delivery notices. Example: `"email@example.com"`. |
1599
1593
  | `updated_at` | string or null (format: date-time) | Example: `"2023-05-10T14:58:24Z"`. |
1600
1594
 
1601
1595
  ### WhatsappNotification
@@ -1611,21 +1605,3 @@ A rendered WhatsApp notification sent for an assignment, split into header/body/
1611
1605
  | `buttons[].text` | string | The button label shown to the signer. Example: `"Abrir documento"`. |
1612
1606
  | `phone_number` | string | Recipient phone (E.164). Example: `"+5511999990001"`. |
1613
1607
  | `signer_id` | string | Example: `"a51edaee68a7"`. |
1614
-
1615
- ### ScheduledSend
1616
-
1617
- A **Create assignment** or **Create envelope** request kept until `send_at`, then made as that route makes it, by the member who scheduled it. Available on staging.
1618
-
1619
- | Property | Type | Description |
1620
- | --- | --- | --- |
1621
- | `resource` | string | |
1622
- | `id` * | string | |
1623
- | `type` * | string (`"assignment"`, `"envelope"`) | What it creates. |
1624
- | `document_ids` * | Array<string> | The documents it sends: one for an assignment, the envelope's for an envelope. A deleted document is left out. |
1625
- | `status` * | string (`"pending"`, `"processing"`, `"sent"`, `"cancelled"`, `"failed"`) | `pending` until `send_at` (or **Send a scheduled send now**); `processing` while its request is being made; then `sent` (the request was made; its invitations go out right after), `failed` or, if cancelled while pending, `cancelled`. A send whose run was interrupted while `processing` made nothing, and fails within about an hour. |
1626
- | `send_at` * | string (format: date-time) | |
1627
- | `assignment_id` * | string or null | The assignment it created, once an `assignment` is `sent`. |
1628
- | `envelope_id` * | string or null | The envelope it created, once an `envelope` is `sent`; `null` again once the envelope is deleted. |
1629
- | `failure_reason` * | string or null | Why it was not sent, once `failed`: the refusal the create route answered then (no documents or credits left, a signer removed, the document already sent, the plan without Envelopes), that the workspace is being deleted, or that the member who scheduled it left the workspace. Written in Portuguese. |
1630
- | `created_at` * | string (format: date-time) | |
1631
- | `processed_at` * | string or null (format: date-time) | When it was sent, failed or cancelled. |