assinafy 2.3.0 → 2.4.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -6
- data/README.en.md +164 -1138
- data/README.md +29 -24
- data/docs/API_REFERENCE.md +114 -130
- data/docs/GUIDE.md +1079 -0
- data/lib/assinafy/client.rb +79 -45
- data/lib/assinafy/configuration.rb +8 -7
- data/lib/assinafy/oauth.rb +12 -15
- data/lib/assinafy/resources/account_resource.rb +13 -10
- data/lib/assinafy/resources/assignment_resource.rb +63 -92
- data/lib/assinafy/resources/base_resource.rb +66 -114
- data/lib/assinafy/resources/contract_resource.rb +17 -33
- data/lib/assinafy/resources/document_resource.rb +73 -61
- data/lib/assinafy/resources/envelope_resource.rb +10 -12
- data/lib/assinafy/resources/field_resource.rb +3 -11
- data/lib/assinafy/resources/oauth_resource.rb +26 -20
- data/lib/assinafy/resources/scheduled_send_resource.rb +10 -5
- data/lib/assinafy/resources/signer_document_resource.rb +24 -14
- data/lib/assinafy/resources/signer_resource.rb +46 -72
- data/lib/assinafy/resources/tag_resource.rb +16 -22
- data/lib/assinafy/resources/template_resource.rb +5 -6
- data/lib/assinafy/resources/user_resource.rb +7 -2
- data/lib/assinafy/resources/webhook_resource.rb +55 -47
- data/lib/assinafy/support/webhook_verifier.rb +2 -2
- data/lib/assinafy/utils.rb +14 -21
- data/lib/assinafy/validation.rb +80 -0
- data/lib/assinafy/version.rb +1 -1
- data/lib/assinafy.rb +1 -1
- data/sig/assinafy.rbs +7 -30
- metadata +6 -6
- data/lib/assinafy/resources/auth_resource.rb +0 -502
data/docs/API_REFERENCE.md
CHANGED
|
@@ -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-
|
|
4
|
-
> `https://api.assinafy.com.br/v1/docs/openapi.json` (
|
|
5
|
-
>
|
|
6
|
-
>
|
|
3
|
+
> Contract source: Assinafy API v1 OpenAPI 3.1.0, retrieved 2026-11-30 from
|
|
4
|
+
> `https://api.assinafy.com.br/v1/docs/openapi.json` (121 paths, 158 operations, 63 schemas).
|
|
5
|
+
> `scripts/check_api_contract.rb` validates contract compatibility weekly. The 15 Authentication operations
|
|
6
|
+
> (login, passwords, two-factor, social login and API keys) 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
|
|
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
|
|
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
|
|
28
|
-
|
|
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
|
-
-
|
|
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"
|
|
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"
|
|
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
|
-
|
|
|
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/
|
|
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`
|
|
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
|
|
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
|
|
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
|
|
269
|
-
here so applications can use the complete template lifecycle.
|
|
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`.
|
|
302
|
-
|
|
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`
|
|
375
|
-
costs 0
|
|
376
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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.
|
|
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.
|
|
534
|
-
|
|
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
|
|
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
|
-
|
|
546
|
-
details and government IDs null. A completed request may be repeated safely
|
|
547
|
-
|
|
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#
|
|
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
|
|
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
|
|
|
@@ -674,7 +657,7 @@ A request for signers to sign a document.
|
|
|
674
657
|
| `id` | string | Example: `"615606ef81d199996981dbce"`. |
|
|
675
658
|
| `document_id` | string or null | The document this assignment belongs to. `null` only if the document was deleted. Example: `"615601fab04c0a3147bb1246"`. |
|
|
676
659
|
| `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: `"
|
|
660
|
+
| `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
661
|
| `method` | string (`"virtual"`, `"collect"`) | Example: `"virtual"`. |
|
|
679
662
|
| `expires_at` | string or null (format: date-time) | Example: `null`. |
|
|
680
663
|
| `message` | string or null | |
|
|
@@ -707,17 +690,17 @@ A signer within an assignment: the base Signer plus per-assignment verification/
|
|
|
707
690
|
| `resource` | string | Present in single-resource responses. Example: `"signer"`. |
|
|
708
691
|
| `id` | string | Example: `"62d6ee35c7741ca4006b9e11"`. |
|
|
709
692
|
| `full_name` | string | Example: `"John Signer"`. |
|
|
710
|
-
| `email` | string or null (format: email) | Example: `"
|
|
711
|
-
| `whatsapp_phone_number` | string or null | E.164 format; normalized on save. Example: `"+5548999990000"`. |
|
|
693
|
+
| `email` | string or null (format: email) | Example: `"john@example.com"`. |
|
|
694
|
+
| `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
695
|
| `government_id` | string or null | Signer's normalized CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Example: `"39053344705"`. |
|
|
713
696
|
| `has_accepted_terms` | boolean | Example: `false`. |
|
|
714
697
|
| `verification_method` | string or null | Example: `"Email"`. |
|
|
715
|
-
| `notification_methods` |
|
|
698
|
+
| `notification_methods` | Array<string> or null | Example: `["Email"]`. |
|
|
716
699
|
| `step` | integer or null | Sequential signing step (defaults to 1). Example: `1`. |
|
|
717
700
|
| `notified` | boolean or null | |
|
|
718
701
|
| `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
702
|
| `completed` | boolean or null | Only present in account-owner contexts. |
|
|
720
|
-
| `notification_history` |
|
|
703
|
+
| `notification_history` | Array<[`NotificationHistoryEntry`](#notificationhistoryentry)> or null | Per-channel delivery history for this signer (email + WhatsApp), most-recent send order. |
|
|
721
704
|
|
|
722
705
|
### AssignmentSummary
|
|
723
706
|
|
|
@@ -759,7 +742,7 @@ A JWT access token plus the authenticated user and the accounts they belong to.
|
|
|
759
742
|
| --- | --- | --- |
|
|
760
743
|
| `id` | string | Example: `"bgjazeo5r9v2lq7l36dx48np"`. |
|
|
761
744
|
| `name` | string | Example: `"John Smith"`. |
|
|
762
|
-
| `email` | string (format: email) | Example: `"
|
|
745
|
+
| `email` | string (format: email) | Example: `"example@example.com"`. |
|
|
763
746
|
| `telephone` | string or null | Example: `"17989206641"`. |
|
|
764
747
|
| `government_id` | string or null | Example: `"15774136604"`. |
|
|
765
748
|
| `is_email_verified` | boolean | Example: `false`. |
|
|
@@ -840,14 +823,14 @@ A document and its current lifecycle state.
|
|
|
840
823
|
| `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
824
|
| `decline_reason` | string or null | Example: `null`. |
|
|
842
825
|
| `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.
|
|
826
|
+
| `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
827
|
| `tags[].id` | string | |
|
|
845
828
|
| `tags[].name` | string | |
|
|
846
829
|
| `tags[].color` | string or null | 6-char hex without leading #. Example: `"ff8800"`. |
|
|
847
830
|
| `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
831
|
| `pages` | Array<[`DocumentPage`](#documentpage)> | The document's pages. Included on the same responses as `assignment`, and also on the upload response. |
|
|
849
832
|
| `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. |
|
|
833
|
+
| `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
834
|
| `envelope.id` * | string | Example: `"fe1c140cb49b79f940aab95fddd"`. |
|
|
852
835
|
| `envelope.name` * | string | Example: `"Contrato de prestação de serviços"`. |
|
|
853
836
|
| `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 +839,15 @@ A document and its current lifecycle state.
|
|
|
856
839
|
|
|
857
840
|
### DocumentActivity
|
|
858
841
|
|
|
859
|
-
A document activity event.
|
|
842
|
+
A document activity/audit event.
|
|
860
843
|
|
|
861
844
|
| Property | Type | Description |
|
|
862
845
|
| --- | --- | --- |
|
|
863
846
|
| `id` | integer | Example: `4`. |
|
|
864
847
|
| `event` | string | Event type code. Example: `"assignment_created"`. |
|
|
865
848
|
| `message` | string | Example: `"Assignment created by John Smith."`. |
|
|
866
|
-
| `payload` | object or
|
|
867
|
-
| `origin` | object { `ip`: string or null; `user-agent`: string } | Request origin when available. |
|
|
849
|
+
| `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. |
|
|
850
|
+
| `origin` | object { `ip`: string or null; `user-agent`: string } or null | Request origin when available. |
|
|
868
851
|
| `origin.ip` | string or null | `null` when the request carried no client address. Example: `"172.19.0.1"`. |
|
|
869
852
|
| `origin.user-agent` | string | |
|
|
870
853
|
| `created_at` | string (format: date-time) | Example: `"2022-07-19T19:28:13Z"`. |
|
|
@@ -938,7 +921,7 @@ Every attribute is optional and only the ones sent change. `null` clears an attr
|
|
|
938
921
|
| `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
922
|
| `owner_id` | string or null | An active member of this workspace. |
|
|
940
923
|
| `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` |
|
|
924
|
+
| `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
925
|
| `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
926
|
| `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
927
|
| `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 +945,7 @@ Documents sent together to the same signers. Each document keeps its own assignm
|
|
|
962
945
|
| `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
946
|
| `documents[].signers[].id` * | string | Example: `"fa8c140cb49b79f940aab95fddd"`. |
|
|
964
947
|
| `documents[].signers[].full_name` * | string | Example: `"Ana Souza"`. |
|
|
965
|
-
| `documents[].signers[].email` * | string or null | Example: `"
|
|
948
|
+
| `documents[].signers[].email` * | string or null | Example: `"ana@example.com"`. |
|
|
966
949
|
| `documents[].signers[].whatsapp_phone_number` * | string or null | Example: `"+5548999990001"`. |
|
|
967
950
|
| `documents[].signers[].completed` * | boolean | Whether they have signed this document. Example: `false`. |
|
|
968
951
|
| `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 +1063,8 @@ A document activity of an envelope's trail, naming its document.
|
|
|
1080
1063
|
| `id` | integer | Example: `4`. |
|
|
1081
1064
|
| `event` | string | Event type code. Example: `"assignment_created"`. |
|
|
1082
1065
|
| `message` | string | Example: `"Assignment created by John Smith."`. |
|
|
1083
|
-
| `payload` | object or
|
|
1084
|
-
| `origin` | object { `ip`: string or null; `user-agent`: string } | Request origin when available. |
|
|
1066
|
+
| `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. |
|
|
1067
|
+
| `origin` | object { `ip`: string or null; `user-agent`: string } or null | Request origin when available. |
|
|
1085
1068
|
| `origin.ip` | string or null | `null` when the request carried no client address. Example: `"172.19.0.1"`. |
|
|
1086
1069
|
| `origin.user-agent` | string | |
|
|
1087
1070
|
| `created_at` | string (format: date-time) | Example: `"2022-07-19T19:28:13Z"`. |
|
|
@@ -1112,9 +1095,9 @@ A document of an envelope, as sent on creation (`documents[]`) and when added.
|
|
|
1112
1095
|
| --- | --- | --- |
|
|
1113
1096
|
| `id` * | string (min length: 1) | A `metadata_ready` document of the workspace with no assignment. Example: `"615601fab04c0a3147bb1246"`. |
|
|
1114
1097
|
| `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) }>
|
|
1098
|
+
| `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
1099
|
| `entries[].page_id` * | string | A page of the document. |
|
|
1117
|
-
| `entries[].fields` * | Array<object { `signer_id*`: string; `field_id*`: string; `display_settings*`: [`DisplaySettings`](#displaysettings) }>
|
|
1100
|
+
| `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
1101
|
| `entries[].fields[].signer_id` * | string | A signer of the document. |
|
|
1119
1102
|
| `entries[].fields[].field_id` * | string | A field definition of the workspace. |
|
|
1120
1103
|
| `entries[].fields[].display_settings` * | [`DisplaySettings`](#displaysettings) | |
|
|
@@ -1149,7 +1132,7 @@ A reusable field definition.
|
|
|
1149
1132
|
| `type` | string | Example: `"signature"`. |
|
|
1150
1133
|
| `regex` | string or null | |
|
|
1151
1134
|
| `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.
|
|
1135
|
+
| `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
1136
|
| `is_required` | boolean | |
|
|
1154
1137
|
| `is_standard` | boolean | |
|
|
1155
1138
|
| `is_read_only` | boolean | |
|
|
@@ -1309,6 +1292,25 @@ Credits a reminder to one signer will take, and whether the account can pay for
|
|
|
1309
1292
|
| `credit_balance` | number or null | Credits available. `null` when the account's credits are not limited. Example: `10`. |
|
|
1310
1293
|
| `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
1294
|
|
|
1295
|
+
### ScheduledSend
|
|
1296
|
+
|
|
1297
|
+
A **Create assignment** or **Create envelope** request kept until `send_at`, then made as that route makes it, by the member who scheduled it.
|
|
1298
|
+
|
|
1299
|
+
| Property | Type | Description |
|
|
1300
|
+
| --- | --- | --- |
|
|
1301
|
+
| `resource` | string | Example: `"scheduled_send"`. |
|
|
1302
|
+
| `id` * | string | Example: `"64f1a2b3c4d5e6f708192a3b"`. |
|
|
1303
|
+
| `type` * | string (`"assignment"`, `"envelope"`) | What it creates. Example: `"assignment"`. |
|
|
1304
|
+
| `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"]`. |
|
|
1305
|
+
| `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"`. |
|
|
1306
|
+
| `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"`. |
|
|
1307
|
+
| `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`. |
|
|
1308
|
+
| `assignment_id` * | string or null | The assignment it created, once an `assignment` is `sent`. Example: `null`. |
|
|
1309
|
+
| `envelope_id` * | string or null | The envelope it created, once an `envelope` is `sent`; `null` again once the envelope is deleted. Example: `null`. |
|
|
1310
|
+
| `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`. |
|
|
1311
|
+
| `created_at` * | string (format: date-time) | Example: `"2026-11-14T18:00:00Z"`. |
|
|
1312
|
+
| `processed_at` * | string or null (format: date-time) | When it was sent, failed or cancelled. Example: `null`. |
|
|
1313
|
+
|
|
1312
1314
|
### Signer
|
|
1313
1315
|
|
|
1314
1316
|
A signing party belonging to a workspace account.
|
|
@@ -1318,8 +1320,8 @@ A signing party belonging to a workspace account.
|
|
|
1318
1320
|
| `resource` | string | Present in single-resource responses. Example: `"signer"`. |
|
|
1319
1321
|
| `id` | string | Example: `"62d6ee35c7741ca4006b9e11"`. |
|
|
1320
1322
|
| `full_name` | string | Example: `"John Signer"`. |
|
|
1321
|
-
| `email` | string or null (format: email) | Example: `"
|
|
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.
|
|
1323
|
+
| `email` | string or null (format: email) | Example: `"john@example.com"`. |
|
|
1324
|
+
| `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
1325
|
| `government_id` | string or null | Signer's normalized CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Example: `"39053344705"`. |
|
|
1324
1326
|
| `has_accepted_terms` | boolean | Example: `false`. |
|
|
1325
1327
|
|
|
@@ -1337,14 +1339,14 @@ A signing party belonging to a workspace account.
|
|
|
1337
1339
|
| `reason_codes[].code` | string | Example: `"NAME_MISMATCH"`. |
|
|
1338
1340
|
| `reason_codes[].description` | string | Example: `"Nome no documento difere do cadastrado (similaridade 52%)"`. |
|
|
1339
1341
|
| `evidence_available` | boolean | Example: `true`. |
|
|
1340
|
-
| `expected` | object { `name`: string or null; `cpf`: string or null } | What the signer was registered with. |
|
|
1342
|
+
| `expected` | object { `name`: string or null; `cpf`: string or null } or null | What the signer was registered with. |
|
|
1341
1343
|
| `expected.name` | string or null | Example: `"Maria da Silva"`. |
|
|
1342
1344
|
| `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. |
|
|
1345
|
+
| `document` | object { `type`: string or null; `name`: string or null; `cpf`: string or null } or null | What was read from the document. |
|
|
1344
1346
|
| `document.type` | string or null | Example: `"CNH"`. |
|
|
1345
1347
|
| `document.name` | string or null | Example: `"MARIA SILVA"`. |
|
|
1346
1348
|
| `document.cpf` | string or null | Example: `"52998224725"`. |
|
|
1347
|
-
| `matches` | object { `cpf`: boolean or null; `name`: number or null; `birth_date`: boolean or null } | |
|
|
1349
|
+
| `matches` | object { `cpf`: boolean or null; `name`: number or null; `birth_date`: boolean or null } or null | |
|
|
1348
1350
|
| `matches.cpf` | boolean or null | Example: `true`. |
|
|
1349
1351
|
| `matches.name` | number or null | Name similarity, 0-1. Example: `0.5217`. |
|
|
1350
1352
|
| `matches.birth_date` | boolean or null | Example: `null`. |
|
|
@@ -1356,7 +1358,7 @@ A signing party belonging to a workspace account.
|
|
|
1356
1358
|
| `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
1359
|
| `ruleset_version` | string or null | Example: `"2026-10-12.2"`. |
|
|
1358
1360
|
| `evidence_sha256` | string or null | Example: `"9f2c0d6e4b1a8c3f5e7d9b0a2c4e6f8a1b3d5f7091e2c4a6b8d0f2e4a6c8e0b2"`. |
|
|
1359
|
-
| `reviewed_by` | object { `id`: string; `name`: string } | |
|
|
1361
|
+
| `reviewed_by` | object { `id`: string; `name`: string } or null | |
|
|
1360
1362
|
| `reviewed_by.id` | string | Example: `"Kx9pQ2"`. |
|
|
1361
1363
|
| `reviewed_by.name` | string | Example: `"Ana Souza"`. |
|
|
1362
1364
|
| `reviewed_at` | string or null (format: date-time) | Example: `"2026-10-13T21:05:00Z"`. |
|
|
@@ -1372,8 +1374,8 @@ The current signer, as returned by `GET /v1/signers/self`. Extends Signer with t
|
|
|
1372
1374
|
| `resource` | string | Present in single-resource responses. Example: `"signer"`. |
|
|
1373
1375
|
| `id` | string | Example: `"62d6ee35c7741ca4006b9e11"`. |
|
|
1374
1376
|
| `full_name` | string | Example: `"John Signer"`. |
|
|
1375
|
-
| `email` | string or null (format: email) | Example: `"
|
|
1376
|
-
| `whatsapp_phone_number` | string or null | E.164 format; normalized on save. Example: `"+5548999990000"`. |
|
|
1377
|
+
| `email` | string or null (format: email) | Example: `"john@example.com"`. |
|
|
1378
|
+
| `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
1379
|
| `government_id` | string or null | Signer's normalized CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Example: `"39053344705"`. |
|
|
1378
1380
|
| `has_accepted_terms` | boolean | Example: `false`. |
|
|
1379
1381
|
| `has_signature` | boolean | Whether the signer has a saved signature image stored. Example: `true`. |
|
|
@@ -1400,24 +1402,24 @@ The document as its signer reads it with the access code: the document with `cur
|
|
|
1400
1402
|
| `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
1403
|
| `decline_reason` | string or null | Example: `null`. |
|
|
1402
1404
|
| `declined_by` | [`Signer`](#signer) or null | |
|
|
1403
|
-
| `tags` | Array<object { `id`: string; `name`: string; `color`: string or null }> |
|
|
1405
|
+
| `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
1406
|
| `tags[].id` | string | |
|
|
1405
1407
|
| `tags[].name` | string | |
|
|
1406
1408
|
| `tags[].color` | string or null | 6-char hex without leading #. Example: `"ff8800"`. |
|
|
1407
1409
|
| `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
1410
|
| `pages` | Array<[`DocumentPage`](#documentpage)> | The document's pages. Included on the same responses as `assignment`, and also on the upload response. |
|
|
1409
1411
|
| `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. |
|
|
1412
|
+
| `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
1413
|
| `envelope.id` * | string | Example: `"fe1c140cb49b79f940aab95fddd"`. |
|
|
1412
1414
|
| `envelope.name` * | string | Example: `"Contrato de prestação de serviços"`. |
|
|
1413
1415
|
| `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
1416
|
| `created_at` | string (format: date-time) | Example: `"2026-06-03T03:54:16Z"`. |
|
|
1415
1417
|
| `updated_at` | string (format: date-time) | Example: `"2026-06-03T03:54:16Z"`. |
|
|
1416
|
-
| `current_signer` | [`Signer`](#signer) plus object { `verification_method`: string; `notification_methods`:
|
|
1418
|
+
| `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
1419
|
| `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"
|
|
1420
|
+
| `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
1421
|
| `certified_copy.available` * | boolean | Example: `false`. |
|
|
1420
|
-
| `certified_copy.notification_method` * | string or null (`"Email"`, `"Whatsapp"
|
|
1422
|
+
| `certified_copy.notification_method` * | string or null (`"Email"`, `"Whatsapp"`) | The channel it goes on; `null` when there is none. Example: `"Email"`. |
|
|
1421
1423
|
| `certified_copy.resends_left` * | integer or null | WhatsApp re-sends left; `null` for e-mail. Example: `null`. |
|
|
1422
1424
|
|
|
1423
1425
|
### SigningUrl
|
|
@@ -1427,7 +1429,7 @@ One entry per signer whose turn has come. The link depends on how the signer get
|
|
|
1427
1429
|
| Property | Type | Description |
|
|
1428
1430
|
| --- | --- | --- |
|
|
1429
1431
|
| `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=
|
|
1432
|
+
| `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
1433
|
| `embedded` | boolean | Whether the signer was marked `embedded` when the assignment was created. Example: `false`. |
|
|
1432
1434
|
|
|
1433
1435
|
### Tag
|
|
@@ -1540,7 +1542,7 @@ A URL that receives the account's webhook events. Every active endpoint subscrib
|
|
|
1540
1542
|
| `id` | string | Endpoint ID. Example: `"65f1c2a9b3e4d5f60718293a4b5c6d7e"`. |
|
|
1541
1543
|
| `name` | string or null | Label to tell endpoints apart. Example: `"ERP"`. |
|
|
1542
1544
|
| `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: `"
|
|
1545
|
+
| `email` | string (format: email) | Contact email for delivery-failure notices. Example: `"ops@example.com"`. |
|
|
1544
1546
|
| `events` | Array<string> | Event types delivered to this endpoint (see **List webhook event types**). Example: `["document_ready","signer_signed_document"]`. |
|
|
1545
1547
|
| `is_active` | boolean | Whether events are delivered to this endpoint. Example: `true`. |
|
|
1546
1548
|
| `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 +1569,11 @@ Body of every webhook delivery. Timestamps in the body (`created_at`, and the `*
|
|
|
1567
1569
|
| `event` * | string | Event type. See **List webhook event types**; `webhook_test` is sent only by **Send a test delivery**. Example: `"signer_viewed_document"`. |
|
|
1568
1570
|
| `message` | string or null | Reserved; currently always `null`. Example: `null`. |
|
|
1569
1571
|
| `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. |
|
|
1572
|
+
| `origin` | object { `ip`: string; `user-agent`: string } or null | Where the action came from, when it was triggered by a request. |
|
|
1571
1573
|
| `origin.ip` | string | Example: `"203.0.113.7"`. |
|
|
1572
1574
|
| `origin.user-agent` | string | Example: `"Mozilla/5.0"`. |
|
|
1573
1575
|
| `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. |
|
|
1576
|
+
| `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
1577
|
| `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
1578
|
| `account_id` * | string | ID of the account that owns the event. Example: `"65f1c2a9b3e4d5f6"`. |
|
|
1577
1579
|
|
|
@@ -1595,7 +1597,7 @@ An account's webhook subscription configuration.
|
|
|
1595
1597
|
| `is_held` | boolean | Whether deliveries are paused after 10 failures in a row (see **Delivery contract**). Example: `false`. |
|
|
1596
1598
|
| `held_since` | integer or null | When the pause began (Unix timestamp, seconds); `null` while deliveries run. Example: `null`. |
|
|
1597
1599
|
| `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: `"
|
|
1600
|
+
| `email` | string or null | Contact email for delivery notices. Example: `"email@example.com"`. |
|
|
1599
1601
|
| `updated_at` | string or null (format: date-time) | Example: `"2023-05-10T14:58:24Z"`. |
|
|
1600
1602
|
|
|
1601
1603
|
### WhatsappNotification
|
|
@@ -1611,21 +1613,3 @@ A rendered WhatsApp notification sent for an assignment, split into header/body/
|
|
|
1611
1613
|
| `buttons[].text` | string | The button label shown to the signer. Example: `"Abrir documento"`. |
|
|
1612
1614
|
| `phone_number` | string | Recipient phone (E.164). Example: `"+5511999990001"`. |
|
|
1613
1615
|
| `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. |
|