@assinafy/cli 2.8.0 → 2.10.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.
Files changed (40) hide show
  1. package/README.en.md +70 -67
  2. package/README.md +28 -24
  3. package/THIRD_PARTY_NOTICES.md +9 -9
  4. package/dist/api.cjs +204 -55
  5. package/dist/api.cjs.map +1 -1
  6. package/dist/api.js +202 -55
  7. package/dist/api.js.map +1 -1
  8. package/dist/cli.cjs +1413 -559
  9. package/dist/types/api/client.d.ts +2 -0
  10. package/dist/types/api/client.d.ts.map +1 -1
  11. package/dist/types/api/index.d.ts +1 -0
  12. package/dist/types/api/index.d.ts.map +1 -1
  13. package/dist/types/api/resources/assignments.d.ts +7 -1
  14. package/dist/types/api/resources/assignments.d.ts.map +1 -1
  15. package/dist/types/api/resources/authentication.d.ts +1 -3
  16. package/dist/types/api/resources/authentication.d.ts.map +1 -1
  17. package/dist/types/api/resources/documents.d.ts +7 -1
  18. package/dist/types/api/resources/documents.d.ts.map +1 -1
  19. package/dist/types/api/resources/envelopes.d.ts +7 -1
  20. package/dist/types/api/resources/envelopes.d.ts.map +1 -1
  21. package/dist/types/api/resources/scheduled-sends.d.ts +11 -0
  22. package/dist/types/api/resources/scheduled-sends.d.ts.map +1 -0
  23. package/dist/types/api/types.d.ts +36 -2
  24. package/dist/types/api/types.d.ts.map +1 -1
  25. package/dist/types/api/utils.d.ts +3 -0
  26. package/dist/types/api/utils.d.ts.map +1 -1
  27. package/docs/README.md +3 -1
  28. package/docs/api-operations-staging.json +1262 -0
  29. package/docs/api-operations.json +89 -1
  30. package/docs/api-reference-staging.md +18466 -0
  31. package/docs/api-reference.md +1830 -323
  32. package/docs/assignments.md +46 -0
  33. package/docs/auth.md +3 -16
  34. package/docs/documents.md +47 -0
  35. package/docs/envelopes.md +29 -0
  36. package/docs/scheduled-sends.md +63 -0
  37. package/docs/sdk-reference.md +66 -4
  38. package/install.ps1 +1 -1
  39. package/install.sh +1 -1
  40. package/package.json +4 -4
@@ -6,8 +6,8 @@ The renderer reuses a generic 400 envelope for several non-400 errors; top-level
6
6
 
7
7
  - OpenAPI: 3.1.0
8
8
  - API document version: 1.0.0
9
- - Operations: 147
10
- - Contract SHA-256: `511261bfe294776d09e879a9e0cf4cd586542653d87d78fe3e32e125037edaac`
9
+ - Operations: 158
10
+ - Contract SHA-256: `8300f6ac4d3b348777a60729fb5778d68c3eae260e8454bd7a2f842d322d8f66`
11
11
 
12
12
  ## Accounts
13
13
 
@@ -865,7 +865,7 @@ Called with an OAuth application token, this returns exactly one workspace: the
865
865
 
866
866
  `POST /v1/accounts`
867
867
 
868
- Create a new workspace account owned by the authenticated user.
868
+ Create a workspace owned by the authenticated user. Additional workspaces require ownership of a workspace with an active paid subscription or an active user contract.
869
869
 
870
870
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
871
871
 
@@ -937,6 +937,24 @@ Example:
937
937
  }
938
938
  ```
939
939
 
940
+ ##### 403 — Authenticated but not allowed to perform this action.
941
+
942
+ ```json
943
+ {
944
+ "status": 403,
945
+ "message": "Bad request.",
946
+ "data": null,
947
+ "code": "PlanRestricted",
948
+ "errors": [
949
+ {
950
+ "field": "full_name",
951
+ "code": "Required",
952
+ "message": "Full Name cannot be blank."
953
+ }
954
+ ]
955
+ }
956
+ ```
957
+
940
958
  ##### 401 — Missing or invalid credentials.
941
959
 
942
960
  ```json
@@ -1567,7 +1585,7 @@ List documents of the workspace, most recently updated first. Every row includes
1567
1585
 
1568
1586
  `POST /v1/accounts/{accountId}/documents`
1569
1587
 
1570
- Create a document from an uploaded file. Maximum file size 25MB; maximum 2000 pages.
1588
+ Create a document from an uploaded file: PDF, or a Word or OpenDocument text file (`.doc`, `.docx`, `.odt`), which is converted to PDF. Maximum file size 25MB; maximum 2000 pages.
1571
1589
 
1572
1590
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
1573
1591
 
@@ -1581,7 +1599,7 @@ Create a document from an uploaded file. Maximum file size 25MB; maximum 2000 pa
1581
1599
 
1582
1600
  Fields (`multipart/form-data`):
1583
1601
 
1584
- - `file` (string, required) — The PDF file to upload.
1602
+ - `file` (string, required) — The file to upload: PDF, DOC, DOCX or ODT.
1585
1603
 
1586
1604
  Example:
1587
1605
 
@@ -2108,7 +2126,7 @@ Get a document by its ID. `decline_reason` is only present when the access token
2108
2126
 
2109
2127
  `DELETE /v1/documents/{documentId}`
2110
2128
 
2111
- Delete a document by its ID. Only documents in a deletable status can be removed (see GET /v1/documents/statuses). A document of an envelope, or one taken out of it, can't be deleted while any of the envelope's documents is open: cancel the envelope (`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/cancel`) first.
2129
+ Delete a document by its ID. Only documents in a deletable status can be removed (see GET /v1/documents/statuses). A document out for signature (`pending_signature`) or held for an identity review (`pending_identity_review`) is cancelled first, as `PUT /v1/documents/{documentId}/cancel` cancels it: its signers and owner are told, and the cancellation is recorded. To cancel it and keep it, use that route instead. A document of an envelope, or one taken out of it, can't be deleted while any of the envelope's documents is open: cancel the envelope (`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/cancel`) first.
2112
2130
 
2113
2131
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
2114
2132
 
@@ -2388,6 +2406,178 @@ Example:
2388
2406
  }
2389
2407
  ```
2390
2408
 
2409
+ ### Cancel document
2410
+
2411
+ `PUT /v1/documents/{documentId}/cancel`
2412
+
2413
+ Cancel a document out for signature (`pending_signature`) or held for an identity review (`pending_identity_review`), and keep it: it moves to `rejected_by_user`, its signers and owner are told, the cancellation is recorded, and the document, its files and its history stay. `DELETE /v1/documents/{documentId}` runs this same cancel before it deletes. A document every signer has already signed can't be cancelled by this route: its certification is underway, or it already closed. A document of an envelope can't be cancelled on its own while any of the envelope's documents is open: cancel the envelope (`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/cancel`), or take the document out of it (`DELETE /v1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}`), which cancels it and keeps it.
2414
+
2415
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
2416
+
2417
+ #### Parameters
2418
+
2419
+ | Name | In | Type | Required | Description |
2420
+ |---|---|---|---|---|
2421
+ | `documentId` | path | string | yes | Document ID. |
2422
+
2423
+ #### Responses
2424
+
2425
+ ##### 200 — The cancelled document
2426
+
2427
+ ```json
2428
+ {
2429
+ "data": {
2430
+ "resource": "document",
2431
+ "id": "example_id_3",
2432
+ "account_id": "example_id_4",
2433
+ "template_id": null,
2434
+ "name": "document.pdf",
2435
+ "status": "metadata_ready",
2436
+ "artifacts": {
2437
+ "original": "https://example.com/example-url-2"
2438
+ },
2439
+ "is_closed": false,
2440
+ "signing_url": "https://example.com/example-url-3",
2441
+ "verification_code": "example_secret",
2442
+ "verification_url": "https://example.com/example-url-4",
2443
+ "decline_reason": null,
2444
+ "declined_by": null,
2445
+ "tags": [
2446
+ {
2447
+ "id": "example_id_5",
2448
+ "name": "string",
2449
+ "color": "ff8800"
2450
+ }
2451
+ ],
2452
+ "assignment": null,
2453
+ "pages": [
2454
+ {
2455
+ "id": "example_id_6",
2456
+ "number": 1,
2457
+ "height": 2100,
2458
+ "width": 1275,
2459
+ "download_url": "https://example.com/example-url-5"
2460
+ }
2461
+ ],
2462
+ "envelope_id": null,
2463
+ "envelope": null,
2464
+ "has_contract": true,
2465
+ "created_at": "2026-06-03T03:54:16Z",
2466
+ "updated_at": "2026-06-03T03:54:16Z"
2467
+ },
2468
+ "status": 200,
2469
+ "message": ""
2470
+ }
2471
+ ```
2472
+
2473
+ ##### 400 — The document is not out for signature or held for an identity review.
2474
+
2475
+ ```json
2476
+ {
2477
+ "status": 400,
2478
+ "message": "Bad request.",
2479
+ "data": null,
2480
+ "code": "PlanRestricted",
2481
+ "errors": [
2482
+ {
2483
+ "field": "full_name",
2484
+ "code": "Required",
2485
+ "message": "Full Name cannot be blank."
2486
+ }
2487
+ ]
2488
+ }
2489
+ ```
2490
+
2491
+ ##### 403 — Authenticated but not allowed to perform this action.
2492
+
2493
+ ```json
2494
+ {
2495
+ "status": 403,
2496
+ "message": "Bad request.",
2497
+ "data": null,
2498
+ "code": "PlanRestricted",
2499
+ "errors": [
2500
+ {
2501
+ "field": "full_name",
2502
+ "code": "Required",
2503
+ "message": "Full Name cannot be blank."
2504
+ }
2505
+ ]
2506
+ }
2507
+ ```
2508
+
2509
+ ##### 404 — The requested resource does not exist.
2510
+
2511
+ ```json
2512
+ {
2513
+ "status": 404,
2514
+ "message": "Bad request.",
2515
+ "data": null,
2516
+ "code": "PlanRestricted",
2517
+ "errors": [
2518
+ {
2519
+ "field": "full_name",
2520
+ "code": "Required",
2521
+ "message": "Full Name cannot be blank."
2522
+ }
2523
+ ]
2524
+ }
2525
+ ```
2526
+
2527
+ ##### 409 — The document belongs to an envelope that is still open (`EnvelopeOpen`), or every signer has signed it: it is being certificated or already is (`DocumentClosed`).
2528
+
2529
+ ```json
2530
+ {
2531
+ "status": 409,
2532
+ "code": "PlanRestricted",
2533
+ "message": "Bad request.",
2534
+ "data": null,
2535
+ "errors": [
2536
+ {
2537
+ "field": "full_name",
2538
+ "code": "Required",
2539
+ "message": "Full Name cannot be blank."
2540
+ }
2541
+ ]
2542
+ }
2543
+ ```
2544
+
2545
+ ##### 401 — Missing or invalid credentials.
2546
+
2547
+ ```json
2548
+ {
2549
+ "status": 401,
2550
+ "message": "Bad request.",
2551
+ "data": null,
2552
+ "code": "PlanRestricted",
2553
+ "errors": [
2554
+ {
2555
+ "field": "full_name",
2556
+ "code": "Required",
2557
+ "message": "Full Name cannot be blank."
2558
+ }
2559
+ ]
2560
+ }
2561
+ ```
2562
+
2563
+ ##### 500 — Unexpected server error.
2564
+
2565
+ ```json
2566
+ {
2567
+ "status": 500,
2568
+ "message": "Bad request.",
2569
+ "data": null,
2570
+ "code": "PlanRestricted",
2571
+ "errors": [
2572
+ {
2573
+ "field": "full_name",
2574
+ "code": "Required",
2575
+ "message": "Full Name cannot be blank."
2576
+ }
2577
+ ]
2578
+ }
2579
+ ```
2580
+
2391
2581
  ### Download document artifact
2392
2582
 
2393
2583
  `GET /v1/documents/{documentId}/download/{artifactName}`
@@ -2886,63 +3076,42 @@ Detach a single tag from a document.
2886
3076
  }
2887
3077
  ```
2888
3078
 
2889
- ### Download document thumbnail
3079
+ ### List a document's watchers
2890
3080
 
2891
- `GET /v1/documents/{documentId}/thumbnail`
3081
+ `GET /v1/documents/{documentId}/watchers`
2892
3082
 
2893
- Download the thumbnail image of a document's first page.
3083
+ The contacts set with **Set a document's watchers**, in the order they were set. A deleted contact is left out.
2894
3084
 
2895
- **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header) or signer access code (`signer-access-code` query or body parameter).
3085
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
2896
3086
 
2897
3087
  #### Parameters
2898
3088
 
2899
3089
  | Name | In | Type | Required | Description |
2900
3090
  |---|---|---|---|---|
2901
3091
  | `documentId` | path | string | yes | Document ID. |
2902
- | `artifact` | query | string | no | `certificated`: the page, or the thumbnail, as it is in the signed document, with its signatures and stamps. Only for a certificated document, and only for the workspace's members and apps: `404` when the document isn't certificated or the caller uses a signer's access code. The first request for a page renders it with the pages around it, ten at a time, so it takes longer than the next ones; a request that finds the document's pages being rendered waits up to 30 seconds, then answers `503` with `Retry-After` if they still aren't ready; it answers `503` at once when the API is already rendering as many pages as it allows. Sent with `Cache-Control: no-store`. The certificate pages at the end of the signed file have no page ID and no render, and the visible seal of a document signed with a digital certificate is only in its `pades` file. Any other value is ignored. |
2903
3092
 
2904
3093
  #### Responses
2905
3094
 
2906
- ##### 200 — The thumbnail image
2907
-
2908
- ##### 404 — The requested resource does not exist.
2909
-
2910
- ```json
2911
- {
2912
- "status": 404,
2913
- "message": "Bad request.",
2914
- "data": null,
2915
- "code": "PlanRestricted",
2916
- "errors": [
2917
- {
2918
- "field": "full_name",
2919
- "code": "Required",
2920
- "message": "Full Name cannot be blank."
2921
- }
2922
- ]
2923
- }
2924
- ```
2925
-
2926
- ##### 503 — With `artifact=certificated`: another request was still rendering the page after 30 seconds, or the API was already rendering as many pages as it allows at once. Try again after the `Retry-After` seconds.
3095
+ ##### 200 — The document's watchers
2927
3096
 
2928
3097
  ```json
2929
3098
  {
2930
- "status": 503,
2931
- "message": "Bad request.",
2932
- "data": null,
2933
- "code": "PlanRestricted",
2934
- "errors": [
3099
+ "data": [
2935
3100
  {
2936
- "field": "full_name",
2937
- "code": "Required",
2938
- "message": "Full Name cannot be blank."
3101
+ "resource": "signer",
3102
+ "id": "example_id_10",
3103
+ "full_name": "Example User",
3104
+ "email": "user1@example.com",
3105
+ "whatsapp_phone_number": "+5500000000000",
3106
+ "government_id": "00000000000",
3107
+ "has_accepted_terms": false
2939
3108
  }
2940
- ]
3109
+ ],
3110
+ "status": 200,
3111
+ "message": ""
2941
3112
  }
2942
3113
  ```
2943
3114
 
2944
- ##### 304 — Not modified: the `If-None-Match` or `If-Modified-Since` sent matches the page. No body.
2945
-
2946
3115
  ##### 403 — Authenticated but not allowed to perform this action.
2947
3116
 
2948
3117
  ```json
@@ -2961,29 +3130,20 @@ Download the thumbnail image of a document's first page.
2961
3130
  }
2962
3131
  ```
2963
3132
 
2964
- ##### 400 — With a signer access code: the signer's step has not started yet (sequential signing).
3133
+ ##### 404 — The document is not in the workspace.
2965
3134
 
2966
3135
  ```json
2967
3136
  {
2968
- "status": 400,
2969
- "message": "Bad request.",
2970
- "data": null,
2971
- "code": "PlanRestricted",
2972
- "errors": [
2973
- {
2974
- "field": "full_name",
2975
- "code": "Required",
2976
- "message": "Full Name cannot be blank."
2977
- }
2978
- ]
3137
+ "status": 404,
3138
+ "message": "Document not found."
2979
3139
  }
2980
3140
  ```
2981
3141
 
2982
- ##### 410 — With a signer access code: the code is closed, because its signer finished (for a document of an envelope, every document of it they are on) more than 30 minutes ago. It still shows the signer's status and asks for the certified copy (`GET /v1/sign`).
3142
+ ##### 401 — Missing or invalid credentials.
2983
3143
 
2984
3144
  ```json
2985
3145
  {
2986
- "status": 410,
3146
+ "status": 401,
2987
3147
  "message": "Bad request.",
2988
3148
  "data": null,
2989
3149
  "code": "PlanRestricted",
@@ -2997,11 +3157,11 @@ Download the thumbnail image of a document's first page.
2997
3157
  }
2998
3158
  ```
2999
3159
 
3000
- ##### 401 — Missing or invalid credentials.
3160
+ ##### 500 — Unexpected server error.
3001
3161
 
3002
3162
  ```json
3003
3163
  {
3004
- "status": 401,
3164
+ "status": 500,
3005
3165
  "message": "Bad request.",
3006
3166
  "data": null,
3007
3167
  "code": "PlanRestricted",
@@ -3015,7 +3175,260 @@ Download the thumbnail image of a document's first page.
3015
3175
  }
3016
3176
  ```
3017
3177
 
3018
- ##### 500 — Unexpected server error.
3178
+ ### Set a document's watchers
3179
+
3180
+ `PUT /v1/documents/{documentId}/watchers`
3181
+
3182
+ Replaces the document's watchers: up to 10 contacts of the workspace, each with an e-mail address, who follow the document without signing it. Each is e-mailed once the document ends: declined (naming who declined), expired or signed by all. The e-mail names the document and its sender, and nothing else of it: no link, no file. It is queued, so it goes out shortly after. Naming a contact here is what lets them receive it; the workspace's notification settings don't apply to them. A signer named as a watcher gets this e-mail besides their own. They can be set before the document is sent and changed until it ends; an empty list removes them all.
3183
+
3184
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
3185
+
3186
+ #### Parameters
3187
+
3188
+ | Name | In | Type | Required | Description |
3189
+ |---|---|---|---|---|
3190
+ | `documentId` | path | string | yes | Document ID. |
3191
+
3192
+ #### Request Body (required)
3193
+
3194
+ Fields (`application/json`):
3195
+
3196
+ - `watcher_ids` (array, required) — Contact ids, as **Create signer** answers them; one given twice counts once.
3197
+
3198
+ Example:
3199
+
3200
+ ```json
3201
+ {
3202
+ "watcher_ids": [
3203
+ "example_id_10"
3204
+ ]
3205
+ }
3206
+ ```
3207
+
3208
+ #### Responses
3209
+
3210
+ ##### 200 — The document's watchers
3211
+
3212
+ ```json
3213
+ {
3214
+ "data": [
3215
+ {
3216
+ "resource": "signer",
3217
+ "id": "example_id_10",
3218
+ "full_name": "Example User",
3219
+ "email": "user1@example.com",
3220
+ "whatsapp_phone_number": "+5500000000000",
3221
+ "government_id": "00000000000",
3222
+ "has_accepted_terms": false
3223
+ }
3224
+ ],
3225
+ "status": 200,
3226
+ "message": ""
3227
+ }
3228
+ ```
3229
+
3230
+ ##### 400 — `watcher_ids` missing or not a list of ids; more than 10; an id that is not a contact of the workspace or a contact without an e-mail address; or the document has ended (expired, signed by all, declined, cancelled or failed).
3231
+
3232
+ ```json
3233
+ {
3234
+ "status": 400,
3235
+ "message": "A document takes at most 10 watchers."
3236
+ }
3237
+ ```
3238
+
3239
+ ##### 403 — Authenticated but not allowed to perform this action.
3240
+
3241
+ ```json
3242
+ {
3243
+ "status": 403,
3244
+ "message": "Bad request.",
3245
+ "data": null,
3246
+ "code": "PlanRestricted",
3247
+ "errors": [
3248
+ {
3249
+ "field": "full_name",
3250
+ "code": "Required",
3251
+ "message": "Full Name cannot be blank."
3252
+ }
3253
+ ]
3254
+ }
3255
+ ```
3256
+
3257
+ ##### 404 — The document is not in the workspace.
3258
+
3259
+ ```json
3260
+ {
3261
+ "status": 404,
3262
+ "message": "Document not found."
3263
+ }
3264
+ ```
3265
+
3266
+ ##### 401 — Missing or invalid credentials.
3267
+
3268
+ ```json
3269
+ {
3270
+ "status": 401,
3271
+ "message": "Bad request.",
3272
+ "data": null,
3273
+ "code": "PlanRestricted",
3274
+ "errors": [
3275
+ {
3276
+ "field": "full_name",
3277
+ "code": "Required",
3278
+ "message": "Full Name cannot be blank."
3279
+ }
3280
+ ]
3281
+ }
3282
+ ```
3283
+
3284
+ ##### 500 — Unexpected server error.
3285
+
3286
+ ```json
3287
+ {
3288
+ "status": 500,
3289
+ "message": "Bad request.",
3290
+ "data": null,
3291
+ "code": "PlanRestricted",
3292
+ "errors": [
3293
+ {
3294
+ "field": "full_name",
3295
+ "code": "Required",
3296
+ "message": "Full Name cannot be blank."
3297
+ }
3298
+ ]
3299
+ }
3300
+ ```
3301
+
3302
+ ### Download document thumbnail
3303
+
3304
+ `GET /v1/documents/{documentId}/thumbnail`
3305
+
3306
+ Download the thumbnail image of a document's first page.
3307
+
3308
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header) or signer access code (`signer-access-code` query or body parameter).
3309
+
3310
+ #### Parameters
3311
+
3312
+ | Name | In | Type | Required | Description |
3313
+ |---|---|---|---|---|
3314
+ | `documentId` | path | string | yes | Document ID. |
3315
+ | `artifact` | query | string | no | `certificated`: the page, or the thumbnail, as it is in the signed document, with its signatures and stamps. Only for a certificated document, and only for the workspace's members and apps: `404` when the document isn't certificated or the caller uses a signer's access code. The first request for a page renders it with the pages around it, ten at a time, so it takes longer than the next ones; a request that finds the document's pages being rendered waits up to 30 seconds, then answers `503` with `Retry-After` if they still aren't ready; it answers `503` at once when the API is already rendering as many pages as it allows. Sent with `Cache-Control: no-store`. The certificate pages at the end of the signed file have no page ID and no render, and the visible seal of a document signed with a digital certificate is only in its `pades` file. Any other value is ignored. |
3316
+
3317
+ #### Responses
3318
+
3319
+ ##### 200 — The thumbnail image
3320
+
3321
+ ##### 404 — The requested resource does not exist.
3322
+
3323
+ ```json
3324
+ {
3325
+ "status": 404,
3326
+ "message": "Bad request.",
3327
+ "data": null,
3328
+ "code": "PlanRestricted",
3329
+ "errors": [
3330
+ {
3331
+ "field": "full_name",
3332
+ "code": "Required",
3333
+ "message": "Full Name cannot be blank."
3334
+ }
3335
+ ]
3336
+ }
3337
+ ```
3338
+
3339
+ ##### 503 — With `artifact=certificated`: another request was still rendering the page after 30 seconds, or the API was already rendering as many pages as it allows at once. Try again after the `Retry-After` seconds.
3340
+
3341
+ ```json
3342
+ {
3343
+ "status": 503,
3344
+ "message": "Bad request.",
3345
+ "data": null,
3346
+ "code": "PlanRestricted",
3347
+ "errors": [
3348
+ {
3349
+ "field": "full_name",
3350
+ "code": "Required",
3351
+ "message": "Full Name cannot be blank."
3352
+ }
3353
+ ]
3354
+ }
3355
+ ```
3356
+
3357
+ ##### 304 — Not modified: the `If-None-Match` or `If-Modified-Since` sent matches the page. No body.
3358
+
3359
+ ##### 403 — Authenticated but not allowed to perform this action.
3360
+
3361
+ ```json
3362
+ {
3363
+ "status": 403,
3364
+ "message": "Bad request.",
3365
+ "data": null,
3366
+ "code": "PlanRestricted",
3367
+ "errors": [
3368
+ {
3369
+ "field": "full_name",
3370
+ "code": "Required",
3371
+ "message": "Full Name cannot be blank."
3372
+ }
3373
+ ]
3374
+ }
3375
+ ```
3376
+
3377
+ ##### 400 — With a signer access code: the signer's step has not started yet (sequential signing).
3378
+
3379
+ ```json
3380
+ {
3381
+ "status": 400,
3382
+ "message": "Bad request.",
3383
+ "data": null,
3384
+ "code": "PlanRestricted",
3385
+ "errors": [
3386
+ {
3387
+ "field": "full_name",
3388
+ "code": "Required",
3389
+ "message": "Full Name cannot be blank."
3390
+ }
3391
+ ]
3392
+ }
3393
+ ```
3394
+
3395
+ ##### 410 — With a signer access code: the code is closed, because its signer finished (for a document of an envelope, every document of it they are on) more than 30 minutes ago. It still shows the signer's status and asks for the certified copy (`GET /v1/sign`).
3396
+
3397
+ ```json
3398
+ {
3399
+ "status": 410,
3400
+ "message": "Bad request.",
3401
+ "data": null,
3402
+ "code": "PlanRestricted",
3403
+ "errors": [
3404
+ {
3405
+ "field": "full_name",
3406
+ "code": "Required",
3407
+ "message": "Full Name cannot be blank."
3408
+ }
3409
+ ]
3410
+ }
3411
+ ```
3412
+
3413
+ ##### 401 — Missing or invalid credentials.
3414
+
3415
+ ```json
3416
+ {
3417
+ "status": 401,
3418
+ "message": "Bad request.",
3419
+ "data": null,
3420
+ "code": "PlanRestricted",
3421
+ "errors": [
3422
+ {
3423
+ "field": "full_name",
3424
+ "code": "Required",
3425
+ "message": "Full Name cannot be blank."
3426
+ }
3427
+ ]
3428
+ }
3429
+ ```
3430
+
3431
+ ##### 500 — Unexpected server error.
3019
3432
 
3020
3433
  ```json
3021
3434
  {
@@ -3202,7 +3615,7 @@ Generate a new document from a template. The request is checked (roles, fields,
3202
3615
  Fields (`application/json`):
3203
3616
 
3204
3617
  - `signers` (array, required) — One entry per template role.
3205
- - `editor_fields` (array) — Values for the fields placed on the template's `Editor` role, baked into the generated document. The `Editor` role takes no `signers` entry: it is filled only through this list. Every field placed on it needs an entry with a non-empty `value` (`400` otherwise); when it has no fields, send nothing. In `signers`, every `Signer` role needs an entry (`400` otherwise), and a `CopyReceiver` role takes an entry only for someone who should receive the certified document; a copy receiver's `verification_method`, `notification_methods` and `step` are ignored.
3618
+ - `editor_fields` (array) — Values for the fields placed on the template's `Editor` role, baked into the generated document. The `Editor` role takes no `signers` entry: it is filled only through this list. Every field placed on it needs an entry with a non-empty `value` (`400` otherwise); when it has no fields, send nothing. A CPF field's value written in digits must be a valid CPF (`400` naming the field); other text is stamped as given. In `signers`, every `Signer` role needs an entry (`400` otherwise), and a `CopyReceiver` role takes an entry only for someone who should receive the certified document; a copy receiver's `verification_method`, `notification_methods` and `step` are ignored.
3206
3619
  - `name` (string) — Title for the document. Defaults to the template name.
3207
3620
  - `message` (string) — Optional message sent to signers.
3208
3621
  - `expires_at` (string) — Assignment expiration date (ISO 8601). No expiration by default. Must be at least one hour in the future. A UTC offset in the value is honored (`2026-12-31T23:59:59-03:00` is `2027-01-01T02:59:59Z`); a value without one is read as UTC, and a date alone (`2026-12-31`) means 23:59 UTC that day.
@@ -3215,9 +3628,9 @@ Example:
3215
3628
  {
3216
3629
  "signers": [
3217
3630
  {
3218
- "role_id": "example_id_10",
3219
- "id": "example_id_11",
3220
- "email": "user1@example.com",
3631
+ "role_id": "example_id_11",
3632
+ "id": "example_id_12",
3633
+ "email": "user2@example.com",
3221
3634
  "name": "Maria Silva",
3222
3635
  "whatsapp_phone_number": "+5500000000000",
3223
3636
  "verification_method": "Email",
@@ -3230,7 +3643,7 @@ Example:
3230
3643
  ],
3231
3644
  "editor_fields": [
3232
3645
  {
3233
- "field_id": "example_id_12",
3646
+ "field_id": "example_id_13",
3234
3647
  "value": "Field value"
3235
3648
  }
3236
3649
  ],
@@ -3350,7 +3763,7 @@ Example:
3350
3763
  }
3351
3764
  ```
3352
3765
 
3353
- ##### 403 — The workspace's plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
3766
+ ##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
3354
3767
 
3355
3768
  ```json
3356
3769
  {
@@ -3431,7 +3844,7 @@ Example:
3431
3844
  {
3432
3845
  "signers": [
3433
3846
  {
3434
- "role_id": "example_id_10",
3847
+ "role_id": "example_id_11",
3435
3848
  "verification_method": "Whatsapp",
3436
3849
  "notification_methods": [
3437
3850
  "Whatsapp"
@@ -3491,7 +3904,7 @@ Example:
3491
3904
  }
3492
3905
  ```
3493
3906
 
3494
- ##### 403 — The workspace's plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
3907
+ ##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
3495
3908
 
3496
3909
  ```json
3497
3910
  {
@@ -3591,10 +4004,10 @@ List the workspace's assignments, oldest first. With an OAuth token the workspac
3591
4004
  "data": [
3592
4005
  {
3593
4006
  "resource": "assignment",
3594
- "id": "example_id_13",
4007
+ "id": "example_id_14",
3595
4008
  "document_id": "example_id_3",
3596
4009
  "created_at": "2026-06-03T03:54:16Z",
3597
- "sender_email": "user2@example.com",
4010
+ "sender_email": "user3@example.com",
3598
4011
  "method": "virtual",
3599
4012
  "expires_at": null,
3600
4013
  "message": null,
@@ -3610,9 +4023,9 @@ List the workspace's assignments, oldest first. With an OAuth token the workspac
3610
4023
  "completed": null,
3611
4024
  "notification_history": null,
3612
4025
  "resource": "signer",
3613
- "id": "example_id_14",
4026
+ "id": "example_id_10",
3614
4027
  "full_name": "Example User",
3615
- "email": "user3@example.com",
4028
+ "email": "user1@example.com",
3616
4029
  "whatsapp_phone_number": "+5500000000000",
3617
4030
  "government_id": "00000000000",
3618
4031
  "has_accepted_terms": false
@@ -3948,7 +4361,7 @@ Example — Create with input fields (method: collect):
3948
4361
  "data": {
3949
4362
  "resource": "assignment",
3950
4363
  "id": "example_id_21",
3951
- "sender_email": "user2@example.com",
4364
+ "sender_email": "user3@example.com",
3952
4365
  "method": "virtual",
3953
4366
  "expires_at": "2021-09-30T21:00:00Z",
3954
4367
  "message": null,
@@ -4038,8 +4451,8 @@ Example — Create with input fields (method: collect):
4038
4451
  "message": "",
4039
4452
  "data": {
4040
4453
  "resource": "assignment",
4041
- "id": "example_id_13",
4042
- "sender_email": "user2@example.com",
4454
+ "id": "example_id_14",
4455
+ "sender_email": "user3@example.com",
4043
4456
  "method": "collect",
4044
4457
  "expires_at": "2021-09-30T21:00:00Z",
4045
4458
  "message": null,
@@ -4192,7 +4605,7 @@ Example — Create with input fields (method: collect):
4192
4605
  }
4193
4606
  ```
4194
4607
 
4195
- ##### 403 — The workspace's plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
4608
+ ##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
4196
4609
 
4197
4610
  ```json
4198
4611
  {
@@ -4278,10 +4691,19 @@ Per-unit costs (in credits) used to build the estimate:
4278
4691
  |------|------|
4279
4692
  | Extra document | 1 credit |
4280
4693
  | Email notification | 0 credits |
4281
- | WhatsApp notification | 0.45 credits |
4282
- | Digital certificate signature (per signer) | 0.5 credits |
4694
+ | WhatsApp notification | depends on the plan, see the table below |
4695
+ | Digital certificate signature (per signer) | 0.45 credits |
4283
4696
  | Identity document verification (per signer) | depends on the plan, see the table below |
4284
4697
 
4698
+ WhatsApp notification, per plan:
4699
+
4700
+ | Plan | Price per signer |
4701
+ |------|------------------|
4702
+ | Pro | 0.4 credits |
4703
+ | Other plans and enterprise contracts | 0.45 credits |
4704
+
4705
+ Identity document verification, per plan:
4706
+
4285
4707
  | Plan | Price per signer |
4286
4708
  |------|------------------|
4287
4709
  | Free | 1.5 credits |
@@ -4315,6 +4737,7 @@ Example:
4315
4737
  "signers": [
4316
4738
  {
4317
4739
  "verification_method": "Whatsapp",
4740
+ "sign_as": "Sign",
4318
4741
  "notification_methods": [
4319
4742
  "Email"
4320
4743
  ]
@@ -4376,7 +4799,7 @@ Example:
4376
4799
  }
4377
4800
  ```
4378
4801
 
4379
- ##### 403 — The workspace's plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
4802
+ ##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
4380
4803
 
4381
4804
  ```json
4382
4805
  {
@@ -4480,7 +4903,7 @@ Resend the signature-request notification to a signer of the assignment who has
4480
4903
  }
4481
4904
  ```
4482
4905
 
4483
- ##### 400 — The document is not pending signature, the signer is not part of the assignment, has already signed, or waits for an earlier signing step; or the account lacks credits for the reminder.
4906
+ ##### 400 — The document is not pending signature or its deadline (`expires_at`) has passed, the signer is not part of the assignment, has already signed, or waits for an earlier signing step; the signer was reminded less than 2 minutes ago, or is being reminded now, or the workspace already reminded them 10 times in the 24 hours since the first of those reminders (one that may have gone out counts; the signer asking for their link again doesn't; for a document of an envelope, a reminder through the envelope or any of its documents counts); or the account lacks credits for the reminder.
4484
4907
 
4485
4908
  ```json
4486
4909
  {
@@ -4574,7 +4997,7 @@ Resend the signature-request notification to a signer of the assignment who has
4574
4997
 
4575
4998
  `POST /v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/estimate-resend-cost`
4576
4999
 
4577
- Estimate the cost of resending the signature request to a signer. The response has its own shape (`total`, not `total_credits`), because a reminder uses no document.
5000
+ Estimate the cost of resending the signature request to a signer. The response has its own shape (`total`, not `total_credits`), because a reminder uses no document. It does not check whether the reminder would be accepted now: the reminder itself refuses a document past its deadline, or a signer reminded too recently or too often (`400`).
4578
5001
 
4579
5002
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
4580
5003
 
@@ -4682,10 +5105,10 @@ Example:
4682
5105
  {
4683
5106
  "data": {
4684
5107
  "resource": "assignment",
4685
- "id": "example_id_13",
5108
+ "id": "example_id_14",
4686
5109
  "document_id": "example_id_3",
4687
5110
  "created_at": "2026-06-03T03:54:16Z",
4688
- "sender_email": "user2@example.com",
5111
+ "sender_email": "user3@example.com",
4689
5112
  "method": "virtual",
4690
5113
  "expires_at": null,
4691
5114
  "message": null,
@@ -4701,9 +5124,9 @@ Example:
4701
5124
  "completed": null,
4702
5125
  "notification_history": null,
4703
5126
  "resource": "signer",
4704
- "id": "example_id_14",
5127
+ "id": "example_id_10",
4705
5128
  "full_name": "Example User",
4706
- "email": "user3@example.com",
5129
+ "email": "user1@example.com",
4707
5130
  "whatsapp_phone_number": "+5500000000000",
4708
5131
  "government_id": "00000000000",
4709
5132
  "has_accepted_terms": false
@@ -5047,78 +5470,783 @@ Example:
5047
5470
 
5048
5471
  #### Responses
5049
5472
 
5050
- ##### 200 — Decided
5473
+ ##### 200 — Decided
5474
+
5475
+ ```json
5476
+ {
5477
+ "data": {
5478
+ "id": "example_id_26",
5479
+ "status": "InReview",
5480
+ "provider": "AssinafyVerify",
5481
+ "verification_method": "IdDocumentFaceMatchBasic",
5482
+ "reason_codes": [
5483
+ {
5484
+ "code": "NAME_MISMATCH",
5485
+ "description": "Nome no documento difere do cadastrado (similaridade 52%)"
5486
+ }
5487
+ ],
5488
+ "evidence_available": true,
5489
+ "expected": null,
5490
+ "document": null,
5491
+ "matches": null,
5492
+ "checks": [
5493
+ {
5494
+ "name": "name",
5495
+ "result": "review",
5496
+ "score": 0.5217,
5497
+ "reasons": [
5498
+ "NAME_MISMATCH"
5499
+ ]
5500
+ }
5501
+ ],
5502
+ "images": [
5503
+ "document_front",
5504
+ "document_back",
5505
+ "face"
5506
+ ],
5507
+ "ruleset_version": "2026-10-12.2",
5508
+ "evidence_sha256": "9f2c0d6e4b1a8c3f5e7d9b0a2c4e6f8a1b3d5f7091e2c4a6b8d0f2e4a6c8e0b2",
5509
+ "reviewed_by": null,
5510
+ "reviewed_at": "2026-10-13T21:05:00Z",
5511
+ "review_note": "Conferido por videochamada.",
5512
+ "completed_at": "2026-10-13T21:05:00Z"
5513
+ },
5514
+ "status": 200,
5515
+ "message": ""
5516
+ }
5517
+ ```
5518
+
5519
+ ##### 400 — Invalid decision, the verification is not `InReview`, or the document is no longer awaiting signatures (for a document of an envelope, none of the signer's documents of it is).
5520
+
5521
+ ```json
5522
+ {
5523
+ "status": 400,
5524
+ "message": "Bad request.",
5525
+ "data": null,
5526
+ "code": "PlanRestricted",
5527
+ "errors": [
5528
+ {
5529
+ "field": "full_name",
5530
+ "code": "Required",
5531
+ "message": "Full Name cannot be blank."
5532
+ }
5533
+ ]
5534
+ }
5535
+ ```
5536
+
5537
+ ##### 403 — Authenticated but not allowed to perform this action.
5538
+
5539
+ ```json
5540
+ {
5541
+ "status": 403,
5542
+ "message": "Bad request.",
5543
+ "data": null,
5544
+ "code": "PlanRestricted",
5545
+ "errors": [
5546
+ {
5547
+ "field": "full_name",
5548
+ "code": "Required",
5549
+ "message": "Full Name cannot be blank."
5550
+ }
5551
+ ]
5552
+ }
5553
+ ```
5554
+
5555
+ ##### 404 — Assignment, signer or verification not found.
5556
+
5557
+ ```json
5558
+ {
5559
+ "status": 404,
5560
+ "message": "Bad request.",
5561
+ "data": null,
5562
+ "code": "PlanRestricted",
5563
+ "errors": [
5564
+ {
5565
+ "field": "full_name",
5566
+ "code": "Required",
5567
+ "message": "Full Name cannot be blank."
5568
+ }
5569
+ ]
5570
+ }
5571
+ ```
5572
+
5573
+ ##### 401 — Missing or invalid credentials.
5574
+
5575
+ ```json
5576
+ {
5577
+ "status": 401,
5578
+ "message": "Bad request.",
5579
+ "data": null,
5580
+ "code": "PlanRestricted",
5581
+ "errors": [
5582
+ {
5583
+ "field": "full_name",
5584
+ "code": "Required",
5585
+ "message": "Full Name cannot be blank."
5586
+ }
5587
+ ]
5588
+ }
5589
+ ```
5590
+
5591
+ ##### 500 — Unexpected server error.
5592
+
5593
+ ```json
5594
+ {
5595
+ "status": 500,
5596
+ "message": "Bad request.",
5597
+ "data": null,
5598
+ "code": "PlanRestricted",
5599
+ "errors": [
5600
+ {
5601
+ "field": "full_name",
5602
+ "code": "Required",
5603
+ "message": "Full Name cannot be blank."
5604
+ }
5605
+ ]
5606
+ }
5607
+ ```
5608
+
5609
+ ### Get signer capacities
5610
+
5611
+ `GET /v1/documents/{documentId}/signer-capacities`
5612
+
5613
+ The capacity each signer of the document's assignment signs in, as the sender gave it with `sign_as` on **Create assignment**: `Sign` for a signer given none. In the order **Get document** lists the assignment's signers; an empty list for a document not sent yet. Reachable with the `documents:read` OAuth scope.
5614
+
5615
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5616
+
5617
+ #### Parameters
5618
+
5619
+ | Name | In | Type | Required | Description |
5620
+ |---|---|---|---|---|
5621
+ | `documentId` | path | string | yes | Document ID. |
5622
+
5623
+ #### Responses
5624
+
5625
+ ##### 200 — The signers' capacities
5626
+
5627
+ ```json
5628
+ {
5629
+ "data": [
5630
+ {
5631
+ "signer_id": "example_id_15",
5632
+ "sign_as": "Witness"
5633
+ }
5634
+ ],
5635
+ "status": 200,
5636
+ "message": ""
5637
+ }
5638
+ ```
5639
+
5640
+ ##### 403 — Authenticated but not allowed to perform this action.
5641
+
5642
+ ```json
5643
+ {
5644
+ "status": 403,
5645
+ "message": "Bad request.",
5646
+ "data": null,
5647
+ "code": "PlanRestricted",
5648
+ "errors": [
5649
+ {
5650
+ "field": "full_name",
5651
+ "code": "Required",
5652
+ "message": "Full Name cannot be blank."
5653
+ }
5654
+ ]
5655
+ }
5656
+ ```
5657
+
5658
+ ##### 404 — The document is not in the workspace.
5659
+
5660
+ ```json
5661
+ {
5662
+ "status": 404,
5663
+ "message": "Document not found."
5664
+ }
5665
+ ```
5666
+
5667
+ ##### 401 — Missing or invalid credentials.
5668
+
5669
+ ```json
5670
+ {
5671
+ "status": 401,
5672
+ "message": "Bad request.",
5673
+ "data": null,
5674
+ "code": "PlanRestricted",
5675
+ "errors": [
5676
+ {
5677
+ "field": "full_name",
5678
+ "code": "Required",
5679
+ "message": "Full Name cannot be blank."
5680
+ }
5681
+ ]
5682
+ }
5683
+ ```
5684
+
5685
+ ##### 500 — Unexpected server error.
5686
+
5687
+ ```json
5688
+ {
5689
+ "status": 500,
5690
+ "message": "Bad request.",
5691
+ "data": null,
5692
+ "code": "PlanRestricted",
5693
+ "errors": [
5694
+ {
5695
+ "field": "full_name",
5696
+ "code": "Required",
5697
+ "message": "Full Name cannot be blank."
5698
+ }
5699
+ ]
5700
+ }
5701
+ ```
5702
+
5703
+ ### Get notification history with delivery times
5704
+
5705
+ `GET /v1/documents/{documentId}/notification-history`
5706
+
5707
+ Each signer of the document's assignment, in the order **Get document** lists them, with its `notification_history` as **Get document** gives it, each entry adding `delivered_at` and `opened_at`, `null` until then: an e-mail's first delivery and its first open or click; a WhatsApp message's delivery and read as WhatsApp last reported them. `opened_at` is a hint, not proof: a mail app or a link scanner can open a message before anyone reads it, and blocked images or WhatsApp read receipts turned off hide an open. An empty list for a document not sent yet. Reachable with the `documents:read` OAuth scope.
5708
+
5709
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5710
+
5711
+ #### Parameters
5712
+
5713
+ | Name | In | Type | Required | Description |
5714
+ |---|---|---|---|---|
5715
+ | `documentId` | path | string | yes | Document ID. |
5716
+
5717
+ #### Responses
5718
+
5719
+ ##### 200 — The signers' notification history
5720
+
5721
+ ```json
5722
+ {
5723
+ "data": [
5724
+ {
5725
+ "signer_id": "example_id_15",
5726
+ "notification_history": [
5727
+ {
5728
+ "delivered_at": "2026-07-07T12:00:05Z",
5729
+ "opened_at": "2026-07-07T12:30:00Z",
5730
+ "event": "signature_request",
5731
+ "status": "failed",
5732
+ "error_code": "MailboxFull",
5733
+ "error_message": "A caixa de entrada do destinatário está cheia. Peça ao signatário para liberar espaço ou use outro e-mail.",
5734
+ "sent_at": "2026-07-07T12:00:00Z",
5735
+ "failed_at": "2026-07-07T12:05:00Z"
5736
+ }
5737
+ ]
5738
+ }
5739
+ ],
5740
+ "status": 200,
5741
+ "message": ""
5742
+ }
5743
+ ```
5744
+
5745
+ ##### 403 — Authenticated but not allowed to perform this action.
5746
+
5747
+ ```json
5748
+ {
5749
+ "status": 403,
5750
+ "message": "Bad request.",
5751
+ "data": null,
5752
+ "code": "PlanRestricted",
5753
+ "errors": [
5754
+ {
5755
+ "field": "full_name",
5756
+ "code": "Required",
5757
+ "message": "Full Name cannot be blank."
5758
+ }
5759
+ ]
5760
+ }
5761
+ ```
5762
+
5763
+ ##### 404 — The document is not in the workspace.
5764
+
5765
+ ```json
5766
+ {
5767
+ "status": 404,
5768
+ "message": "Document not found."
5769
+ }
5770
+ ```
5771
+
5772
+ ##### 401 — Missing or invalid credentials.
5773
+
5774
+ ```json
5775
+ {
5776
+ "status": 401,
5777
+ "message": "Bad request.",
5778
+ "data": null,
5779
+ "code": "PlanRestricted",
5780
+ "errors": [
5781
+ {
5782
+ "field": "full_name",
5783
+ "code": "Required",
5784
+ "message": "Full Name cannot be blank."
5785
+ }
5786
+ ]
5787
+ }
5788
+ ```
5789
+
5790
+ ##### 500 — Unexpected server error.
5791
+
5792
+ ```json
5793
+ {
5794
+ "status": 500,
5795
+ "message": "Bad request.",
5796
+ "data": null,
5797
+ "code": "PlanRestricted",
5798
+ "errors": [
5799
+ {
5800
+ "field": "full_name",
5801
+ "code": "Required",
5802
+ "message": "Full Name cannot be blank."
5803
+ }
5804
+ ]
5805
+ }
5806
+ ```
5807
+
5808
+ ### Schedule an assignment
5809
+
5810
+ `POST /v1/documents/{documentId}/scheduled-sends`
5811
+
5812
+ Keeps a **Create assignment** request and makes it at `send_at`, as the member who scheduled it, through the same checks and charges as **Create assignment** then. Nothing is sent or charged now, and nothing changes for the document: it can still be sent at once, and the scheduled send then fails when it goes. A document takes one pending scheduled send at a time, counting one being sent. The request is checked now as **Estimate assignment cost** checks it (the method, each signer's methods, the plan's features), and each signer named must be a contact of the workspace; the balance is checked when it is sent. A job checks every five minutes and makes the sends that are due. On a free plan whose daily signer email limit has no room for its invitations then, it is not failed: it stays `pending` with `next_attempt_at` set to when the room is there, the workspace's other due sends waiting behind it in `send_at` order, for up to 7 days after `send_at`, after which it fails. Any other send that can't be made then becomes `failed` with the reason, nothing is charged, and the member who scheduled it is e-mailed; if that member has left the workspace, it is not made as anyone else: it fails and the workspace's active owners are e-mailed. **List scheduled sends**, **Cancel a scheduled send** and **Send a scheduled send now** follow it. Free workspaces can schedule assignments for up to three signers (`403 FreePlanSignerLimit`).
5813
+
5814
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5815
+
5816
+ #### Parameters
5817
+
5818
+ | Name | In | Type | Required | Description |
5819
+ |---|---|---|---|---|
5820
+ | `documentId` | path | string | yes | Document ID. |
5821
+
5822
+ #### Request Body (required)
5823
+
5824
+ Fields (`application/json`):
5825
+
5826
+ - `send_at` (object, required) — When to send: ISO 8601 with its offset (none means UTC), or a Unix time. From one hour to 90 days ahead.
5827
+ - `method` (string) — As in **Create assignment**; `virtual` when left out.
5828
+ - `signers` (array, required) — As in **Create assignment**; each must be a contact of the workspace.
5829
+ - `expires_at` (object) — As in **Create assignment**, an absolute time (ISO 8601 or a Unix time), or null for none; at least two hours after `send_at`, since the request must still have an hour left when it is made.
5830
+
5831
+ Example:
5832
+
5833
+ ```json
5834
+ {
5835
+ "send_at": "2026-11-20T09:00:00-03:00",
5836
+ "method": "virtual",
5837
+ "signers": [
5838
+ {}
5839
+ ],
5840
+ "expires_at": null
5841
+ }
5842
+ ```
5843
+
5844
+ #### Responses
5845
+
5846
+ ##### 200 — The scheduled send
5847
+
5848
+ ```json
5849
+ {
5850
+ "data": {
5851
+ "resource": "scheduled_send",
5852
+ "id": "example_id_27",
5853
+ "type": "assignment",
5854
+ "document_ids": [
5855
+ "example_id_3"
5856
+ ],
5857
+ "status": "pending",
5858
+ "send_at": "2026-11-20T12:00:00Z",
5859
+ "next_attempt_at": null,
5860
+ "assignment_id": null,
5861
+ "envelope_id": null,
5862
+ "failure_reason": null,
5863
+ "created_at": "2026-11-14T18:00:00Z",
5864
+ "processed_at": null
5865
+ },
5866
+ "status": 200,
5867
+ "message": ""
5868
+ }
5869
+ ```
5870
+
5871
+ ##### 400 — `send_at` missing, unreadable, less than an hour or more than 90 days ahead; an `expires_at` less than two hours after it; the document already has an assignment, or a scheduled send pending or being sent; or the request refused as **Estimate assignment cost** refuses it.
5872
+
5873
+ ```json
5874
+ {
5875
+ "status": 400,
5876
+ "message": "The scheduled send must be at least one hour ahead."
5877
+ }
5878
+ ```
5879
+
5880
+ ##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
5881
+
5882
+ ```json
5883
+ {
5884
+ "status": 403,
5885
+ "message": "Bad request.",
5886
+ "code": "PlanRestricted",
5887
+ "data": null,
5888
+ "errors": [
5889
+ {
5890
+ "field": "full_name",
5891
+ "code": "Required",
5892
+ "message": "Full Name cannot be blank."
5893
+ }
5894
+ ]
5895
+ }
5896
+ ```
5897
+
5898
+ ##### 404 — The document is not in the workspace, or a signer named is not a contact of it.
5899
+
5900
+ ```json
5901
+ {
5902
+ "status": 404,
5903
+ "message": "Document not found."
5904
+ }
5905
+ ```
5906
+
5907
+ ##### 401 — Missing or invalid credentials.
5908
+
5909
+ ```json
5910
+ {
5911
+ "status": 401,
5912
+ "message": "Bad request.",
5913
+ "data": null,
5914
+ "code": "PlanRestricted",
5915
+ "errors": [
5916
+ {
5917
+ "field": "full_name",
5918
+ "code": "Required",
5919
+ "message": "Full Name cannot be blank."
5920
+ }
5921
+ ]
5922
+ }
5923
+ ```
5924
+
5925
+ ##### 500 — Unexpected server error.
5926
+
5927
+ ```json
5928
+ {
5929
+ "status": 500,
5930
+ "message": "Bad request.",
5931
+ "data": null,
5932
+ "code": "PlanRestricted",
5933
+ "errors": [
5934
+ {
5935
+ "field": "full_name",
5936
+ "code": "Required",
5937
+ "message": "Full Name cannot be blank."
5938
+ }
5939
+ ]
5940
+ }
5941
+ ```
5942
+
5943
+ ### List scheduled sends
5944
+
5945
+ `GET /v1/accounts/{accountId}/scheduled-sends`
5946
+
5947
+ The workspace's scheduled sends, assignments and envelopes, newest first, whatever their status. Paged: 20 per page by default; the `X-Pagination-Total-Count`, `X-Pagination-Page-Count`, `X-Pagination-Current-Page` and `X-Pagination-Per-Page` headers describe the full list. An OAuth app needs `documents:write` here, not only `documents:read`: a failed send's `failure_reason` can say the workspace's balance ran out or a member left, which an app learns only from a request it can make.
5948
+
5949
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5950
+
5951
+ #### Parameters
5952
+
5953
+ | Name | In | Type | Required | Description |
5954
+ |---|---|---|---|---|
5955
+ | `accountId` | path | string | yes | Workspace account ID. |
5956
+ | `page` | query | integer | no | Page number. |
5957
+ | `per-page` | query | integer | no | Records per page: 20 by default, at most 50; a larger value answers 50 a page. |
5958
+ | `document_id` | query | string | no | Only the sends of this document. |
5959
+
5960
+ #### Responses
5961
+
5962
+ ##### 200 — The workspace's scheduled sends
5963
+
5964
+ ```json
5965
+ {
5966
+ "data": [
5967
+ {
5968
+ "resource": "scheduled_send",
5969
+ "id": "example_id_27",
5970
+ "type": "assignment",
5971
+ "document_ids": [
5972
+ "example_id_3"
5973
+ ],
5974
+ "status": "pending",
5975
+ "send_at": "2026-11-20T12:00:00Z",
5976
+ "next_attempt_at": null,
5977
+ "assignment_id": null,
5978
+ "envelope_id": null,
5979
+ "failure_reason": null,
5980
+ "created_at": "2026-11-14T18:00:00Z",
5981
+ "processed_at": null
5982
+ }
5983
+ ],
5984
+ "status": 200,
5985
+ "message": ""
5986
+ }
5987
+ ```
5988
+
5989
+ ##### 400 — `document_id` not text.
5990
+
5991
+ ```json
5992
+ {
5993
+ "status": 400,
5994
+ "message": "Give document_id as a document id.",
5995
+ "errors": [
5996
+ {
5997
+ "field": "document_id",
5998
+ "code": "Invalid",
5999
+ "message": "Give document_id as a document id."
6000
+ }
6001
+ ]
6002
+ }
6003
+ ```
6004
+
6005
+ ##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
6006
+
6007
+ ```json
6008
+ {
6009
+ "status": 403,
6010
+ "code": "PlanRestricted",
6011
+ "message": "Bad request.",
6012
+ "data": null,
6013
+ "errors": [
6014
+ {
6015
+ "field": "full_name",
6016
+ "code": "Required",
6017
+ "message": "Full Name cannot be blank."
6018
+ }
6019
+ ]
6020
+ }
6021
+ ```
6022
+
6023
+ ##### 404 — The requested resource does not exist.
6024
+
6025
+ ```json
6026
+ {
6027
+ "status": 404,
6028
+ "message": "Bad request.",
6029
+ "data": null,
6030
+ "code": "PlanRestricted",
6031
+ "errors": [
6032
+ {
6033
+ "field": "full_name",
6034
+ "code": "Required",
6035
+ "message": "Full Name cannot be blank."
6036
+ }
6037
+ ]
6038
+ }
6039
+ ```
6040
+
6041
+ ##### 401 — Missing or invalid credentials.
6042
+
6043
+ ```json
6044
+ {
6045
+ "status": 401,
6046
+ "message": "Bad request.",
6047
+ "data": null,
6048
+ "code": "PlanRestricted",
6049
+ "errors": [
6050
+ {
6051
+ "field": "full_name",
6052
+ "code": "Required",
6053
+ "message": "Full Name cannot be blank."
6054
+ }
6055
+ ]
6056
+ }
6057
+ ```
6058
+
6059
+ ##### 500 — Unexpected server error.
6060
+
6061
+ ```json
6062
+ {
6063
+ "status": 500,
6064
+ "message": "Bad request.",
6065
+ "data": null,
6066
+ "code": "PlanRestricted",
6067
+ "errors": [
6068
+ {
6069
+ "field": "full_name",
6070
+ "code": "Required",
6071
+ "message": "Full Name cannot be blank."
6072
+ }
6073
+ ]
6074
+ }
6075
+ ```
6076
+
6077
+ ### Cancel a scheduled send
6078
+
6079
+ `PUT /v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/cancel`
6080
+
6081
+ Cancels a `pending` scheduled send; nothing is sent or charged. A send already being sent, sent, failed or cancelled answers `409`.
6082
+
6083
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6084
+
6085
+ #### Parameters
6086
+
6087
+ | Name | In | Type | Required | Description |
6088
+ |---|---|---|---|---|
6089
+ | `accountId` | path | string | yes | Workspace account ID. |
6090
+ | `scheduledSendId` | path | string | yes | The scheduled send ID. |
6091
+
6092
+ #### Responses
6093
+
6094
+ ##### 200 — The cancelled scheduled send
6095
+
6096
+ ```json
6097
+ {
6098
+ "data": {
6099
+ "resource": "scheduled_send",
6100
+ "id": "example_id_27",
6101
+ "type": "assignment",
6102
+ "document_ids": [
6103
+ "example_id_3"
6104
+ ],
6105
+ "status": "pending",
6106
+ "send_at": "2026-11-20T12:00:00Z",
6107
+ "next_attempt_at": null,
6108
+ "assignment_id": null,
6109
+ "envelope_id": null,
6110
+ "failure_reason": null,
6111
+ "created_at": "2026-11-14T18:00:00Z",
6112
+ "processed_at": null
6113
+ },
6114
+ "status": 200,
6115
+ "message": ""
6116
+ }
6117
+ ```
6118
+
6119
+ ##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
6120
+
6121
+ ```json
6122
+ {
6123
+ "status": 403,
6124
+ "code": "PlanRestricted",
6125
+ "message": "Bad request.",
6126
+ "data": null,
6127
+ "errors": [
6128
+ {
6129
+ "field": "full_name",
6130
+ "code": "Required",
6131
+ "message": "Full Name cannot be blank."
6132
+ }
6133
+ ]
6134
+ }
6135
+ ```
6136
+
6137
+ ##### 404 — The workspace does not exist, or the scheduled send is not the workspace's.
6138
+
6139
+ ```json
6140
+ {
6141
+ "status": 404,
6142
+ "message": "Scheduled send not found."
6143
+ }
6144
+ ```
6145
+
6146
+ ##### 409 — Only a `pending` scheduled send can be cancelled.
6147
+
6148
+ ```json
6149
+ {
6150
+ "status": 409,
6151
+ "message": "Only a pending scheduled send can be cancelled."
6152
+ }
6153
+ ```
6154
+
6155
+ ##### 401 — Missing or invalid credentials.
6156
+
6157
+ ```json
6158
+ {
6159
+ "status": 401,
6160
+ "message": "Bad request.",
6161
+ "data": null,
6162
+ "code": "PlanRestricted",
6163
+ "errors": [
6164
+ {
6165
+ "field": "full_name",
6166
+ "code": "Required",
6167
+ "message": "Full Name cannot be blank."
6168
+ }
6169
+ ]
6170
+ }
6171
+ ```
6172
+
6173
+ ##### 500 — Unexpected server error.
6174
+
6175
+ ```json
6176
+ {
6177
+ "status": 500,
6178
+ "message": "Bad request.",
6179
+ "data": null,
6180
+ "code": "PlanRestricted",
6181
+ "errors": [
6182
+ {
6183
+ "field": "full_name",
6184
+ "code": "Required",
6185
+ "message": "Full Name cannot be blank."
6186
+ }
6187
+ ]
6188
+ }
6189
+ ```
6190
+
6191
+ ### Send a scheduled send now
6192
+
6193
+ `PUT /v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/send`
6194
+
6195
+ Makes a `pending` scheduled send's request now rather than at `send_at`: as **Create assignment** or **Create envelope** would make it then, as the member who scheduled it, with the same checks and charges. A refusal answers as that route would answer the member who scheduled it: no documents or credits left, a signer removed, the document already sent, the plan without Envelopes, a `max_total_credits` below the cost now (`409` `CreditCeilingExceeded`), the free plan's daily signer email limit with no room now (`429` `FreePlanEmailLimit`, with `Retry-After`), that member gone from the workspace (`400`) or the workspace's deletion pending (`403`); the send then stays `pending`, to go at `send_at` unless cancelled, and no one is e-mailed. A send already being sent, sent, failed or cancelled answers `409`.
6196
+
6197
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6198
+
6199
+ #### Parameters
6200
+
6201
+ | Name | In | Type | Required | Description |
6202
+ |---|---|---|---|---|
6203
+ | `accountId` | path | string | yes | Workspace account ID. |
6204
+ | `scheduledSendId` | path | string | yes | The scheduled send ID. |
6205
+
6206
+ #### Responses
6207
+
6208
+ ##### 200 — The scheduled send, `sent`, with the assignment or envelope it created
5051
6209
 
5052
6210
  ```json
5053
6211
  {
5054
6212
  "data": {
5055
- "id": "example_id_26",
5056
- "status": "InReview",
5057
- "provider": "AssinafyVerify",
5058
- "verification_method": "IdDocumentFaceMatchBasic",
5059
- "reason_codes": [
5060
- {
5061
- "code": "NAME_MISMATCH",
5062
- "description": "Nome no documento difere do cadastrado (similaridade 52%)"
5063
- }
5064
- ],
5065
- "evidence_available": true,
5066
- "expected": null,
5067
- "document": null,
5068
- "matches": null,
5069
- "checks": [
5070
- {
5071
- "name": "name",
5072
- "result": "review",
5073
- "score": 0.5217,
5074
- "reasons": [
5075
- "NAME_MISMATCH"
5076
- ]
5077
- }
5078
- ],
5079
- "images": [
5080
- "document_front",
5081
- "document_back",
5082
- "face"
6213
+ "resource": "scheduled_send",
6214
+ "id": "example_id_27",
6215
+ "type": "assignment",
6216
+ "document_ids": [
6217
+ "example_id_3"
5083
6218
  ],
5084
- "ruleset_version": "2026-10-12.2",
5085
- "evidence_sha256": "9f2c0d6e4b1a8c3f5e7d9b0a2c4e6f8a1b3d5f7091e2c4a6b8d0f2e4a6c8e0b2",
5086
- "reviewed_by": null,
5087
- "reviewed_at": "2026-10-13T21:05:00Z",
5088
- "review_note": "Conferido por videochamada.",
5089
- "completed_at": "2026-10-13T21:05:00Z"
6219
+ "status": "pending",
6220
+ "send_at": "2026-11-20T12:00:00Z",
6221
+ "next_attempt_at": null,
6222
+ "assignment_id": null,
6223
+ "envelope_id": null,
6224
+ "failure_reason": null,
6225
+ "created_at": "2026-11-14T18:00:00Z",
6226
+ "processed_at": null
5090
6227
  },
5091
6228
  "status": 200,
5092
6229
  "message": ""
5093
6230
  }
5094
6231
  ```
5095
6232
 
5096
- ##### 400 — Invalid decision, the verification is not `InReview`, or the document is no longer awaiting signatures (for a document of an envelope, none of the signer's documents of it is).
6233
+ ##### 400 — The request refused as **Create assignment** or **Create envelope** refuses it, or the member who scheduled it has left the workspace. The send stays `pending`.
5097
6234
 
5098
6235
  ```json
5099
6236
  {
5100
6237
  "status": 400,
5101
- "message": "Bad request.",
5102
- "data": null,
5103
- "code": "PlanRestricted",
5104
- "errors": [
5105
- {
5106
- "field": "full_name",
5107
- "code": "Required",
5108
- "message": "Full Name cannot be blank."
5109
- }
5110
- ]
6238
+ "message": "Account does not have enough documents."
5111
6239
  }
5112
6240
  ```
5113
6241
 
5114
- ##### 403 — Authenticated but not allowed to perform this action.
6242
+ ##### 403 — The workspace's plan lacks a feature the request uses (`PlanRestricted`), the free workspace exceeds three signers (`FreePlanSignerLimit`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership, a role, or the workspace's deletion pending. The send stays `pending`.
5115
6243
 
5116
6244
  ```json
5117
6245
  {
5118
6246
  "status": 403,
5119
6247
  "message": "Bad request.",
5120
- "data": null,
5121
6248
  "code": "PlanRestricted",
6249
+ "data": null,
5122
6250
  "errors": [
5123
6251
  {
5124
6252
  "field": "full_name",
@@ -5129,14 +6257,32 @@ Example:
5129
6257
  }
5130
6258
  ```
5131
6259
 
5132
- ##### 404 — Assignment, signer or verification not found.
6260
+ ##### 404 — The workspace does not exist, or the scheduled send is not the workspace's; or the document an assignment sends no longer exists (`Document not found.`), and the send stays `pending`.
5133
6261
 
5134
6262
  ```json
5135
6263
  {
5136
6264
  "status": 404,
6265
+ "message": "Scheduled send not found."
6266
+ }
6267
+ ```
6268
+
6269
+ ##### 409 — Only a `pending` scheduled send can be sent now; or the request's `max_total_credits` is below what it costs now (`CreditCeilingExceeded`, nothing charged), and the send stays `pending`.
6270
+
6271
+ ```json
6272
+ {
6273
+ "status": 409,
6274
+ "message": "Only a pending scheduled send can be sent now."
6275
+ }
6276
+ ```
6277
+
6278
+ ##### 429 — The free plan's daily signer email limit has no room for its invitations now (`FreePlanEmailLimit`); `Retry-After` gives the seconds until it has. Nothing is charged and the send stays `pending`.
6279
+
6280
+ ```json
6281
+ {
6282
+ "status": 429,
5137
6283
  "message": "Bad request.",
5138
- "data": null,
5139
6284
  "code": "PlanRestricted",
6285
+ "data": null,
5140
6286
  "errors": [
5141
6287
  {
5142
6288
  "field": "full_name",
@@ -5215,7 +6361,7 @@ List all WhatsApp notification messages sent for an assignment. The response inc
5215
6361
  }
5216
6362
  ],
5217
6363
  "phone_number": "+5500000000000",
5218
- "signer_id": "example_id_27"
6364
+ "signer_id": "example_id_28"
5219
6365
  }
5220
6366
  ],
5221
6367
  "status": 200,
@@ -5265,7 +6411,7 @@ List all WhatsApp notification messages sent for an assignment. The response inc
5265
6411
 
5266
6412
  `POST /v1/login`
5267
6413
 
5268
- Authenticate with email and password and receive a JWT access token.
6414
+ Authenticate with email and password and receive a JWT access token. Returns `403` with code `UserInactive` when the password is right but the user has been deactivated.
5269
6415
 
5270
6416
  **Authentication:** none (public endpoint).
5271
6417
 
@@ -5294,7 +6440,7 @@ Example:
5294
6440
  "data": {
5295
6441
  "access_token": "example_credential",
5296
6442
  "user": {
5297
- "id": "example_id_28",
6443
+ "id": "example_id_29",
5298
6444
  "name": "John Smith",
5299
6445
  "email": "user9@example.com",
5300
6446
  "telephone": "+5500000000000",
@@ -5339,6 +6485,24 @@ Example:
5339
6485
  }
5340
6486
  ```
5341
6487
 
6488
+ ##### 403 — Authenticated but not allowed to perform this action.
6489
+
6490
+ ```json
6491
+ {
6492
+ "status": 403,
6493
+ "message": "Bad request.",
6494
+ "data": null,
6495
+ "code": "PlanRestricted",
6496
+ "errors": [
6497
+ {
6498
+ "field": "full_name",
6499
+ "code": "Required",
6500
+ "message": "Full Name cannot be blank."
6501
+ }
6502
+ ]
6503
+ }
6504
+ ```
6505
+
5342
6506
  ##### 500 — Unexpected server error.
5343
6507
 
5344
6508
  ```json
@@ -5361,7 +6525,7 @@ Example:
5361
6525
 
5362
6526
  `PUT /v1/authentication/request-password-reset`
5363
6527
 
5364
- Send the user an email with instructions to reset their password. Used when the password was forgotten or never set.
6528
+ Send the user an email with instructions to reset their password. Used when the password was forgotten or never set. An address with no account gets the same `200` and no email, so the answer never tells whether an address has an account. An `email` that is not text answers `400`.
5365
6529
 
5366
6530
  **Authentication:** none (public endpoint).
5367
6531
 
@@ -5393,6 +6557,24 @@ Example:
5393
6557
  }
5394
6558
  ```
5395
6559
 
6560
+ ##### 400 — One or more fields failed validation.
6561
+
6562
+ ```json
6563
+ {
6564
+ "status": 400,
6565
+ "message": "Bad request.",
6566
+ "data": null,
6567
+ "code": "PlanRestricted",
6568
+ "errors": [
6569
+ {
6570
+ "field": "full_name",
6571
+ "code": "Required",
6572
+ "message": "Full Name cannot be blank."
6573
+ }
6574
+ ]
6575
+ }
6576
+ ```
6577
+
5396
6578
  ##### 500 — Unexpected server error.
5397
6579
 
5398
6580
  ```json
@@ -5415,7 +6597,7 @@ Example:
5415
6597
 
5416
6598
  `PUT /v1/authentication/reset-password`
5417
6599
 
5418
- Reset the user's password using the token received by email.
6600
+ Reset the user's password using the token received by email. A wrong, expired or non-text token, and an address with no account, answer `400`. The new password needs at least 6 characters. A reset ends every session of the user (login tokens issued before it answer `401`) and revokes every connected OAuth app; the user's API key keeps working.
5419
6601
 
5420
6602
  **Authentication:** none (public endpoint).
5421
6603
 
@@ -5632,7 +6814,7 @@ Example:
5632
6814
  "data": {
5633
6815
  "access_token": "example_credential",
5634
6816
  "user": {
5635
- "id": "example_id_28",
6817
+ "id": "example_id_29",
5636
6818
  "name": "John Smith",
5637
6819
  "email": "user9@example.com",
5638
6820
  "telephone": "+5500000000000",
@@ -5714,7 +6896,7 @@ The authenticated user's enrolled two-factor methods and how many recovery codes
5714
6896
  "data": {
5715
6897
  "methods": [
5716
6898
  {
5717
- "id": "example_id_29",
6899
+ "id": "example_id_30",
5718
6900
  "type": "Totp",
5719
6901
  "label": "My phone",
5720
6902
  "confirmed_at": "2026-09-09T14:21:03Z",
@@ -5793,7 +6975,7 @@ Example:
5793
6975
  ```json
5794
6976
  {
5795
6977
  "data": {
5796
- "id": "example_id_29",
6978
+ "id": "example_id_30",
5797
6979
  "secret": "example_secret",
5798
6980
  "provisioning_uri": "https://example.com/example-url-11"
5799
6981
  },
@@ -5859,7 +7041,7 @@ Example:
5859
7041
 
5860
7042
  ```json
5861
7043
  {
5862
- "id": "example_id_29",
7044
+ "id": "example_id_30",
5863
7045
  "code": "123456",
5864
7046
  "password": "example_secret",
5865
7047
  "reauth_code": "string"
@@ -6199,7 +7381,7 @@ Example:
6199
7381
  "data": {
6200
7382
  "access_token": "example_credential",
6201
7383
  "user": {
6202
- "id": "example_id_28",
7384
+ "id": "example_id_29",
6203
7385
  "name": "John Smith",
6204
7386
  "email": "user9@example.com",
6205
7387
  "telephone": "+5500000000000",
@@ -6413,7 +7595,7 @@ Retrieve a masked version of the existing API key. The full key cannot be retrie
6413
7595
 
6414
7596
  `POST /v1/users/api-keys`
6415
7597
 
6416
- Generate an API key for the user, used via the `X-Api-Key` header. Generating a new key deletes the previous one. Never use an API key from a front-end application.
7598
+ Generate an API key for the user, used via the `X-Api-Key` header. Generating a new key deletes the previous one. Never use an API key from a front-end application. Requires a verified e-mail address and a confirmed two-factor authentication method. Otherwise returns `403` with code `EmailNotVerified` or `MfaRequired`.
6417
7599
 
6418
7600
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6419
7601
 
@@ -6445,6 +7627,24 @@ Example:
6445
7627
  }
6446
7628
  ```
6447
7629
 
7630
+ ##### 403 — Authenticated but not allowed to perform this action.
7631
+
7632
+ ```json
7633
+ {
7634
+ "status": 403,
7635
+ "message": "Bad request.",
7636
+ "data": null,
7637
+ "code": "PlanRestricted",
7638
+ "errors": [
7639
+ {
7640
+ "field": "full_name",
7641
+ "code": "Required",
7642
+ "message": "Full Name cannot be blank."
7643
+ }
7644
+ ]
7645
+ }
7646
+ ```
7647
+
6448
7648
  ##### 401 — Missing or invalid credentials.
6449
7649
 
6450
7650
  ```json
@@ -6577,7 +7777,7 @@ List the contract terms tracked on the workspace's documents, most recently upda
6577
7777
  "message": "",
6578
7778
  "data": [
6579
7779
  {
6580
- "document_id": "example_id_30",
7780
+ "document_id": "example_id_31",
6581
7781
  "status": "active",
6582
7782
  "counterparty_name": "Acme Ltda",
6583
7783
  "counterparty_taxpayer_id": "00000000000",
@@ -6589,14 +7789,14 @@ List the contract terms tracked on the workspace's documents, most recently upda
6589
7789
  "renewal_term_months": 12,
6590
7790
  "notice_period_days": 30,
6591
7791
  "term": 1,
6592
- "owner_id": "example_id_31",
7792
+ "owner_id": "example_id_32",
6593
7793
  "metadata": {
6594
7794
  "crm_stage": "won"
6595
7795
  },
6596
7796
  "external_references": [
6597
7797
  {
6598
7798
  "system": "hubspot",
6599
- "id": "example_id_32"
7799
+ "id": "example_id_33"
6600
7800
  }
6601
7801
  ],
6602
7802
  "created_at": "2026-10-23T12:00:00Z",
@@ -6614,7 +7814,7 @@ List the contract terms tracked on the workspace's documents, most recently upda
6614
7814
  "message": "",
6615
7815
  "data": [
6616
7816
  {
6617
- "document_id": "example_id_30",
7817
+ "document_id": "example_id_31",
6618
7818
  "status": "active",
6619
7819
  "counterparty_name": "Acme Ltda",
6620
7820
  "counterparty_taxpayer_id": "00000000000",
@@ -6626,20 +7826,20 @@ List the contract terms tracked on the workspace's documents, most recently upda
6626
7826
  "renewal_term_months": 12,
6627
7827
  "notice_period_days": 30,
6628
7828
  "term": 1,
6629
- "owner_id": "example_id_31",
7829
+ "owner_id": "example_id_32",
6630
7830
  "metadata": {
6631
7831
  "crm_stage": "won"
6632
7832
  },
6633
7833
  "external_references": [
6634
7834
  {
6635
7835
  "system": "hubspot",
6636
- "id": "example_id_32"
7836
+ "id": "example_id_33"
6637
7837
  }
6638
7838
  ],
6639
7839
  "created_at": "2026-10-23T12:00:00Z",
6640
7840
  "updated_at": "2026-10-23T12:00:00Z",
6641
7841
  "document": {
6642
- "id": "example_id_30",
7842
+ "id": "example_id_31",
6643
7843
  "account_id": "example_id_4",
6644
7844
  "template_id": null,
6645
7845
  "name": "Contrato de prestação de serviços.pdf",
@@ -6746,7 +7946,7 @@ The contract terms tracked on a document, with `amendments`: the documents that
6746
7946
  "message": "",
6747
7947
  "data": {
6748
7948
  "resource": "document_contract",
6749
- "document_id": "example_id_30",
7949
+ "document_id": "example_id_31",
6750
7950
  "status": "active",
6751
7951
  "counterparty_name": "Acme Ltda",
6752
7952
  "counterparty_taxpayer_id": "00000000000",
@@ -6758,23 +7958,23 @@ The contract terms tracked on a document, with `amendments`: the documents that
6758
7958
  "renewal_term_months": 12,
6759
7959
  "notice_period_days": 30,
6760
7960
  "term": 2,
6761
- "owner_id": "example_id_31",
7961
+ "owner_id": "example_id_32",
6762
7962
  "metadata": {
6763
7963
  "crm_stage": "won"
6764
7964
  },
6765
7965
  "external_references": [
6766
7966
  {
6767
7967
  "system": "hubspot",
6768
- "id": "example_id_32"
7968
+ "id": "example_id_33"
6769
7969
  }
6770
7970
  ],
6771
7971
  "created_at": "2026-10-23T12:00:00Z",
6772
7972
  "updated_at": "2027-05-12T18:20:00Z",
6773
7973
  "amendments": [
6774
7974
  {
6775
- "document_id": "example_id_33",
7975
+ "document_id": "example_id_34",
6776
7976
  "document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
6777
- "parent_document_id": "example_id_30",
7977
+ "parent_document_id": "example_id_31",
6778
7978
  "relation_type": "amendment",
6779
7979
  "number": 1,
6780
7980
  "status": "applied",
@@ -6816,9 +8016,9 @@ The contract terms tracked on a document, with `amendments`: the documents that
6816
8016
  "message": "",
6817
8017
  "data": {
6818
8018
  "resource": "document_contract_amendment",
6819
- "document_id": "example_id_33",
8019
+ "document_id": "example_id_34",
6820
8020
  "document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
6821
- "parent_document_id": "example_id_30",
8021
+ "parent_document_id": "example_id_31",
6822
8022
  "relation_type": "amendment",
6823
8023
  "number": null,
6824
8024
  "status": "pending",
@@ -6946,14 +8146,14 @@ Example — Set every term:
6946
8146
  "auto_renew": true,
6947
8147
  "renewal_term_months": 12,
6948
8148
  "notice_period_days": 30,
6949
- "owner_id": "example_id_31",
8149
+ "owner_id": "example_id_32",
6950
8150
  "metadata": {
6951
8151
  "crm_stage": "won"
6952
8152
  },
6953
8153
  "external_references": [
6954
8154
  {
6955
8155
  "system": "hubspot",
6956
- "id": "example_id_32"
8156
+ "id": "example_id_33"
6957
8157
  }
6958
8158
  ]
6959
8159
  }
@@ -6975,11 +8175,11 @@ Example — Replace the external references:
6975
8175
  "external_references": [
6976
8176
  {
6977
8177
  "system": "hubspot",
6978
- "id": "example_id_32"
8178
+ "id": "example_id_33"
6979
8179
  },
6980
8180
  {
6981
8181
  "system": "erp",
6982
- "id": "example_id_34"
8182
+ "id": "example_id_35"
6983
8183
  }
6984
8184
  ]
6985
8185
  }
@@ -6989,7 +8189,7 @@ Example — Link an aditivo that changes the value and the end date:
6989
8189
 
6990
8190
  ```json
6991
8191
  {
6992
- "parent_document_id": "example_id_30",
8192
+ "parent_document_id": "example_id_31",
6993
8193
  "relation_type": "amendment",
6994
8194
  "value": 130000,
6995
8195
  "end_date": "2028-06-30"
@@ -7008,7 +8208,7 @@ Example — Link an aditivo that changes the value and the end date:
7008
8208
  "message": "",
7009
8209
  "data": {
7010
8210
  "resource": "document_contract",
7011
- "document_id": "example_id_30",
8211
+ "document_id": "example_id_31",
7012
8212
  "status": "active",
7013
8213
  "counterparty_name": "Acme Ltda",
7014
8214
  "counterparty_taxpayer_id": "00000000000",
@@ -7020,14 +8220,14 @@ Example — Link an aditivo that changes the value and the end date:
7020
8220
  "renewal_term_months": 12,
7021
8221
  "notice_period_days": 30,
7022
8222
  "term": 1,
7023
- "owner_id": "example_id_31",
8223
+ "owner_id": "example_id_32",
7024
8224
  "metadata": {
7025
8225
  "crm_stage": "won"
7026
8226
  },
7027
8227
  "external_references": [
7028
8228
  {
7029
8229
  "system": "hubspot",
7030
- "id": "example_id_32"
8230
+ "id": "example_id_33"
7031
8231
  }
7032
8232
  ],
7033
8233
  "created_at": "2026-10-23T12:00:00Z",
@@ -7044,9 +8244,9 @@ Example — Link an aditivo that changes the value and the end date:
7044
8244
  "message": "",
7045
8245
  "data": {
7046
8246
  "resource": "document_contract_amendment",
7047
- "document_id": "example_id_33",
8247
+ "document_id": "example_id_34",
7048
8248
  "document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
7049
- "parent_document_id": "example_id_30",
8249
+ "parent_document_id": "example_id_31",
7050
8250
  "relation_type": "amendment",
7051
8251
  "number": null,
7052
8252
  "status": "pending",
@@ -7086,9 +8286,9 @@ Example — Link an aditivo that changes the value and the end date:
7086
8286
  "message": "",
7087
8287
  "data": {
7088
8288
  "resource": "document_contract_amendment",
7089
- "document_id": "example_id_33",
8289
+ "document_id": "example_id_34",
7090
8290
  "document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
7091
- "parent_document_id": "example_id_30",
8291
+ "parent_document_id": "example_id_31",
7092
8292
  "relation_type": "amendment",
7093
8293
  "number": 1,
7094
8294
  "status": "applied",
@@ -7234,7 +8434,7 @@ The family the document belongs to, seen from its root: the contract terms with
7234
8434
  "message": "",
7235
8435
  "data": {
7236
8436
  "resource": "document_contract",
7237
- "document_id": "example_id_30",
8437
+ "document_id": "example_id_31",
7238
8438
  "status": "active",
7239
8439
  "counterparty_name": "Acme Ltda",
7240
8440
  "counterparty_taxpayer_id": "00000000000",
@@ -7246,23 +8446,23 @@ The family the document belongs to, seen from its root: the contract terms with
7246
8446
  "renewal_term_months": 12,
7247
8447
  "notice_period_days": 30,
7248
8448
  "term": 2,
7249
- "owner_id": "example_id_31",
8449
+ "owner_id": "example_id_32",
7250
8450
  "metadata": {
7251
8451
  "crm_stage": "won"
7252
8452
  },
7253
8453
  "external_references": [
7254
8454
  {
7255
8455
  "system": "hubspot",
7256
- "id": "example_id_32"
8456
+ "id": "example_id_33"
7257
8457
  }
7258
8458
  ],
7259
8459
  "created_at": "2026-10-23T12:00:00Z",
7260
8460
  "updated_at": "2027-05-12T18:20:00Z",
7261
8461
  "amendments": [
7262
8462
  {
7263
- "document_id": "example_id_33",
8463
+ "document_id": "example_id_34",
7264
8464
  "document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
7265
- "parent_document_id": "example_id_30",
8465
+ "parent_document_id": "example_id_31",
7266
8466
  "relation_type": "amendment",
7267
8467
  "number": 1,
7268
8468
  "status": "applied",
@@ -7396,7 +8596,7 @@ Example — Renew to a date with a new value:
7396
8596
  "message": "",
7397
8597
  "data": {
7398
8598
  "resource": "document_contract",
7399
- "document_id": "example_id_30",
8599
+ "document_id": "example_id_31",
7400
8600
  "status": "active",
7401
8601
  "counterparty_name": "Acme Ltda",
7402
8602
  "counterparty_taxpayer_id": "00000000000",
@@ -7408,14 +8608,14 @@ Example — Renew to a date with a new value:
7408
8608
  "renewal_term_months": 12,
7409
8609
  "notice_period_days": 30,
7410
8610
  "term": 2,
7411
- "owner_id": "example_id_31",
8611
+ "owner_id": "example_id_32",
7412
8612
  "metadata": {
7413
8613
  "crm_stage": "won"
7414
8614
  },
7415
8615
  "external_references": [
7416
8616
  {
7417
8617
  "system": "hubspot",
7418
- "id": "example_id_32"
8618
+ "id": "example_id_33"
7419
8619
  }
7420
8620
  ],
7421
8621
  "created_at": "2026-10-23T12:00:00Z",
@@ -7553,7 +8753,7 @@ Example — Terminate with a reason:
7553
8753
  "message": "",
7554
8754
  "data": {
7555
8755
  "resource": "document_contract",
7556
- "document_id": "example_id_30",
8756
+ "document_id": "example_id_31",
7557
8757
  "status": "terminated",
7558
8758
  "counterparty_name": "Acme Ltda",
7559
8759
  "counterparty_taxpayer_id": "00000000000",
@@ -7565,14 +8765,14 @@ Example — Terminate with a reason:
7565
8765
  "renewal_term_months": 12,
7566
8766
  "notice_period_days": 30,
7567
8767
  "term": 1,
7568
- "owner_id": "example_id_31",
8768
+ "owner_id": "example_id_32",
7569
8769
  "metadata": {
7570
8770
  "crm_stage": "won"
7571
8771
  },
7572
8772
  "external_references": [
7573
8773
  {
7574
8774
  "system": "hubspot",
7575
- "id": "example_id_32"
8775
+ "id": "example_id_33"
7576
8776
  }
7577
8777
  ],
7578
8778
  "created_at": "2026-10-23T12:00:00Z",
@@ -7692,7 +8892,7 @@ List the origins allowed to embed the workspace's signing pages, oldest first. R
7692
8892
  {
7693
8893
  "data": [
7694
8894
  {
7695
- "id": "example_id_35",
8895
+ "id": "example_id_36",
7696
8896
  "origin": "https://example.com/example-url-14",
7697
8897
  "created_at": "2026-11-04T12:05:00Z"
7698
8898
  }
@@ -7791,7 +8991,7 @@ Example:
7791
8991
  ```json
7792
8992
  {
7793
8993
  "data": {
7794
- "id": "example_id_35",
8994
+ "id": "example_id_36",
7795
8995
  "origin": "https://example.com/example-url-14",
7796
8996
  "created_at": "2026-11-04T12:05:00Z"
7797
8997
  },
@@ -7908,7 +9108,7 @@ Example:
7908
9108
  ```json
7909
9109
  {
7910
9110
  "data": {
7911
- "id": "example_id_35",
9111
+ "id": "example_id_36",
7912
9112
  "origin": "https://example.com/example-url-14",
7913
9113
  "created_at": "2026-11-04T12:05:00Z"
7914
9114
  },
@@ -8251,8 +9451,8 @@ Example:
8251
9451
  {
8252
9452
  "data": {
8253
9453
  "signer_access_code": "example_secret",
8254
- "signer_id": "example_id_35",
8255
- "document_id": "example_id_36",
9454
+ "signer_id": "example_id_36",
9455
+ "document_id": "example_id_37",
8256
9456
  "verification_method": "Email",
8257
9457
  "embed_origins": [
8258
9458
  "https://example.com/example-url-14"
@@ -8314,7 +9514,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
8314
9514
  "data": [
8315
9515
  {
8316
9516
  "resource": "envelope",
8317
- "id": "example_id_37",
9517
+ "id": "example_id_38",
8318
9518
  "name": "Contrato de prestação de serviços",
8319
9519
  "message": "Segue o contrato e seus anexos.",
8320
9520
  "documents": [
@@ -8329,7 +9529,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
8329
9529
  },
8330
9530
  "signers": [
8331
9531
  {
8332
- "id": "example_id_11",
9532
+ "id": "example_id_12",
8333
9533
  "full_name": "Example User",
8334
9534
  "email": "user10@example.com",
8335
9535
  "whatsapp_phone_number": "+5500000000000",
@@ -8450,7 +9650,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
8450
9650
 
8451
9651
  `POST /v1/accounts/{accountId}/envelopes`
8452
9652
 
8453
- Send several documents to the same signers at once. Each document gets its own assignment and keeps its own status, certificate and downloads; one invitation goes to each signer, through the methods sent for them, for all the documents they are on, from the first of them. A send that fails is recorded on that signer's request (`notification_history`) and doesn't undo the envelope: `200` means the envelope was created, not that every invitation was delivered. The envelope is charged as one document, whatever its documents, each signer's notifications and identity check once for the whole envelope, and each digital-certificate signature on every document it is made on. Every document must be uploaded and processed (`metadata_ready`) with no assignment, and every listed signer must be on at least one document. Each document is signed on its virtual page or, with `collect`, on the fields placed on its pages, as on an assignment; a digital-certificate signer signs only virtual documents, alone on each. Needs the Envelopes feature on the workspace's plan (`403` with code `PlanRestricted` otherwise). A refused request creates and charges nothing; `errors` names every field at fault.
9653
+ Send several documents to the same signers at once. Each document gets its own assignment and keeps its own status, certificate and downloads; one invitation goes to each signer, through the methods sent for them, for all the documents they are on, from the first of them. A send that fails is recorded on that signer's request (`notification_history`) and doesn't undo the envelope: `200` means the envelope was created, not that every invitation was delivered. The envelope is charged as one document, whatever its documents, each signer's notifications and identity check once for the whole envelope, and each digital-certificate signature on every document it is made on. Every document must be uploaded and processed (`metadata_ready`) with no assignment, and every listed signer must be on at least one document. Each document is signed on its virtual page or, with `collect`, on the fields placed on its pages, as on an assignment; a digital-certificate signer signs only virtual documents, alone on each. Needs the Envelopes feature on the workspace's plan (`403` with code `PlanRestricted` otherwise). Free workspaces can use up to three distinct signers across the envelope (`403 FreePlanSignerLimit`). A refused request creates and charges nothing; `errors` names every field at fault.
8454
9654
 
8455
9655
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
8456
9656
 
@@ -8480,7 +9680,7 @@ Example:
8480
9680
  "max_total_credits": 1.5,
8481
9681
  "signers": [
8482
9682
  {
8483
- "id": "example_id_11",
9683
+ "id": "example_id_12",
8484
9684
  "verification_method": "Email",
8485
9685
  "notification_methods": [
8486
9686
  "Email"
@@ -8513,11 +9713,11 @@ Example:
8513
9713
  }
8514
9714
  ],
8515
9715
  "signer_ids": [
8516
- "example_id_11"
9716
+ "example_id_12"
8517
9717
  ],
8518
9718
  "expires_at": "2026-12-31T23:59:59Z",
8519
9719
  "copy_receiver_ids": [
8520
- "example_id_38"
9720
+ "example_id_39"
8521
9721
  ]
8522
9722
  }
8523
9723
  ]
@@ -8532,7 +9732,7 @@ Example:
8532
9732
  {
8533
9733
  "data": {
8534
9734
  "resource": "envelope",
8535
- "id": "example_id_37",
9735
+ "id": "example_id_38",
8536
9736
  "name": "Contrato de prestação de serviços",
8537
9737
  "message": "Segue o contrato e seus anexos.",
8538
9738
  "documents": [
@@ -8547,7 +9747,7 @@ Example:
8547
9747
  },
8548
9748
  "signers": [
8549
9749
  {
8550
- "id": "example_id_11",
9750
+ "id": "example_id_12",
8551
9751
  "full_name": "Example User",
8552
9752
  "email": "user10@example.com",
8553
9753
  "whatsapp_phone_number": "+5500000000000",
@@ -8591,7 +9791,7 @@ Example:
8591
9791
  }
8592
9792
  ```
8593
9793
 
8594
- ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
9794
+ ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
8595
9795
 
8596
9796
  ```json
8597
9797
  {
@@ -8716,7 +9916,7 @@ Example:
8716
9916
  "max_total_credits": 1.5,
8717
9917
  "signers": [
8718
9918
  {
8719
- "id": "example_id_11",
9919
+ "id": "example_id_12",
8720
9920
  "verification_method": "Email",
8721
9921
  "notification_methods": [
8722
9922
  "Email"
@@ -8749,11 +9949,11 @@ Example:
8749
9949
  }
8750
9950
  ],
8751
9951
  "signer_ids": [
8752
- "example_id_11"
9952
+ "example_id_12"
8753
9953
  ],
8754
9954
  "expires_at": "2026-12-31T23:59:59Z",
8755
9955
  "copy_receiver_ids": [
8756
- "example_id_38"
9956
+ "example_id_39"
8757
9957
  ]
8758
9958
  }
8759
9959
  ]
@@ -8808,7 +10008,7 @@ Example:
8808
10008
  }
8809
10009
  ```
8810
10010
 
8811
- ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
10011
+ ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
8812
10012
 
8813
10013
  ```json
8814
10014
  {
@@ -8903,7 +10103,7 @@ One envelope of the workspace: its documents in order, each with its status and
8903
10103
  {
8904
10104
  "data": {
8905
10105
  "resource": "envelope",
8906
- "id": "example_id_37",
10106
+ "id": "example_id_38",
8907
10107
  "name": "Contrato de prestação de serviços",
8908
10108
  "message": "Segue o contrato e seus anexos.",
8909
10109
  "documents": [
@@ -8918,7 +10118,7 @@ One envelope of the workspace: its documents in order, each with its status and
8918
10118
  },
8919
10119
  "signers": [
8920
10120
  {
8921
- "id": "example_id_11",
10121
+ "id": "example_id_12",
8922
10122
  "full_name": "Example User",
8923
10123
  "email": "user10@example.com",
8924
10124
  "whatsapp_phone_number": "+5500000000000",
@@ -9166,7 +10366,7 @@ Example:
9166
10366
  "message": "Segue o contrato e seus anexos.",
9167
10367
  "document_ids": [
9168
10368
  "example_id_3",
9169
- "example_id_39"
10369
+ "example_id_40"
9170
10370
  ]
9171
10371
  }
9172
10372
  ```
@@ -9179,7 +10379,7 @@ Example:
9179
10379
  {
9180
10380
  "data": {
9181
10381
  "resource": "envelope",
9182
- "id": "example_id_37",
10382
+ "id": "example_id_38",
9183
10383
  "name": "Contrato de prestação de serviços",
9184
10384
  "message": "Segue o contrato e seus anexos.",
9185
10385
  "documents": [
@@ -9194,7 +10394,7 @@ Example:
9194
10394
  },
9195
10395
  "signers": [
9196
10396
  {
9197
- "id": "example_id_11",
10397
+ "id": "example_id_12",
9198
10398
  "full_name": "Example User",
9199
10399
  "email": "user10@example.com",
9200
10400
  "whatsapp_phone_number": "+5500000000000",
@@ -9336,7 +10536,7 @@ The envelope's trail: the activities of every document it has had, one taken out
9336
10536
  {
9337
10537
  "data": [
9338
10538
  {
9339
- "document_id": "example_id_40",
10539
+ "document_id": "example_id_41",
9340
10540
  "document_name": "Contrato.pdf",
9341
10541
  "id": 4,
9342
10542
  "event": "assignment_created",
@@ -9624,7 +10824,129 @@ Cancels every document of the envelope that can still be cancelled, the way dele
9624
10824
 
9625
10825
  `PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/resend`
9626
10826
 
9627
- Reminds a signer of the whole envelope at once: one message, the envelope's invitation sent again from their first link, listing the documents they still have to sign and, by e-mail, those they already signed. Paid notification methods are charged once for it, for each message that goes out. Each document they still have to sign records a `signature_requested` event, as the invitation does.
10827
+ Reminds a signer of the whole envelope at once: one message, the envelope's invitation sent again from their first link, listing the documents they still have to sign and, by e-mail, those they already signed. Paid notification methods are charged once for it, for each message that goes out. Each document they still have to sign records a `signature_requested` event, as the invitation does.
10828
+
10829
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
10830
+
10831
+ #### Parameters
10832
+
10833
+ | Name | In | Type | Required | Description |
10834
+ |---|---|---|---|---|
10835
+ | `accountId` | path | string | yes | Workspace account ID. |
10836
+ | `envelopeId` | path | string | yes | The envelope ID. |
10837
+ | `signerId` | path | string | yes | The signer ID. |
10838
+
10839
+ #### Responses
10840
+
10841
+ ##### 200 — Reminder result
10842
+
10843
+ ```json
10844
+ {
10845
+ "data": {
10846
+ "is_sent": true,
10847
+ "envelope_id": "example_id_5",
10848
+ "signer_id": "example_id_5"
10849
+ },
10850
+ "status": 200,
10851
+ "message": ""
10852
+ }
10853
+ ```
10854
+
10855
+ ##### 400 — The signer has nothing left to sign in the envelope: every document of theirs is signed, closed or past its deadline; the signer was reminded less than 2 minutes ago, or is being reminded now, or the workspace already reminded them 10 times in the 24 hours since the first of those reminders (one that may have gone out counts; the signer asking for their link again doesn't; a reminder through any document of the envelope counts); or the account lacks credits for the reminder.
10856
+
10857
+ ```json
10858
+ {
10859
+ "status": 400,
10860
+ "message": "This signer has nothing left to sign in this envelope."
10861
+ }
10862
+ ```
10863
+
10864
+ ##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
10865
+
10866
+ ```json
10867
+ {
10868
+ "status": 403,
10869
+ "code": "PlanRestricted",
10870
+ "message": "Bad request.",
10871
+ "data": null,
10872
+ "errors": [
10873
+ {
10874
+ "field": "full_name",
10875
+ "code": "Required",
10876
+ "message": "Full Name cannot be blank."
10877
+ }
10878
+ ]
10879
+ }
10880
+ ```
10881
+
10882
+ ##### 404 — The envelope was not found, or the signer is not one of its signers.
10883
+
10884
+ ```json
10885
+ {
10886
+ "status": 404,
10887
+ "message": "Signer not found."
10888
+ }
10889
+ ```
10890
+
10891
+ ##### 409 — The envelope is closed: every document of it is signed, declined, cancelled, expired or failed (`EnvelopeClosed`).
10892
+
10893
+ ```json
10894
+ {
10895
+ "status": 409,
10896
+ "code": "PlanRestricted",
10897
+ "message": "Bad request.",
10898
+ "data": null,
10899
+ "errors": [
10900
+ {
10901
+ "field": "full_name",
10902
+ "code": "Required",
10903
+ "message": "Full Name cannot be blank."
10904
+ }
10905
+ ]
10906
+ }
10907
+ ```
10908
+
10909
+ ##### 401 — Missing or invalid credentials.
10910
+
10911
+ ```json
10912
+ {
10913
+ "status": 401,
10914
+ "message": "Bad request.",
10915
+ "data": null,
10916
+ "code": "PlanRestricted",
10917
+ "errors": [
10918
+ {
10919
+ "field": "full_name",
10920
+ "code": "Required",
10921
+ "message": "Full Name cannot be blank."
10922
+ }
10923
+ ]
10924
+ }
10925
+ ```
10926
+
10927
+ ##### 500 — Unexpected server error.
10928
+
10929
+ ```json
10930
+ {
10931
+ "status": 500,
10932
+ "message": "Bad request.",
10933
+ "data": null,
10934
+ "code": "PlanRestricted",
10935
+ "errors": [
10936
+ {
10937
+ "field": "full_name",
10938
+ "code": "Required",
10939
+ "message": "Full Name cannot be blank."
10940
+ }
10941
+ ]
10942
+ }
10943
+ ```
10944
+
10945
+ ### Estimate envelope reminder cost
10946
+
10947
+ `POST /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/estimate-resend-cost`
10948
+
10949
+ What reminding a signer of the whole envelope would cost, sending and charging nothing. The reminder is one message per notification method for all of the envelope's documents, so it costs what one document's reminder costs, whatever the number of documents, at the workspace's reminder prices: nothing by e-mail and the WhatsApp resend price by WhatsApp, unless its plan prices them otherwise. Answers as a document's reminder estimate. It does not check whether a reminder would be accepted now: the reminder itself refuses a closed envelope (`409`), and a signer with nothing left to sign or one reminded too recently or too often (`400`).
9628
10950
 
9629
10951
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
9630
10952
 
@@ -9638,29 +10960,27 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
9638
10960
 
9639
10961
  #### Responses
9640
10962
 
9641
- ##### 200 — Reminder result
10963
+ ##### 200 — Cost estimate
9642
10964
 
9643
10965
  ```json
9644
10966
  {
9645
10967
  "data": {
9646
- "is_sent": true,
9647
- "envelope_id": "example_id_5",
9648
- "signer_id": "example_id_5"
10968
+ "total": 0.45,
10969
+ "breakdown": [
10970
+ {
10971
+ "code": "NotificationWhatsappResend",
10972
+ "name": "Whatsapp Notification Resend",
10973
+ "cost": 0.45
10974
+ }
10975
+ ],
10976
+ "credit_balance": 10,
10977
+ "has_sufficient_credits": true
9649
10978
  },
9650
10979
  "status": 200,
9651
10980
  "message": ""
9652
10981
  }
9653
10982
  ```
9654
10983
 
9655
- ##### 400 — The signer has nothing left to sign in the envelope: every document of theirs is signed or closed; or the account lacks credits for the reminder.
9656
-
9657
- ```json
9658
- {
9659
- "status": 400,
9660
- "message": "This signer has nothing left to sign in this envelope."
9661
- }
9662
- ```
9663
-
9664
10984
  ##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
9665
10985
 
9666
10986
  ```json
@@ -9688,24 +11008,6 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
9688
11008
  }
9689
11009
  ```
9690
11010
 
9691
- ##### 409 — The envelope is closed: every document of it is signed, declined, cancelled, expired or failed (`EnvelopeClosed`).
9692
-
9693
- ```json
9694
- {
9695
- "status": 409,
9696
- "code": "PlanRestricted",
9697
- "message": "Bad request.",
9698
- "data": null,
9699
- "errors": [
9700
- {
9701
- "field": "full_name",
9702
- "code": "Required",
9703
- "message": "Full Name cannot be blank."
9704
- }
9705
- ]
9706
- }
9707
- ```
9708
-
9709
11011
  ##### 401 — Missing or invalid credentials.
9710
11012
 
9711
11013
  ```json
@@ -9746,7 +11048,7 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
9746
11048
 
9747
11049
  `POST /v1/accounts/{accountId}/envelopes/{envelopeId}/documents`
9748
11050
 
9749
- Add a document to an open envelope for some of its signers. The document is checked as on creation: a `metadata_ready` document of the workspace with no assignment, signed on its virtual page or, with `collect`, on the fields placed in `entries`, with its own `expires_at` and `copy_receiver_ids`. An envelope holds up to 20 documents. It charges only its digital-certificate signatures, the envelope having paid for its document and its signers' notifications and identity checks when it was sent, and goes last in the envelope's order; a signer whose identity check the envelope approved is verified on it too. Each chosen signer is sent the envelope's invitation again, through the methods and with the link of their first invitation, now listing the new document, even once the document that invitation was sent from is taken out; the other signers hear nothing. The signers are the envelope's own: no one new joins once it was sent. Needs the Envelopes feature on the workspace's plan, as creating does. A refused request creates and charges nothing; `errors` names every field at fault.
11051
+ Add a document to an open envelope for some of its signers. The document is checked as on creation: a `metadata_ready` document of the workspace with no assignment, signed on its virtual page or, with `collect`, on the fields placed in `entries`, with its own `expires_at` and `copy_receiver_ids`. An envelope holds up to 20 documents, and 60 over its life, ones taken out included: past that, adding answers `400` and sends nothing. It charges only its digital-certificate signatures, the envelope having paid for its document and its signers' notifications and identity checks when it was sent, and goes last in the envelope's order; a signer whose identity check the envelope approved is verified on it too. Each chosen signer is sent the envelope's invitation again, through the methods and with the link of their first invitation, now listing the new document, even once the document that invitation was sent from is taken out; the other signers hear nothing. The signers are the envelope's own: no one new joins once it was sent. Needs the Envelopes feature on the workspace's plan, as creating does. A refused request creates and charges nothing; `errors` names every field at fault.
9750
11052
 
9751
11053
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
9752
11054
 
@@ -9797,11 +11099,11 @@ Example:
9797
11099
  }
9798
11100
  ],
9799
11101
  "signer_ids": [
9800
- "example_id_11"
11102
+ "example_id_12"
9801
11103
  ],
9802
11104
  "expires_at": "2026-12-31T23:59:59Z",
9803
11105
  "copy_receiver_ids": [
9804
- "example_id_38"
11106
+ "example_id_39"
9805
11107
  ]
9806
11108
  }
9807
11109
  ```
@@ -9814,7 +11116,7 @@ Example:
9814
11116
  {
9815
11117
  "data": {
9816
11118
  "resource": "envelope",
9817
- "id": "example_id_37",
11119
+ "id": "example_id_38",
9818
11120
  "name": "Contrato de prestação de serviços",
9819
11121
  "message": "Segue o contrato e seus anexos.",
9820
11122
  "documents": [
@@ -9829,7 +11131,7 @@ Example:
9829
11131
  },
9830
11132
  "signers": [
9831
11133
  {
9832
- "id": "example_id_11",
11134
+ "id": "example_id_12",
9833
11135
  "full_name": "Example User",
9834
11136
  "email": "user10@example.com",
9835
11137
  "whatsapp_phone_number": "+5500000000000",
@@ -9857,7 +11159,7 @@ Example:
9857
11159
  }
9858
11160
  ```
9859
11161
 
9860
- ##### 400 — Refused as sent; nothing was created or charged. Each field at fault is an entry of `errors`: `id` (missing, or a document that can't take the assignment: not found, not `metadata_ready`, or already assigned); `method` (other than `virtual` or `collect`); `entries` (missing for `collect`, or not a list of pages with fields naming their `signer_id`); `signer_ids` (missing, not a list of ids, listed twice, not a signer of the envelope's documents, for `collect` not exactly the signers on its fields, or a digital-certificate signer on a `collect` document or with another signer); `expires_at` (not text, a number or null); a null `field` when the envelope already has 20 documents, or would hold more than 2,000 fields (a virtual document's being one per signer) or more than 100 copy receivers with this one. A page or field the assignment doesn't find on a `collect` document, a balance too low, an `expires_at` or `copy_receiver_ids` the assignment refuses, and a document another request assigned or put back into processing meanwhile answer `400` with `message` only, as on an assignment.
11162
+ ##### 400 — Refused as sent; nothing was created or charged. Each field at fault is an entry of `errors`: `id` (missing, or a document that can't take the assignment: not found, not `metadata_ready`, or already assigned); `method` (other than `virtual` or `collect`); `entries` (missing for `collect`, or not a list of pages with fields naming their `signer_id`); `signer_ids` (missing, not a list of ids, listed twice, not a signer of the envelope's documents, for `collect` not exactly the signers on its fields, or a digital-certificate signer on a `collect` document or with another signer); `expires_at` (not text, a number or null); a null `field` when the envelope already has 20 documents or has had 60 in all, ones taken out included, or would hold more than 2,000 fields (a virtual document's being one per signer) or more than 100 copy receivers with this one. A page or field the assignment doesn't find on a `collect` document, a balance too low, an `expires_at` or `copy_receiver_ids` the assignment refuses, and a document another request assigned or put back into processing meanwhile answer `400` with `message` only, as on an assignment.
9861
11163
 
9862
11164
  ```json
9863
11165
  {
@@ -9873,7 +11175,7 @@ Example:
9873
11175
  }
9874
11176
  ```
9875
11177
 
9876
- ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
11178
+ ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
9877
11179
 
9878
11180
  ```json
9879
11181
  {
@@ -9989,7 +11291,7 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
9989
11291
  {
9990
11292
  "data": {
9991
11293
  "resource": "envelope",
9992
- "id": "example_id_37",
11294
+ "id": "example_id_38",
9993
11295
  "name": "Contrato de prestação de serviços",
9994
11296
  "message": "Segue o contrato e seus anexos.",
9995
11297
  "documents": [
@@ -10004,7 +11306,7 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
10004
11306
  },
10005
11307
  "signers": [
10006
11308
  {
10007
- "id": "example_id_11",
11309
+ "id": "example_id_12",
10008
11310
  "full_name": "Example User",
10009
11311
  "email": "user10@example.com",
10010
11312
  "whatsapp_phone_number": "+5500000000000",
@@ -10122,6 +11424,193 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
10122
11424
  }
10123
11425
  ```
10124
11426
 
11427
+ ### Schedule an envelope
11428
+
11429
+ `POST /v1/accounts/{accountId}/scheduled-sends`
11430
+
11431
+ Keeps a **Create envelope** request and makes it at `send_at`, as the member who scheduled it, through the same checks and charges as **Create envelope** then. Nothing is created, sent or charged now, and nothing changes for its documents: each can still be sent at once, and the scheduled send then fails when it goes. A document takes one pending scheduled send at a time, counting one being sent. The request is checked now as **Estimate envelope cost** checks it (`403 PlanRestricted` without the Envelopes feature, `403 FreePlanSignerLimit` above three signers on free plans, `400` with `errors` on the same fields); the balance is checked when it is sent. A job checks every five minutes and makes the sends that are due; failures go as for **Schedule an assignment**: `failed` with the reason, nothing charged, the member who scheduled it e-mailed, or the workspace's active owners if that member has left. An `Idempotency-Key` is not read here: each call keeps one send. An assignment is scheduled on its document (**Schedule an assignment**).
11432
+
11433
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
11434
+
11435
+ #### Parameters
11436
+
11437
+ | Name | In | Type | Required | Description |
11438
+ |---|---|---|---|---|
11439
+ | `accountId` | path | string | yes | Workspace account ID. |
11440
+
11441
+ #### Request Body (required)
11442
+
11443
+ Fields (`application/json`):
11444
+
11445
+ - `send_at` (object) — When to send: ISO 8601 with its offset (none means UTC), or a Unix time. From one hour to 90 days ahead.
11446
+ - `name` (string, required) — What the invitation calls what is being signed, in place of a document's name. `<` is refused (`400`).
11447
+ - `message` (string | null) — Optional message sent to every signer; their invitation adds the names of the documents they are on.
11448
+ - `max_total_credits` (number) — Optional ceiling on what this request may spend, as on an assignment: refused with `409` and code `CreditCeilingExceeded`, nothing created or charged, when the envelope's total credits are above it. A value that is not a number of credits, zero or more, answers `400`; numeric text counts, as a form-encoded body sends it. The estimate ignores it.
11449
+ - `signers` (array, required) — Every signer of the envelope, once, by id: up to 20. They all sign at once: an envelope takes no `step`.
11450
+ - `documents` (array, required) — The documents, in the order the envelope lists them: up to 20.
11451
+
11452
+ Example:
11453
+
11454
+ ```json
11455
+ {
11456
+ "send_at": "2026-11-20T09:00:00-03:00",
11457
+ "name": "Contrato de prestação de serviços",
11458
+ "message": "Segue o contrato e seus anexos.",
11459
+ "max_total_credits": 1.5,
11460
+ "signers": [
11461
+ {
11462
+ "id": "example_id_12",
11463
+ "verification_method": "Email",
11464
+ "notification_methods": [
11465
+ "Email"
11466
+ ],
11467
+ "embedded": true
11468
+ }
11469
+ ],
11470
+ "documents": [
11471
+ {
11472
+ "id": "example_id_3",
11473
+ "method": "virtual",
11474
+ "entries": [
11475
+ {
11476
+ "page_id": "example_id_5",
11477
+ "fields": [
11478
+ {
11479
+ "signer_id": "example_id_5",
11480
+ "field_id": "example_id_5",
11481
+ "display_settings": {
11482
+ "left": 69,
11483
+ "top": 282,
11484
+ "width": 421,
11485
+ "height": 45.86,
11486
+ "fontFamily": "Arial",
11487
+ "fontSize": 22,
11488
+ "backgroundColor": "#D5EBFF"
11489
+ }
11490
+ }
11491
+ ]
11492
+ }
11493
+ ],
11494
+ "signer_ids": [
11495
+ "example_id_12"
11496
+ ],
11497
+ "expires_at": "2026-12-31T23:59:59Z",
11498
+ "copy_receiver_ids": [
11499
+ "example_id_39"
11500
+ ]
11501
+ }
11502
+ ]
11503
+ }
11504
+ ```
11505
+
11506
+ #### Responses
11507
+
11508
+ ##### 200 — The scheduled send
11509
+
11510
+ ```json
11511
+ {
11512
+ "data": {
11513
+ "resource": "scheduled_send",
11514
+ "id": "example_id_27",
11515
+ "type": "assignment",
11516
+ "document_ids": [
11517
+ "example_id_3"
11518
+ ],
11519
+ "status": "pending",
11520
+ "send_at": "2026-11-20T12:00:00Z",
11521
+ "next_attempt_at": null,
11522
+ "assignment_id": null,
11523
+ "envelope_id": null,
11524
+ "failure_reason": null,
11525
+ "created_at": "2026-11-14T18:00:00Z",
11526
+ "processed_at": null
11527
+ },
11528
+ "status": 200,
11529
+ "message": ""
11530
+ }
11531
+ ```
11532
+
11533
+ ##### 400 — `send_at` missing, unreadable, less than an hour or more than 90 days ahead; a document's `expires_at` less than two hours after it; a document already assigned or in a scheduled send pending or being sent; or the request refused as **Estimate envelope cost** refuses it, in `errors`.
11534
+
11535
+ ```json
11536
+ {
11537
+ "status": 400,
11538
+ "message": "The scheduled send must be at least one hour ahead."
11539
+ }
11540
+ ```
11541
+
11542
+ ##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
11543
+
11544
+ ```json
11545
+ {
11546
+ "status": 403,
11547
+ "code": "PlanRestricted",
11548
+ "message": "Bad request.",
11549
+ "data": null,
11550
+ "errors": [
11551
+ {
11552
+ "field": "full_name",
11553
+ "code": "Required",
11554
+ "message": "Full Name cannot be blank."
11555
+ }
11556
+ ]
11557
+ }
11558
+ ```
11559
+
11560
+ ##### 404 — The requested resource does not exist.
11561
+
11562
+ ```json
11563
+ {
11564
+ "status": 404,
11565
+ "message": "Bad request.",
11566
+ "data": null,
11567
+ "code": "PlanRestricted",
11568
+ "errors": [
11569
+ {
11570
+ "field": "full_name",
11571
+ "code": "Required",
11572
+ "message": "Full Name cannot be blank."
11573
+ }
11574
+ ]
11575
+ }
11576
+ ```
11577
+
11578
+ ##### 401 — Missing or invalid credentials.
11579
+
11580
+ ```json
11581
+ {
11582
+ "status": 401,
11583
+ "message": "Bad request.",
11584
+ "data": null,
11585
+ "code": "PlanRestricted",
11586
+ "errors": [
11587
+ {
11588
+ "field": "full_name",
11589
+ "code": "Required",
11590
+ "message": "Full Name cannot be blank."
11591
+ }
11592
+ ]
11593
+ }
11594
+ ```
11595
+
11596
+ ##### 500 — Unexpected server error.
11597
+
11598
+ ```json
11599
+ {
11600
+ "status": 500,
11601
+ "message": "Bad request.",
11602
+ "data": null,
11603
+ "code": "PlanRestricted",
11604
+ "errors": [
11605
+ {
11606
+ "field": "full_name",
11607
+ "code": "Required",
11608
+ "message": "Full Name cannot be blank."
11609
+ }
11610
+ ]
11611
+ }
11612
+ ```
11613
+
10125
11614
  ## Fields
10126
11615
 
10127
11616
  ### List fields
@@ -10432,7 +11921,7 @@ Fields (`application/json`):
10432
11921
 
10433
11922
  - `name` (string)
10434
11923
  - `regex` (string | null)
10435
- - `is_active` (boolean)
11924
+ - `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.
10436
11925
 
10437
11926
  Example:
10438
11927
 
@@ -10622,7 +12111,7 @@ Validate an input value against a field definition. Typically called with a sign
10622
12111
 
10623
12112
  Fields (`application/json`):
10624
12113
 
10625
- - `value` (object, required) — The input value to validate.
12114
+ - `value` (object, required) — The input value to validate. Zero, as a number or as text, is a value; null, `false`, empty text and an empty list are none.
10626
12115
 
10627
12116
  Example:
10628
12117
 
@@ -10777,7 +12266,7 @@ Example:
10777
12266
  ```json
10778
12267
  [
10779
12268
  {
10780
- "field_id": "example_id_41",
12269
+ "field_id": "example_id_42",
10781
12270
  "value": "1111111111111"
10782
12271
  }
10783
12272
  ]
@@ -10791,7 +12280,7 @@ Example:
10791
12280
  {
10792
12281
  "data": [
10793
12282
  {
10794
- "field_id": "example_id_41",
12283
+ "field_id": "example_id_42",
10795
12284
  "type": "cpf",
10796
12285
  "success": false,
10797
12286
  "error_message": "Invalid CPF."
@@ -11458,7 +12947,7 @@ Returns the profile of the user owning the access token. Not available to OAuth
11458
12947
  ```json
11459
12948
  {
11460
12949
  "data": {
11461
- "id": "example_id_28",
12950
+ "id": "example_id_29",
11462
12951
  "name": "John Smith",
11463
12952
  "email": "user9@example.com",
11464
12953
  "telephone": "+5500000000000",
@@ -11697,7 +13186,7 @@ Claims about the user who authorized this token. Requires the openid scope; name
11697
13186
 
11698
13187
  ```json
11699
13188
  {
11700
- "sub": "example_id_31",
13189
+ "sub": "example_id_32",
11701
13190
  "name": "Maria Silva",
11702
13191
  "email": null,
11703
13192
  "email_verified": null
@@ -11916,7 +13405,7 @@ Retrieve a publicly shared document by ID. Public endpoint.
11916
13405
 
11917
13406
  `PUT /v1/public/documents/{documentId}/send-token`
11918
13407
 
11919
- Send a one-time access token to a signer of a public document, so they can view it. The document must be pending signature, and `recipient` must belong to a signer of the document who has not signed yet. Only the `email` channel is supported. Public endpoint.
13408
+ Sends the signer this document's signature request again, by e-mail, with its existing link, and its verification code when the signer's verification method uses one: nothing is renewed. A `200` means the request was accepted, not that the e-mail was delivered. The document must be pending signature and within its deadline, and `recipient` must be the e-mail address of a signer of the document who has not signed yet and whose turn has come. A signer gets it through this route at most once every two minutes, whoever asks; an envelope's documents share the signer's one interval. A send that failed may still have gone out, so it counts, unless it was refused before sending. Public endpoint.
11920
13409
 
11921
13410
  **Authentication:** none (public endpoint).
11922
13411
 
@@ -11931,14 +13420,14 @@ Send a one-time access token to a signer of a public document, so they can view
11931
13420
  Fields (`application/json`):
11932
13421
 
11933
13422
  - `channel` (string, required) — Where to send the token. Only `email` is supported.
11934
- - `recipient` (string, required) — The signer's address on that channel — for `email`, the signer's email address.
13423
+ - `recipient` (string, required) — The signer's e-mail address, as text.
11935
13424
 
11936
13425
  Example:
11937
13426
 
11938
13427
  ```json
11939
13428
  {
11940
13429
  "channel": "email",
11941
- "recipient": "user1@example.com"
13430
+ "recipient": "user2@example.com"
11942
13431
  }
11943
13432
  ```
11944
13433
 
@@ -11951,20 +13440,20 @@ Example:
11951
13440
  "data": {
11952
13441
  "document": {
11953
13442
  "resource": "document",
11954
- "id": "example_id_42",
13443
+ "id": "example_id_43",
11955
13444
  "name": "Contract.pdf",
11956
13445
  "page_count": 3,
11957
13446
  "created_by": "Jane Doe"
11958
13447
  },
11959
13448
  "channel": "email",
11960
- "recipient": "user1@example.com"
13449
+ "recipient": "user2@example.com"
11961
13450
  },
11962
13451
  "status": 200,
11963
13452
  "message": ""
11964
13453
  }
11965
13454
  ```
11966
13455
 
11967
- ##### 400 — One or more fields failed validation.
13456
+ ##### 400 — The document is not pending signature, or its deadline has passed; `channel` or `recipient` is missing or not text; `channel` is not `email`; or the signer already signed, their step has not started (sequential signing), or they are not notified by e-mail.
11968
13457
 
11969
13458
  ```json
11970
13459
  {
@@ -11982,7 +13471,7 @@ Example:
11982
13471
  }
11983
13472
  ```
11984
13473
 
11985
- ##### 404 — The requested resource does not exist.
13474
+ ##### 404 — The document doesn't exist, or `recipient` is not one of its signers.
11986
13475
 
11987
13476
  ```json
11988
13477
  {
@@ -12000,6 +13489,24 @@ Example:
12000
13489
  }
12001
13490
  ```
12002
13491
 
13492
+ ##### 429 — The signer was sent their invitation through this route less than two minutes ago; `Retry-After` gives the seconds left.
13493
+
13494
+ ```json
13495
+ {
13496
+ "status": 429,
13497
+ "message": "Bad request.",
13498
+ "data": null,
13499
+ "code": "PlanRestricted",
13500
+ "errors": [
13501
+ {
13502
+ "field": "full_name",
13503
+ "code": "Required",
13504
+ "message": "Full Name cannot be blank."
13505
+ }
13506
+ ]
13507
+ }
13508
+ ```
13509
+
12003
13510
  ##### 500 — Unexpected server error.
12004
13511
 
12005
13512
  ```json
@@ -12056,9 +13563,9 @@ Return the signer identified by the signer access code, including the `has_signa
12056
13563
  "is_signature_reusable": false,
12057
13564
  "verification_method": "Email",
12058
13565
  "resource": "signer",
12059
- "id": "example_id_14",
13566
+ "id": "example_id_10",
12060
13567
  "full_name": "Example User",
12061
- "email": "user3@example.com",
13568
+ "email": "user1@example.com",
12062
13569
  "whatsapp_phone_number": "+5500000000000",
12063
13570
  "government_id": "00000000000",
12064
13571
  "has_accepted_terms": false
@@ -12546,9 +14053,9 @@ Return the document and the signer's assignment items, scoped to the signer acce
12546
14053
  ],
12547
14054
  "completed": false,
12548
14055
  "resource": "signer",
12549
- "id": "example_id_14",
14056
+ "id": "example_id_10",
12550
14057
  "full_name": "Example User",
12551
- "email": "user3@example.com",
14058
+ "email": "user1@example.com",
12552
14059
  "whatsapp_phone_number": "+5500000000000",
12553
14060
  "government_id": "00000000000",
12554
14061
  "has_accepted_terms": false
@@ -12678,7 +14185,7 @@ Return the document and the signer's assignment items, scoped to the signer acce
12678
14185
 
12679
14186
  `GET /v1/sign`
12680
14187
 
12681
- Retrieve the document a signer has been invited to sign, using the signer access code. Marks the document as viewed. The assignment carries only this signer's items, and leaves out the other signers, their signing links (`signing_urls`), the copy receivers and the signing `summary`. The response adds `current_signer`: this signer, with their `verification_method`, `notification_methods` and `completed` (whether they have already signed). Returns 409 while the document is still being prepared (retry with backoff). Once the signer is done (signed, or the document was declined, cancelled, expired or failed; for a document of an envelope, with every document of the envelope they are on) for more than 30 minutes, or the workspace was deleted, the code is closed: this returns only `id`, `name`, `status`, `current_signer` and `certified_copy`, with `is_signer_access_closed: true` (and `envelope`, when asked for), and the signer's other endpoints answer `410`. `certified_copy` says whether the signer can ask for the certified copy again (`POST /v1/sign/certified-copy`): `available`, the `notification_method` it goes on and, for WhatsApp, `resends_left`.
14188
+ Retrieve the document a signer has been invited to sign, using the signer access code. Marks the document as viewed. The assignment carries only this signer's items, and leaves out the other signers, their signing links (`signing_urls`), the copy receivers and the signing `summary`. The response adds `current_signer`: this signer, with their `verification_method`, `notification_methods` and `completed` (whether they have already signed). Returns 409 `DocumentNotReady` while the document is still being prepared (retry with backoff), and 409 `DocumentClosed` once it was declined, cancelled, expired or failed, until the code closes (don't retry). Once the signer is done (signed, or the document was declined, cancelled, expired or failed; for a document of an envelope, with every document of the envelope they are on) for more than 30 minutes, or the workspace was deleted, the code is closed: this returns only `id`, `name`, `status`, `current_signer` and `certified_copy`, with `is_signer_access_closed: true` (and `envelope`, when asked for), and the signer's other endpoints answer `410`. `certified_copy` says whether the signer can ask for the certified copy again (`POST /v1/sign/certified-copy`): `available`, the `notification_method` it goes on and, for WhatsApp, `resends_left`.
12682
14189
 
12683
14190
  **Signers whose verification method is `DigitalCertificate`** must have confirmed their data *and* accepted the terms before this returns the document; otherwise it is `400`. Both are satisfied in one call to `PUT /v1/documents/{documentId}/signers/confirm-data` with `has_accepted_terms: true`, so send that before this endpoint — the `has_accepted_terms` query parameter here is too late to open the gate. `PUT /v1/signers/accept-terms` also works and is never gated.
12684
14191
 
@@ -12706,9 +14213,9 @@ Retrieve the document a signer has been invited to sign, using the signer access
12706
14213
  ],
12707
14214
  "completed": false,
12708
14215
  "resource": "signer",
12709
- "id": "example_id_14",
14216
+ "id": "example_id_10",
12710
14217
  "full_name": "Example User",
12711
- "email": "user3@example.com",
14218
+ "email": "user1@example.com",
12712
14219
  "whatsapp_phone_number": "+5500000000000",
12713
14220
  "government_id": "00000000000",
12714
14221
  "has_accepted_terms": false
@@ -12762,14 +14269,14 @@ Retrieve the document a signer has been invited to sign, using the signer access
12762
14269
  }
12763
14270
  ```
12764
14271
 
12765
- ##### 400 — A digital-certificate signer has not yet confirmed their data or accepted the terms, the signer's step has not started yet (sequential signing), or, with the code of a document of an envelope, `document_id` is no document id.
14272
+ ##### 400 — A digital-certificate signer has not yet confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), the signer's step has not started yet (sequential signing), or, with the code of a document of an envelope, `document_id` is no document id.
12766
14273
 
12767
14274
  ```json
12768
14275
  {
12769
14276
  "status": 400,
12770
14277
  "message": "Bad request.",
12771
- "data": null,
12772
14278
  "code": "PlanRestricted",
14279
+ "data": null,
12773
14280
  "errors": [
12774
14281
  {
12775
14282
  "field": "full_name",
@@ -12798,7 +14305,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
12798
14305
  }
12799
14306
  ```
12800
14307
 
12801
- ##### 409 — The document is not ready to be viewed yet.
14308
+ ##### 409 — `DocumentNotReady`: the document is still being prepared, retry with backoff. `DocumentClosed`: it closed (declined, cancelled, expired or failed) and won't open again, don't retry; the message names its status.
12802
14309
 
12803
14310
  ```json
12804
14311
  {
@@ -12856,7 +14363,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
12856
14363
 
12857
14364
  `POST /v1/documents/{documentId}/assignments/{assignmentId}`
12858
14365
 
12859
- Sign a document with input fields (collect method): submit the signer's item values, completing their items. Signing again after the signer has signed changes nothing and returns the current assignment. For **virtual** assignments the signer must first confirm their data via `PUT /v1/documents/{documentId}/signers/confirm-data`, otherwise this returns `400` (Signer data must be confirmed before signing). Signers whose verification method is `DigitalCertificate` cannot use this endpoint — their signature must be produced through `POST /v1/signers/certificate/start` + `/complete`, and this returns `400`. The request body is a JSON array of item entries. Uses the signer access code. With the code of a document of an envelope, it acts on the signer's request on the document the route names, if that document is in the same envelope, carrying the code's e-mail or WhatsApp verification there.
14366
+ Sign a document with input fields (collect method): submit the signer's item values, completing their items. An item left out is filled when it can be: a read-only field (the signature date) takes its own value and an optional one stays empty; one the signer must give is refused. Signing again after the signer has signed changes nothing and returns `200` with the current assignment, even once that signature closed the document. For **virtual** assignments the signer must first confirm their data via `PUT /v1/documents/{documentId}/signers/confirm-data`, otherwise this returns `400` (Signer data must be confirmed before signing). On a `collect` assignment the signer must have both a `signature` and an `initial` image stored (`POST /v1/signature`), even when the document has no `initial` field; otherwise this returns `400`. Signers whose verification method is `DigitalCertificate` cannot use this endpoint — their signature must be produced through `POST /v1/signers/certificate/start` + `/complete`, and this returns `400`. The request body is a JSON array of item entries; on a `virtual` assignment it is ignored, so send an empty array. Uses the signer access code. With the code of a document of an envelope, it acts on the signer's request on the document the route names, if that document is in the same envelope, carrying the code's e-mail or WhatsApp verification there.
12860
14367
 
12861
14368
  **Authentication:** signer access code (`signer-access-code` query or body parameter).
12862
14369
 
@@ -12902,7 +14409,7 @@ Example:
12902
14409
  }
12903
14410
  ```
12904
14411
 
12905
- ##### 200 — Signing result
14412
+ ##### 200 — Signing result: the assignment as the signer reads it in their list of documents, with no `signing_urls`, only their own `items`, and the other parties' contact details and ID number null.
12906
14413
 
12907
14414
  ```json
12908
14415
  {
@@ -12912,14 +14419,14 @@ Example:
12912
14419
  }
12913
14420
  ```
12914
14421
 
12915
- ##### 400 — Signer data must be confirmed before signing (virtual assignments), the signer must sign with a digital certificate through the digital certificate endpoints, an entry names a page, field or item that is not one of this signer's, or the signer's step has not started yet (sequential signing). Nothing is signed when an entry is refused.
14422
+ ##### 400 — Signer data must be confirmed before signing (virtual assignments; `SignerDataUnconfirmed`), the signer's code was not verified (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not accepted the terms (`TermsNotAccepted`), the signer has no stored `signature` or `initial` image (collect assignments), the signer must sign with a digital certificate through the digital certificate endpoints (`DigitalCertificateRequired`), an entry names a page, field or item that is not one of this signer's, the entries leave out a field the signer must give (named in the message), or the signer's step has not started yet (sequential signing). Nothing is signed when an entry is refused.
12916
14423
 
12917
14424
  ```json
12918
14425
  {
12919
14426
  "status": 400,
12920
14427
  "message": "Bad request.",
12921
- "data": null,
12922
14428
  "code": "PlanRestricted",
14429
+ "data": null,
12923
14430
  "errors": [
12924
14431
  {
12925
14432
  "field": "full_name",
@@ -12948,7 +14455,7 @@ Example:
12948
14455
  }
12949
14456
  ```
12950
14457
 
12951
- ##### 409 — The document is not ready to be signed yet.
14458
+ ##### 409 — `DocumentNotReady`: the document can't be signed now: still being prepared (retry with backoff), held for an identity review, or being certificated. `DocumentClosed`: it closed (declined, cancelled, expired or failed, or certificated) and won't open again, don't retry; the message names its status.
12952
14459
 
12953
14460
  ```json
12954
14461
  {
@@ -13061,7 +14568,7 @@ Example:
13061
14568
  }
13062
14569
  ```
13063
14570
 
13064
- ##### 400 — `decline_reason` is missing or longer than 2000 characters, the assignment or the document is no longer pending, or the signer's step has not started yet (sequential signing).
14571
+ ##### 400 — `decline_reason` is missing or longer than 2000 characters, the assignment or the document is no longer pending, the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`), or the signer's step has not started yet (sequential signing).
13065
14572
 
13066
14573
  ```json
13067
14574
  {
@@ -13152,8 +14659,8 @@ Example:
13152
14659
  ```json
13153
14660
  {
13154
14661
  "document_ids": [
13155
- "example_id_43",
13156
- "example_id_44"
14662
+ "example_id_44",
14663
+ "example_id_45"
13157
14664
  ]
13158
14665
  }
13159
14666
  ```
@@ -13188,14 +14695,14 @@ Example:
13188
14695
  }
13189
14696
  ```
13190
14697
 
13191
- ##### 400 — A listed document is not a virtual document of this signer, is not pending signature, waits for an earlier signing step, or, for the code of a document of an envelope, is not part of that envelope.
14698
+ ##### 400 — A listed document is not a virtual document of this signer, is not pending signature, waits for an earlier signing step, or, for the code of a document of an envelope, is not part of that envelope; the signer must first confirm their data (`SignerDataUnconfirmed`); the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`); a digital-certificate signer has not accepted the terms (`TermsNotAccepted`); or the signer signs with a digital certificate (`DigitalCertificateRequired`).
13192
14699
 
13193
14700
  ```json
13194
14701
  {
13195
14702
  "status": 400,
13196
14703
  "message": "Bad request.",
13197
- "data": null,
13198
14704
  "code": "PlanRestricted",
14705
+ "data": null,
13199
14706
  "errors": [
13200
14707
  {
13201
14708
  "field": "full_name",
@@ -13280,8 +14787,8 @@ Example:
13280
14787
  ```json
13281
14788
  {
13282
14789
  "document_ids": [
13283
- "example_id_43",
13284
- "example_id_44"
14790
+ "example_id_44",
14791
+ "example_id_45"
13285
14792
  ],
13286
14793
  "decline_reason": "Unfavorable terms."
13287
14794
  }
@@ -13317,7 +14824,7 @@ Example:
13317
14824
  }
13318
14825
  ```
13319
14826
 
13320
- ##### 400 — A listed document is not this signer's, is not pending signature, waits for an earlier signing step, or, for the code of a document of an envelope, is not part of that envelope. Nothing is declined.
14827
+ ##### 400 — A listed document is not this signer's, is not pending signature, waits for an earlier signing step, or, for the code of a document of an envelope, is not part of that envelope; or the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`). Nothing is declined.
13321
14828
 
13322
14829
  ```json
13323
14830
  {
@@ -13517,7 +15024,7 @@ Example:
13517
15024
 
13518
15025
  `PUT /v1/documents/{documentId}/signers/confirm-data`
13519
15026
 
13520
- The signer confirms or updates their data before signing. Uses the signer access code. With the code of a document of an envelope, it acts on the signer's request on the document the route names, if that document is in the same envelope, carrying the code's e-mail or WhatsApp verification there. The code's own document, taken out of its envelope, takes the confirmation too while a document of the envelope still awaits signatures: it signs nothing (that document stays cancelled) and opens the reads a certificate or identity-check signer's method gates, so the signer reaches the documents left.
15027
+ The signer confirms or updates their data before signing. Only `email`, `whatsapp_phone_number` and `has_accepted_terms` are read; other keys are ignored. Uses the signer access code. With the code of a document of an envelope, it acts on the signer's request on the document the route names, if that document is in the same envelope, carrying the code's e-mail or WhatsApp verification there. The code's own document, taken out of its envelope, takes the confirmation too while a document of the envelope still awaits signatures: it signs nothing (that document stays cancelled) and opens the reads a certificate or identity-check signer's method gates, so the signer reaches the documents left.
13521
15028
 
13522
15029
  **Authentication:** signer access code (`signer-access-code` query or body parameter).
13523
15030
 
@@ -13593,7 +15100,7 @@ Example:
13593
15100
  }
13594
15101
  ```
13595
15102
 
13596
- ##### 400 — An e-mail or WhatsApp number the signer's methods need is missing, invalid or not theirs, or the signer's step has not started yet (sequential signing).
15103
+ ##### 400 — An e-mail or WhatsApp number the signer's methods need is missing, invalid or not theirs, or the signer's step has not started yet (sequential signing). A newly supplied undeliverable e-mail returns code `InvalidEmail`.
13597
15104
 
13598
15105
  ```json
13599
15106
  {
@@ -13681,7 +15188,7 @@ Record that the signer accepted the terms of use. Uses the signer access code.
13681
15188
  {
13682
15189
  "data": {
13683
15190
  "full_name": "Example User",
13684
- "email": "user3@example.com",
15191
+ "email": "user1@example.com",
13685
15192
  "has_accepted_terms": true
13686
15193
  },
13687
15194
  "status": 200,
@@ -13689,14 +15196,14 @@ Record that the signer accepted the terms of use. Uses the signer access code.
13689
15196
  }
13690
15197
  ```
13691
15198
 
13692
- ##### 400 — The signer's verification is not done yet (e.g. the e-mail code), or the signer's step has not started yet (sequential signing).
15199
+ ##### 400 — The signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`), or the signer's step has not started yet (sequential signing).
13693
15200
 
13694
15201
  ```json
13695
15202
  {
13696
15203
  "status": 400,
13697
15204
  "message": "Bad request.",
13698
- "data": null,
13699
15205
  "code": "PlanRestricted",
15206
+ "data": null,
13700
15207
  "errors": [
13701
15208
  {
13702
15209
  "field": "full_name",
@@ -13747,7 +15254,7 @@ Record that the signer accepted the terms of use. Uses the signer access code.
13747
15254
 
13748
15255
  `POST /v1/signature`
13749
15256
 
13750
- Upload the signer's signature (or initials) image as the raw request body. Uses the signer access code.
15257
+ Upload the signer's signature (or initials) image as the raw request body, a PNG or JPEG file. Uses the signer access code. The image is stored on the signer, one per `type`, and serves all of their documents: an upload replaces the previous image of its type, and a document is stamped with the image stored when it is certificated, so documents signed earlier and not yet certificated get the new one too. An image larger than 1000 px on a side is scaled down to fit; transparency is kept.
13751
15258
 
13752
15259
  **Authentication:** signer access code (`signer-access-code` query or body parameter).
13753
15260
 
@@ -13796,7 +15303,7 @@ Example:
13796
15303
  }
13797
15304
  ```
13798
15305
 
13799
- ##### 400 — The image is not a PNG or JPEG file, or it is blank; or the signer's step has not started yet (sequential signing).
15306
+ ##### 400 — The image is not a PNG or JPEG file (`code` `SignatureImageInvalid`), or it is blank (`SignatureImageBlank`); the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`); or the signer's step has not started yet (sequential signing).
13800
15307
 
13801
15308
  ```json
13802
15309
  {
@@ -13962,7 +15469,7 @@ Download the signer's stored signature/initials image. Uses the signer access co
13962
15469
 
13963
15470
  `GET /v1/signers/{signerId}/documents`
13964
15471
 
13965
- List the documents a signer is party to. Accepts either the signer access code or the account's own credentials (API key or bearer token) — with account credentials, the signer must belong to that account's workspace. With the signer access code, `signerId` must be the code's own signer (otherwise `403`), only documents whose signing step has been reached are listed (for the code of a document of an envelope, only that envelope's documents), and each assignment leaves out `signing_urls`.
15472
+ List the documents a signer is party to. Accepts either the signer access code or the account's own credentials (API key or bearer token) — with account credentials, the signer must belong to that account's workspace. With the signer access code, `signerId` must be the code's own signer (otherwise `403`), only documents whose signing step has been reached are listed (for the code of a document of an envelope, only that envelope's documents), and each assignment leaves out `signing_urls`, has only the signer's own `items`, and gives every other signer and copy receiver, in `signers`, `copy_receivers` and `summary.signers`, with `email`, `whatsapp_phone_number` and `government_id` null, `notification_history` empty, and `identity_verification_status` null where present.
13966
15473
 
13967
15474
  **Authentication:** signer access code (`signer-access-code` query or body parameter) or Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
13968
15475
 
@@ -14081,7 +15588,7 @@ List the documents a signer is party to. Accepts either the signer access code o
14081
15588
  }
14082
15589
  ```
14083
15590
 
14084
- ##### 400 — With a signer access code, the signer's step has not started yet (sequential signing); or `envelope_id` is not text, an entry of `errors`.
15591
+ ##### 400 — With a signer access code, the signer's step has not started yet (sequential signing), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), or a digital-certificate signer has not yet confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`); or `envelope_id` is not text, an entry of `errors`.
14085
15592
 
14086
15593
  ```json
14087
15594
  {
@@ -14248,7 +15755,7 @@ Search the documents a signer is party to (compact representation). Accepts eith
14248
15755
  }
14249
15756
  ```
14250
15757
 
14251
- ##### 400 — With a signer access code, the signer's step has not started yet (sequential signing); or `envelope_id` is not text, an entry of `errors`.
15758
+ ##### 400 — With a signer access code, the signer's step has not started yet (sequential signing), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), or a digital-certificate signer has not yet confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`); or `envelope_id` is not text, an entry of `errors`.
14252
15759
 
14253
15760
  ```json
14254
15761
  {
@@ -14534,7 +16041,7 @@ Example:
14534
16041
  }
14535
16042
  ```
14536
16043
 
14537
- ##### 400 — The signer's step has not started yet (sequential signing), or, with the code of a document of an envelope, `document_id` is no document id.
16044
+ ##### 400 — The signer's step has not started yet (sequential signing), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`), or, with the code of a document of an envelope, `document_id` is no document id.
14538
16045
 
14539
16046
  ```json
14540
16047
  {
@@ -14709,9 +16216,9 @@ List the signers of a workspace.
14709
16216
  "data": [
14710
16217
  {
14711
16218
  "resource": "signer",
14712
- "id": "example_id_14",
16219
+ "id": "example_id_10",
14713
16220
  "full_name": "Example User",
14714
- "email": "user3@example.com",
16221
+ "email": "user1@example.com",
14715
16222
  "whatsapp_phone_number": "+5500000000000",
14716
16223
  "government_id": "00000000000",
14717
16224
  "has_accepted_terms": false
@@ -14762,7 +16269,7 @@ List the signers of a workspace.
14762
16269
 
14763
16270
  `POST /v1/accounts/{accountId}/signers`
14764
16271
 
14765
- Create a signer in the workspace.
16272
+ Create a signer in the workspace. An undeliverable e-mail returns `400` with code `InvalidEmail`.
14766
16273
 
14767
16274
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
14768
16275
 
@@ -14778,7 +16285,7 @@ Fields (`application/json`):
14778
16285
 
14779
16286
  - `full_name` (string, required)
14780
16287
  - `email` (string)
14781
- - `whatsapp_phone_number` (string) — E.164; normalized on save.
16288
+ - `whatsapp_phone_number` (string) — E.164; 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.
14782
16289
  - `government_id` (string) — Signer's CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Formatting is accepted and the value is normalized on save. Required before the signer can use a verification method that identifies them by CPF.
14783
16290
 
14784
16291
  Example:
@@ -14786,7 +16293,7 @@ Example:
14786
16293
  ```json
14787
16294
  {
14788
16295
  "full_name": "Example User",
14789
- "email": "user3@example.com",
16296
+ "email": "user1@example.com",
14790
16297
  "whatsapp_phone_number": "+5500000000000",
14791
16298
  "government_id": "00000000000"
14792
16299
  }
@@ -14800,9 +16307,9 @@ Example:
14800
16307
  {
14801
16308
  "data": {
14802
16309
  "resource": "signer",
14803
- "id": "example_id_14",
16310
+ "id": "example_id_10",
14804
16311
  "full_name": "Example User",
14805
- "email": "user3@example.com",
16312
+ "email": "user1@example.com",
14806
16313
  "whatsapp_phone_number": "+5500000000000",
14807
16314
  "government_id": "00000000000",
14808
16315
  "has_accepted_terms": false
@@ -14889,9 +16396,9 @@ Retrieve a signer's information.
14889
16396
  {
14890
16397
  "data": {
14891
16398
  "resource": "signer",
14892
- "id": "example_id_14",
16399
+ "id": "example_id_10",
14893
16400
  "full_name": "Example User",
14894
- "email": "user3@example.com",
16401
+ "email": "user1@example.com",
14895
16402
  "whatsapp_phone_number": "+5500000000000",
14896
16403
  "government_id": "00000000000",
14897
16404
  "has_accepted_terms": false
@@ -14959,7 +16466,7 @@ Retrieve a signer's information.
14959
16466
 
14960
16467
  `PUT /v1/accounts/{accountId}/signers/{signerId}`
14961
16468
 
14962
- Update a signer's information. Only the fields sent change; send just the ones you are changing.
16469
+ Update a signer's information. Only the fields sent change; send just the ones you are changing. An undeliverable new e-mail returns `400` with code `InvalidEmail`.
14963
16470
 
14964
16471
  **Clearing a field:** `null` or `"` clears `email`, `whatsapp_phone_number` and `government_id` (`whatsapp_phone_number` is stored as `null` either way; the other two keep the value sent). `full_name` cannot be cleared.
14965
16472
 
@@ -14980,7 +16487,7 @@ Fields (`application/json`):
14980
16487
 
14981
16488
  - `full_name` (string)
14982
16489
  - `email` (string) — Can't be changed or cleared while the signer has verified it on an in-flight document, or on a document of an envelope while another of their documents of it is in flight (`400`).
14983
- - `whatsapp_phone_number` (string) — E.164; normalized on save, and compared after normalizing, so the same number in another format is not a change. Can't be changed or cleared while the signer has verified it on an in-flight document, or on a document of an envelope while another of their documents of it is in flight (`400`).
16490
+ - `whatsapp_phone_number` (string) — E.164; normalized on save, and compared after normalizing, so the same number in another format is not a change. 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. Can't be changed or cleared while the signer has verified it on an in-flight document, or on a document of an envelope while another of their documents of it is in flight (`400`).
14984
16491
  - `government_id` (string) — Signer's CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Formatting is accepted and the value is normalized on save.
14985
16492
 
14986
16493
  Example:
@@ -14988,7 +16495,7 @@ Example:
14988
16495
  ```json
14989
16496
  {
14990
16497
  "full_name": "Example User",
14991
- "email": "user3@example.com",
16498
+ "email": "user1@example.com",
14992
16499
  "whatsapp_phone_number": "+5500000000000",
14993
16500
  "government_id": "00000000000"
14994
16501
  }
@@ -15002,9 +16509,9 @@ Example:
15002
16509
  {
15003
16510
  "data": {
15004
16511
  "resource": "signer",
15005
- "id": "example_id_14",
16512
+ "id": "example_id_10",
15006
16513
  "full_name": "Example User",
15007
- "email": "user3@example.com",
16514
+ "email": "user1@example.com",
15008
16515
  "whatsapp_phone_number": "+5500000000000",
15009
16516
  "government_id": "00000000000",
15010
16517
  "has_accepted_terms": false
@@ -15624,7 +17131,7 @@ The `status` field of a template is one of:
15624
17131
  "data": [
15625
17132
  {
15626
17133
  "resource": "template",
15627
- "id": "example_id_45",
17134
+ "id": "example_id_46",
15628
17135
  "name": "template.pdf",
15629
17136
  "document_name": null,
15630
17137
  "message": null,
@@ -16068,14 +17575,14 @@ Retrieve the delivery history for webhooks sent to the account's endpoints — u
16068
17575
  "data": [
16069
17576
  {
16070
17577
  "resource": "activity_dispatching_history",
16071
- "id": "example_id_46",
17578
+ "id": "example_id_47",
16072
17579
  "event": "document_ready",
16073
17580
  "activity_id": 456,
16074
- "endpoint_id": "example_id_47",
17581
+ "endpoint_id": "example_id_48",
16075
17582
  "endpoint": "https://example.com/example-url-21",
16076
17583
  "payload": null,
16077
17584
  "delivered": true,
16078
- "webhook_id": "example_id_48",
17585
+ "webhook_id": "example_id_49",
16079
17586
  "attempt": 2,
16080
17587
  "kind": "scheduled",
16081
17588
  "will_retry": true,
@@ -16151,14 +17658,14 @@ Sends the entry's event to the entry's endpoint once, now, even while the endpoi
16151
17658
  {
16152
17659
  "data": {
16153
17660
  "resource": "activity_dispatching_history",
16154
- "id": "example_id_46",
17661
+ "id": "example_id_47",
16155
17662
  "event": "document_ready",
16156
17663
  "activity_id": 456,
16157
- "endpoint_id": "example_id_47",
17664
+ "endpoint_id": "example_id_48",
16158
17665
  "endpoint": "https://example.com/example-url-21",
16159
17666
  "payload": null,
16160
17667
  "delivered": true,
16161
- "webhook_id": "example_id_48",
17668
+ "webhook_id": "example_id_49",
16162
17669
  "attempt": 2,
16163
17670
  "kind": "scheduled",
16164
17671
  "will_retry": true,
@@ -16270,7 +17777,7 @@ List the account's webhook endpoints, oldest first. Requires the `account:read`
16270
17777
  "data": [
16271
17778
  {
16272
17779
  "resource": "activity_event_subscription",
16273
- "id": "example_id_47",
17780
+ "id": "example_id_48",
16274
17781
  "name": "ERP",
16275
17782
  "url": "https://example.com/example-url-22",
16276
17783
  "email": "user13@example.com",
@@ -16377,7 +17884,7 @@ Example:
16377
17884
  "data": {
16378
17885
  "secret": "example_secret",
16379
17886
  "resource": "activity_event_subscription",
16380
- "id": "example_id_47",
17887
+ "id": "example_id_48",
16381
17888
  "name": "ERP",
16382
17889
  "url": "https://example.com/example-url-22",
16383
17890
  "email": "user13@example.com",
@@ -16591,7 +18098,7 @@ Retrieve one webhook endpoint. Requires the `account:read` OAuth scope.
16591
18098
  {
16592
18099
  "data": {
16593
18100
  "resource": "activity_event_subscription",
16594
- "id": "example_id_47",
18101
+ "id": "example_id_48",
16595
18102
  "name": "ERP",
16596
18103
  "url": "https://example.com/example-url-22",
16597
18104
  "email": "user13@example.com",
@@ -16715,7 +18222,7 @@ Example:
16715
18222
  "data": {
16716
18223
  "secret": "example_secret",
16717
18224
  "resource": "activity_event_subscription",
16718
- "id": "example_id_47",
18225
+ "id": "example_id_48",
16719
18226
  "name": "ERP",
16720
18227
  "url": "https://example.com/example-url-22",
16721
18228
  "email": "user13@example.com",
@@ -17128,14 +18635,14 @@ Sends the endpoint one `webhook_test` event now, signed and sent like any delive
17128
18635
  {
17129
18636
  "data": {
17130
18637
  "resource": "activity_dispatching_history",
17131
- "id": "example_id_46",
18638
+ "id": "example_id_47",
17132
18639
  "event": "document_ready",
17133
18640
  "activity_id": 456,
17134
- "endpoint_id": "example_id_47",
18641
+ "endpoint_id": "example_id_48",
17135
18642
  "endpoint": "https://example.com/example-url-21",
17136
18643
  "payload": null,
17137
18644
  "delivered": true,
17138
- "webhook_id": "example_id_48",
18645
+ "webhook_id": "example_id_49",
17139
18646
  "attempt": 2,
17140
18647
  "kind": "scheduled",
17141
18648
  "will_retry": true,