@assinafy/cli 2.9.1 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ The renderer reuses a generic 400 envelope for several non-400 errors; top-level
7
7
  - OpenAPI: 3.1.0
8
8
  - API document version: 1.0.0
9
9
  - Operations: 147
10
- - Contract SHA-256: `bd1c42d8293167ea95fc5ffcd26730960e37c219dc9a67f224295e6012c3d115`
10
+ - Contract SHA-256: `0ab3e88bbb3b76e7133afc153f12759743969c473bf5329f0eb2974bac201562`
11
11
 
12
12
  ## Accounts
13
13
 
@@ -50,7 +50,6 @@ Retrieve a workspace account the user belongs to.
50
50
  "DigitalCertificate": true,
51
51
  "VerificationIdDocumentFaceMatchBasic": false,
52
52
  "WhatsappNotification": true,
53
- "VerificationBypass": false,
54
53
  "Embed": false
55
54
  },
56
55
  "created_at": "2026-06-03T03:54:16Z"
@@ -168,7 +167,6 @@ Example:
168
167
  "DigitalCertificate": true,
169
168
  "VerificationIdDocumentFaceMatchBasic": false,
170
169
  "WhatsappNotification": true,
171
- "VerificationBypass": false,
172
170
  "Embed": false
173
171
  },
174
172
  "created_at": "2026-06-03T03:54:16Z"
@@ -814,7 +812,6 @@ Called with an OAuth application token, this returns exactly one workspace: the
814
812
  "DigitalCertificate": true,
815
813
  "VerificationIdDocumentFaceMatchBasic": false,
816
814
  "WhatsappNotification": true,
817
- "VerificationBypass": false,
818
815
  "Embed": false
819
816
  },
820
817
  "created_at": "2026-06-03T03:54:16Z"
@@ -865,7 +862,7 @@ Called with an OAuth application token, this returns exactly one workspace: the
865
862
 
866
863
  `POST /v1/accounts`
867
864
 
868
- Create a new workspace account owned by the authenticated user.
865
+ 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
866
 
870
867
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
871
868
 
@@ -909,7 +906,6 @@ Example:
909
906
  "DigitalCertificate": true,
910
907
  "VerificationIdDocumentFaceMatchBasic": false,
911
908
  "WhatsappNotification": true,
912
- "VerificationBypass": false,
913
909
  "Embed": false
914
910
  },
915
911
  "created_at": "2026-06-03T03:54:16Z"
@@ -937,6 +933,24 @@ Example:
937
933
  }
938
934
  ```
939
935
 
936
+ ##### 403 — Authenticated but not allowed to perform this action.
937
+
938
+ ```json
939
+ {
940
+ "status": 403,
941
+ "message": "Bad request.",
942
+ "data": null,
943
+ "code": "PlanRestricted",
944
+ "errors": [
945
+ {
946
+ "field": "full_name",
947
+ "code": "Required",
948
+ "message": "Full Name cannot be blank."
949
+ }
950
+ ]
951
+ }
952
+ ```
953
+
940
954
  ##### 401 — Missing or invalid credentials.
941
955
 
942
956
  ```json
@@ -1220,10 +1234,8 @@ Precomputed per-account document-funnel KPIs. `granularity=monthly` (default) re
1220
1234
  "signature_requests": 61,
1221
1235
  "signature_requests_notification_email": 55,
1222
1236
  "signature_requests_notification_whatsapp": 18,
1223
- "signature_requests_notification_bypass": 3,
1224
1237
  "signature_requests_verification_email": 48,
1225
1238
  "signature_requests_verification_whatsapp": 6,
1226
- "signature_requests_verification_bypass": 3,
1227
1239
  "signature_requests_verification_digital_certificate": 4,
1228
1240
  "signature_requests_viewed": 44,
1229
1241
  "signature_requests_completed": 52,
@@ -2108,7 +2120,7 @@ Get a document by its ID. `decline_reason` is only present when the access token
2108
2120
 
2109
2121
  `DELETE /v1/documents/{documentId}`
2110
2122
 
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.
2123
+ 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
2124
 
2113
2125
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
2114
2126
 
@@ -2388,6 +2400,178 @@ Example:
2388
2400
  }
2389
2401
  ```
2390
2402
 
2403
+ ### Cancel document
2404
+
2405
+ `PUT /v1/documents/{documentId}/cancel`
2406
+
2407
+ 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.
2408
+
2409
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
2410
+
2411
+ #### Parameters
2412
+
2413
+ | Name | In | Type | Required | Description |
2414
+ |---|---|---|---|---|
2415
+ | `documentId` | path | string | yes | Document ID. |
2416
+
2417
+ #### Responses
2418
+
2419
+ ##### 200 — The cancelled document
2420
+
2421
+ ```json
2422
+ {
2423
+ "data": {
2424
+ "resource": "document",
2425
+ "id": "example_id_3",
2426
+ "account_id": "example_id_4",
2427
+ "template_id": null,
2428
+ "name": "document.pdf",
2429
+ "status": "metadata_ready",
2430
+ "artifacts": {
2431
+ "original": "https://example.com/example-url-2"
2432
+ },
2433
+ "is_closed": false,
2434
+ "signing_url": "https://example.com/example-url-3",
2435
+ "verification_code": "example_secret",
2436
+ "verification_url": "https://example.com/example-url-4",
2437
+ "decline_reason": null,
2438
+ "declined_by": null,
2439
+ "tags": [
2440
+ {
2441
+ "id": "example_id_5",
2442
+ "name": "string",
2443
+ "color": "ff8800"
2444
+ }
2445
+ ],
2446
+ "assignment": null,
2447
+ "pages": [
2448
+ {
2449
+ "id": "example_id_6",
2450
+ "number": 1,
2451
+ "height": 2100,
2452
+ "width": 1275,
2453
+ "download_url": "https://example.com/example-url-5"
2454
+ }
2455
+ ],
2456
+ "envelope_id": null,
2457
+ "envelope": null,
2458
+ "has_contract": true,
2459
+ "created_at": "2026-06-03T03:54:16Z",
2460
+ "updated_at": "2026-06-03T03:54:16Z"
2461
+ },
2462
+ "status": 200,
2463
+ "message": ""
2464
+ }
2465
+ ```
2466
+
2467
+ ##### 400 — The document is not out for signature or held for an identity review.
2468
+
2469
+ ```json
2470
+ {
2471
+ "status": 400,
2472
+ "message": "Bad request.",
2473
+ "data": null,
2474
+ "code": "PlanRestricted",
2475
+ "errors": [
2476
+ {
2477
+ "field": "full_name",
2478
+ "code": "Required",
2479
+ "message": "Full Name cannot be blank."
2480
+ }
2481
+ ]
2482
+ }
2483
+ ```
2484
+
2485
+ ##### 403 — Authenticated but not allowed to perform this action.
2486
+
2487
+ ```json
2488
+ {
2489
+ "status": 403,
2490
+ "message": "Bad request.",
2491
+ "data": null,
2492
+ "code": "PlanRestricted",
2493
+ "errors": [
2494
+ {
2495
+ "field": "full_name",
2496
+ "code": "Required",
2497
+ "message": "Full Name cannot be blank."
2498
+ }
2499
+ ]
2500
+ }
2501
+ ```
2502
+
2503
+ ##### 404 — The requested resource does not exist.
2504
+
2505
+ ```json
2506
+ {
2507
+ "status": 404,
2508
+ "message": "Bad request.",
2509
+ "data": null,
2510
+ "code": "PlanRestricted",
2511
+ "errors": [
2512
+ {
2513
+ "field": "full_name",
2514
+ "code": "Required",
2515
+ "message": "Full Name cannot be blank."
2516
+ }
2517
+ ]
2518
+ }
2519
+ ```
2520
+
2521
+ ##### 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`).
2522
+
2523
+ ```json
2524
+ {
2525
+ "status": 409,
2526
+ "code": "PlanRestricted",
2527
+ "message": "Bad request.",
2528
+ "data": null,
2529
+ "errors": [
2530
+ {
2531
+ "field": "full_name",
2532
+ "code": "Required",
2533
+ "message": "Full Name cannot be blank."
2534
+ }
2535
+ ]
2536
+ }
2537
+ ```
2538
+
2539
+ ##### 401 — Missing or invalid credentials.
2540
+
2541
+ ```json
2542
+ {
2543
+ "status": 401,
2544
+ "message": "Bad request.",
2545
+ "data": null,
2546
+ "code": "PlanRestricted",
2547
+ "errors": [
2548
+ {
2549
+ "field": "full_name",
2550
+ "code": "Required",
2551
+ "message": "Full Name cannot be blank."
2552
+ }
2553
+ ]
2554
+ }
2555
+ ```
2556
+
2557
+ ##### 500 — Unexpected server error.
2558
+
2559
+ ```json
2560
+ {
2561
+ "status": 500,
2562
+ "message": "Bad request.",
2563
+ "data": null,
2564
+ "code": "PlanRestricted",
2565
+ "errors": [
2566
+ {
2567
+ "field": "full_name",
2568
+ "code": "Required",
2569
+ "message": "Full Name cannot be blank."
2570
+ }
2571
+ ]
2572
+ }
2573
+ ```
2574
+
2391
2575
  ### Download document artifact
2392
2576
 
2393
2577
  `GET /v1/documents/{documentId}/download/{artifactName}`
@@ -2886,63 +3070,42 @@ Detach a single tag from a document.
2886
3070
  }
2887
3071
  ```
2888
3072
 
2889
- ### Download document thumbnail
3073
+ ### List a document's watchers
2890
3074
 
2891
- `GET /v1/documents/{documentId}/thumbnail`
3075
+ `GET /v1/documents/{documentId}/watchers`
2892
3076
 
2893
- Download the thumbnail image of a document's first page.
3077
+ The contacts set with **Set a document's watchers**, in the order they were set. A deleted contact is left out.
2894
3078
 
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).
3079
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
2896
3080
 
2897
3081
  #### Parameters
2898
3082
 
2899
3083
  | Name | In | Type | Required | Description |
2900
3084
  |---|---|---|---|---|
2901
3085
  | `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
3086
 
2904
3087
  #### Responses
2905
3088
 
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.
3089
+ ##### 200 — The document's watchers
2927
3090
 
2928
3091
  ```json
2929
3092
  {
2930
- "status": 503,
2931
- "message": "Bad request.",
2932
- "data": null,
2933
- "code": "PlanRestricted",
2934
- "errors": [
3093
+ "data": [
2935
3094
  {
2936
- "field": "full_name",
2937
- "code": "Required",
2938
- "message": "Full Name cannot be blank."
3095
+ "resource": "signer",
3096
+ "id": "example_id_10",
3097
+ "full_name": "Example User",
3098
+ "email": "user1@example.com",
3099
+ "whatsapp_phone_number": "+5500000000000",
3100
+ "government_id": "00000000000",
3101
+ "has_accepted_terms": false
2939
3102
  }
2940
- ]
3103
+ ],
3104
+ "status": 200,
3105
+ "message": ""
2941
3106
  }
2942
3107
  ```
2943
3108
 
2944
- ##### 304 — Not modified: the `If-None-Match` or `If-Modified-Since` sent matches the page. No body.
2945
-
2946
3109
  ##### 403 — Authenticated but not allowed to perform this action.
2947
3110
 
2948
3111
  ```json
@@ -2961,29 +3124,20 @@ Download the thumbnail image of a document's first page.
2961
3124
  }
2962
3125
  ```
2963
3126
 
2964
- ##### 400 — With a signer access code: the signer's step has not started yet (sequential signing).
3127
+ ##### 404 — The document is not in the workspace.
2965
3128
 
2966
3129
  ```json
2967
3130
  {
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
- ]
3131
+ "status": 404,
3132
+ "message": "Document not found."
2979
3133
  }
2980
3134
  ```
2981
3135
 
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`).
3136
+ ##### 401 — Missing or invalid credentials.
2983
3137
 
2984
3138
  ```json
2985
3139
  {
2986
- "status": 410,
3140
+ "status": 401,
2987
3141
  "message": "Bad request.",
2988
3142
  "data": null,
2989
3143
  "code": "PlanRestricted",
@@ -2997,11 +3151,11 @@ Download the thumbnail image of a document's first page.
2997
3151
  }
2998
3152
  ```
2999
3153
 
3000
- ##### 401 — Missing or invalid credentials.
3154
+ ##### 500 — Unexpected server error.
3001
3155
 
3002
3156
  ```json
3003
3157
  {
3004
- "status": 401,
3158
+ "status": 500,
3005
3159
  "message": "Bad request.",
3006
3160
  "data": null,
3007
3161
  "code": "PlanRestricted",
@@ -3015,7 +3169,260 @@ Download the thumbnail image of a document's first page.
3015
3169
  }
3016
3170
  ```
3017
3171
 
3018
- ##### 500 — Unexpected server error.
3172
+ ### Set a document's watchers
3173
+
3174
+ `PUT /v1/documents/{documentId}/watchers`
3175
+
3176
+ 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.
3177
+
3178
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
3179
+
3180
+ #### Parameters
3181
+
3182
+ | Name | In | Type | Required | Description |
3183
+ |---|---|---|---|---|
3184
+ | `documentId` | path | string | yes | Document ID. |
3185
+
3186
+ #### Request Body (required)
3187
+
3188
+ Fields (`application/json`):
3189
+
3190
+ - `watcher_ids` (array, required) — Contact ids, as **Create signer** answers them; one given twice counts once.
3191
+
3192
+ Example:
3193
+
3194
+ ```json
3195
+ {
3196
+ "watcher_ids": [
3197
+ "example_id_10"
3198
+ ]
3199
+ }
3200
+ ```
3201
+
3202
+ #### Responses
3203
+
3204
+ ##### 200 — The document's watchers
3205
+
3206
+ ```json
3207
+ {
3208
+ "data": [
3209
+ {
3210
+ "resource": "signer",
3211
+ "id": "example_id_10",
3212
+ "full_name": "Example User",
3213
+ "email": "user1@example.com",
3214
+ "whatsapp_phone_number": "+5500000000000",
3215
+ "government_id": "00000000000",
3216
+ "has_accepted_terms": false
3217
+ }
3218
+ ],
3219
+ "status": 200,
3220
+ "message": ""
3221
+ }
3222
+ ```
3223
+
3224
+ ##### 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).
3225
+
3226
+ ```json
3227
+ {
3228
+ "status": 400,
3229
+ "message": "A document takes at most 10 watchers."
3230
+ }
3231
+ ```
3232
+
3233
+ ##### 403 — Authenticated but not allowed to perform this action.
3234
+
3235
+ ```json
3236
+ {
3237
+ "status": 403,
3238
+ "message": "Bad request.",
3239
+ "data": null,
3240
+ "code": "PlanRestricted",
3241
+ "errors": [
3242
+ {
3243
+ "field": "full_name",
3244
+ "code": "Required",
3245
+ "message": "Full Name cannot be blank."
3246
+ }
3247
+ ]
3248
+ }
3249
+ ```
3250
+
3251
+ ##### 404 — The document is not in the workspace.
3252
+
3253
+ ```json
3254
+ {
3255
+ "status": 404,
3256
+ "message": "Document not found."
3257
+ }
3258
+ ```
3259
+
3260
+ ##### 401 — Missing or invalid credentials.
3261
+
3262
+ ```json
3263
+ {
3264
+ "status": 401,
3265
+ "message": "Bad request.",
3266
+ "data": null,
3267
+ "code": "PlanRestricted",
3268
+ "errors": [
3269
+ {
3270
+ "field": "full_name",
3271
+ "code": "Required",
3272
+ "message": "Full Name cannot be blank."
3273
+ }
3274
+ ]
3275
+ }
3276
+ ```
3277
+
3278
+ ##### 500 — Unexpected server error.
3279
+
3280
+ ```json
3281
+ {
3282
+ "status": 500,
3283
+ "message": "Bad request.",
3284
+ "data": null,
3285
+ "code": "PlanRestricted",
3286
+ "errors": [
3287
+ {
3288
+ "field": "full_name",
3289
+ "code": "Required",
3290
+ "message": "Full Name cannot be blank."
3291
+ }
3292
+ ]
3293
+ }
3294
+ ```
3295
+
3296
+ ### Download document thumbnail
3297
+
3298
+ `GET /v1/documents/{documentId}/thumbnail`
3299
+
3300
+ Download the thumbnail image of a document's first page.
3301
+
3302
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header) or signer access code (`signer-access-code` query or body parameter).
3303
+
3304
+ #### Parameters
3305
+
3306
+ | Name | In | Type | Required | Description |
3307
+ |---|---|---|---|---|
3308
+ | `documentId` | path | string | yes | Document ID. |
3309
+ | `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. |
3310
+
3311
+ #### Responses
3312
+
3313
+ ##### 200 — The thumbnail image
3314
+
3315
+ ##### 404 — The requested resource does not exist.
3316
+
3317
+ ```json
3318
+ {
3319
+ "status": 404,
3320
+ "message": "Bad request.",
3321
+ "data": null,
3322
+ "code": "PlanRestricted",
3323
+ "errors": [
3324
+ {
3325
+ "field": "full_name",
3326
+ "code": "Required",
3327
+ "message": "Full Name cannot be blank."
3328
+ }
3329
+ ]
3330
+ }
3331
+ ```
3332
+
3333
+ ##### 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.
3334
+
3335
+ ```json
3336
+ {
3337
+ "status": 503,
3338
+ "message": "Bad request.",
3339
+ "data": null,
3340
+ "code": "PlanRestricted",
3341
+ "errors": [
3342
+ {
3343
+ "field": "full_name",
3344
+ "code": "Required",
3345
+ "message": "Full Name cannot be blank."
3346
+ }
3347
+ ]
3348
+ }
3349
+ ```
3350
+
3351
+ ##### 304 — Not modified: the `If-None-Match` or `If-Modified-Since` sent matches the page. No body.
3352
+
3353
+ ##### 403 — Authenticated but not allowed to perform this action.
3354
+
3355
+ ```json
3356
+ {
3357
+ "status": 403,
3358
+ "message": "Bad request.",
3359
+ "data": null,
3360
+ "code": "PlanRestricted",
3361
+ "errors": [
3362
+ {
3363
+ "field": "full_name",
3364
+ "code": "Required",
3365
+ "message": "Full Name cannot be blank."
3366
+ }
3367
+ ]
3368
+ }
3369
+ ```
3370
+
3371
+ ##### 400 — With a signer access code: the signer's step has not started yet (sequential signing).
3372
+
3373
+ ```json
3374
+ {
3375
+ "status": 400,
3376
+ "message": "Bad request.",
3377
+ "data": null,
3378
+ "code": "PlanRestricted",
3379
+ "errors": [
3380
+ {
3381
+ "field": "full_name",
3382
+ "code": "Required",
3383
+ "message": "Full Name cannot be blank."
3384
+ }
3385
+ ]
3386
+ }
3387
+ ```
3388
+
3389
+ ##### 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`).
3390
+
3391
+ ```json
3392
+ {
3393
+ "status": 410,
3394
+ "message": "Bad request.",
3395
+ "data": null,
3396
+ "code": "PlanRestricted",
3397
+ "errors": [
3398
+ {
3399
+ "field": "full_name",
3400
+ "code": "Required",
3401
+ "message": "Full Name cannot be blank."
3402
+ }
3403
+ ]
3404
+ }
3405
+ ```
3406
+
3407
+ ##### 401 — Missing or invalid credentials.
3408
+
3409
+ ```json
3410
+ {
3411
+ "status": 401,
3412
+ "message": "Bad request.",
3413
+ "data": null,
3414
+ "code": "PlanRestricted",
3415
+ "errors": [
3416
+ {
3417
+ "field": "full_name",
3418
+ "code": "Required",
3419
+ "message": "Full Name cannot be blank."
3420
+ }
3421
+ ]
3422
+ }
3423
+ ```
3424
+
3425
+ ##### 500 — Unexpected server error.
3019
3426
 
3020
3427
  ```json
3021
3428
  {
@@ -3202,7 +3609,7 @@ Generate a new document from a template. The request is checked (roles, fields,
3202
3609
  Fields (`application/json`):
3203
3610
 
3204
3611
  - `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.
3612
+ - `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
3613
  - `name` (string) — Title for the document. Defaults to the template name.
3207
3614
  - `message` (string) — Optional message sent to signers.
3208
3615
  - `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 +3622,9 @@ Example:
3215
3622
  {
3216
3623
  "signers": [
3217
3624
  {
3218
- "role_id": "example_id_10",
3219
- "id": "example_id_11",
3220
- "email": "user1@example.com",
3625
+ "role_id": "example_id_11",
3626
+ "id": "example_id_12",
3627
+ "email": "user2@example.com",
3221
3628
  "name": "Maria Silva",
3222
3629
  "whatsapp_phone_number": "+5500000000000",
3223
3630
  "verification_method": "Email",
@@ -3230,7 +3637,7 @@ Example:
3230
3637
  ],
3231
3638
  "editor_fields": [
3232
3639
  {
3233
- "field_id": "example_id_12",
3640
+ "field_id": "example_id_13",
3234
3641
  "value": "Field value"
3235
3642
  }
3236
3643
  ],
@@ -3350,7 +3757,7 @@ Example:
3350
3757
  }
3351
3758
  ```
3352
3759
 
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.
3760
+ ##### 403 — The free workspace exceeds its signer limit (`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
3761
 
3355
3762
  ```json
3356
3763
  {
@@ -3431,7 +3838,7 @@ Example:
3431
3838
  {
3432
3839
  "signers": [
3433
3840
  {
3434
- "role_id": "example_id_10",
3841
+ "role_id": "example_id_11",
3435
3842
  "verification_method": "Whatsapp",
3436
3843
  "notification_methods": [
3437
3844
  "Whatsapp"
@@ -3491,7 +3898,7 @@ Example:
3491
3898
  }
3492
3899
  ```
3493
3900
 
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.
3901
+ ##### 403 — The free workspace exceeds its signer limit (`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
3902
 
3496
3903
  ```json
3497
3904
  {
@@ -3591,10 +3998,10 @@ List the workspace's assignments, oldest first. With an OAuth token the workspac
3591
3998
  "data": [
3592
3999
  {
3593
4000
  "resource": "assignment",
3594
- "id": "example_id_13",
4001
+ "id": "example_id_14",
3595
4002
  "document_id": "example_id_3",
3596
4003
  "created_at": "2026-06-03T03:54:16Z",
3597
- "sender_email": "user2@example.com",
4004
+ "sender_email": "user3@example.com",
3598
4005
  "method": "virtual",
3599
4006
  "expires_at": null,
3600
4007
  "message": null,
@@ -3610,9 +4017,9 @@ List the workspace's assignments, oldest first. With an OAuth token the workspac
3610
4017
  "completed": null,
3611
4018
  "notification_history": null,
3612
4019
  "resource": "signer",
3613
- "id": "example_id_14",
4020
+ "id": "example_id_10",
3614
4021
  "full_name": "Example User",
3615
- "email": "user3@example.com",
4022
+ "email": "user1@example.com",
3616
4023
  "whatsapp_phone_number": "+5500000000000",
3617
4024
  "government_id": "00000000000",
3618
4025
  "has_accepted_terms": false
@@ -3948,7 +4355,7 @@ Example — Create with input fields (method: collect):
3948
4355
  "data": {
3949
4356
  "resource": "assignment",
3950
4357
  "id": "example_id_21",
3951
- "sender_email": "user2@example.com",
4358
+ "sender_email": "user3@example.com",
3952
4359
  "method": "virtual",
3953
4360
  "expires_at": "2021-09-30T21:00:00Z",
3954
4361
  "message": null,
@@ -4038,8 +4445,8 @@ Example — Create with input fields (method: collect):
4038
4445
  "message": "",
4039
4446
  "data": {
4040
4447
  "resource": "assignment",
4041
- "id": "example_id_13",
4042
- "sender_email": "user2@example.com",
4448
+ "id": "example_id_14",
4449
+ "sender_email": "user3@example.com",
4043
4450
  "method": "collect",
4044
4451
  "expires_at": "2021-09-30T21:00:00Z",
4045
4452
  "message": null,
@@ -4192,7 +4599,7 @@ Example — Create with input fields (method: collect):
4192
4599
  }
4193
4600
  ```
4194
4601
 
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.
4602
+ ##### 403 — The free workspace exceeds its signer limit (`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
4603
 
4197
4604
  ```json
4198
4605
  {
@@ -4324,6 +4731,7 @@ Example:
4324
4731
  "signers": [
4325
4732
  {
4326
4733
  "verification_method": "Whatsapp",
4734
+ "sign_as": "Sign",
4327
4735
  "notification_methods": [
4328
4736
  "Email"
4329
4737
  ]
@@ -4385,7 +4793,7 @@ Example:
4385
4793
  }
4386
4794
  ```
4387
4795
 
4388
- ##### 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.
4796
+ ##### 403 — The free workspace exceeds its signer limit (`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.
4389
4797
 
4390
4798
  ```json
4391
4799
  {
@@ -4489,7 +4897,7 @@ Resend the signature-request notification to a signer of the assignment who has
4489
4897
  }
4490
4898
  ```
4491
4899
 
4492
- ##### 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.
4900
+ ##### 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.
4493
4901
 
4494
4902
  ```json
4495
4903
  {
@@ -4583,7 +4991,7 @@ Resend the signature-request notification to a signer of the assignment who has
4583
4991
 
4584
4992
  `POST /v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/estimate-resend-cost`
4585
4993
 
4586
- 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.
4994
+ 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`).
4587
4995
 
4588
4996
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
4589
4997
 
@@ -4691,10 +5099,10 @@ Example:
4691
5099
  {
4692
5100
  "data": {
4693
5101
  "resource": "assignment",
4694
- "id": "example_id_13",
5102
+ "id": "example_id_14",
4695
5103
  "document_id": "example_id_3",
4696
5104
  "created_at": "2026-06-03T03:54:16Z",
4697
- "sender_email": "user2@example.com",
5105
+ "sender_email": "user3@example.com",
4698
5106
  "method": "virtual",
4699
5107
  "expires_at": null,
4700
5108
  "message": null,
@@ -4710,9 +5118,9 @@ Example:
4710
5118
  "completed": null,
4711
5119
  "notification_history": null,
4712
5120
  "resource": "signer",
4713
- "id": "example_id_14",
5121
+ "id": "example_id_10",
4714
5122
  "full_name": "Example User",
4715
- "email": "user3@example.com",
5123
+ "email": "user1@example.com",
4716
5124
  "whatsapp_phone_number": "+5500000000000",
4717
5125
  "government_id": "00000000000",
4718
5126
  "has_accepted_terms": false
@@ -5192,11 +5600,11 @@ Example:
5192
5600
  }
5193
5601
  ```
5194
5602
 
5195
- ### List WhatsApp notifications
5603
+ ### Get signer capacities
5196
5604
 
5197
- `GET /v1/documents/{documentId}/assignments/{assignmentId}/whatsapp-notifications`
5605
+ `GET /v1/documents/{documentId}/signer-capacities`
5198
5606
 
5199
- List all WhatsApp notification messages sent for an assignment. The response includes the rendered template text split into `header`, `body` and `buttons` — exactly what the signer would see. In sandbox/stage, WhatsApp messages are simulated (no real delivery) and button URLs include access/verification codes you can use to simulate the signing flow; in production the button URLs are stripped. Requires the `documents:read` OAuth scope.
5607
+ 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.
5200
5608
 
5201
5609
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5202
5610
 
@@ -5205,26 +5613,17 @@ List all WhatsApp notification messages sent for an assignment. The response inc
5205
5613
  | Name | In | Type | Required | Description |
5206
5614
  |---|---|---|---|---|
5207
5615
  | `documentId` | path | string | yes | Document ID. |
5208
- | `assignmentId` | path | string | yes | The assignment ID. |
5209
5616
 
5210
5617
  #### Responses
5211
5618
 
5212
- ##### 200 — WhatsApp notifications
5619
+ ##### 200 — The signers' capacities
5213
5620
 
5214
5621
  ```json
5215
5622
  {
5216
5623
  "data": [
5217
5624
  {
5218
- "sent_at": "2026-07-07T12:00:00Z",
5219
- "header": "Documento para assinatura: Contrato de Servico",
5220
- "body": "string",
5221
- "buttons": [
5222
- {
5223
- "text": "Abrir documento"
5224
- }
5225
- ],
5226
- "phone_number": "+5500000000000",
5227
- "signer_id": "example_id_27"
5625
+ "signer_id": "example_id_15",
5626
+ "sign_as": "Witness"
5228
5627
  }
5229
5628
  ],
5230
5629
  "status": 200,
@@ -5232,333 +5631,11 @@ List all WhatsApp notification messages sent for an assignment. The response inc
5232
5631
  }
5233
5632
  ```
5234
5633
 
5235
- ##### 401 — Missing or invalid credentials.
5236
-
5237
- ```json
5238
- {
5239
- "status": 401,
5240
- "message": "Bad request.",
5241
- "data": null,
5242
- "code": "PlanRestricted",
5243
- "errors": [
5244
- {
5245
- "field": "full_name",
5246
- "code": "Required",
5247
- "message": "Full Name cannot be blank."
5248
- }
5249
- ]
5250
- }
5251
- ```
5252
-
5253
- ##### 500 — Unexpected server error.
5254
-
5255
- ```json
5256
- {
5257
- "status": 500,
5258
- "message": "Bad request.",
5259
- "data": null,
5260
- "code": "PlanRestricted",
5261
- "errors": [
5262
- {
5263
- "field": "full_name",
5264
- "code": "Required",
5265
- "message": "Full Name cannot be blank."
5266
- }
5267
- ]
5268
- }
5269
- ```
5270
-
5271
- ## Authentication
5272
-
5273
- ### Login
5274
-
5275
- `POST /v1/login`
5276
-
5277
- Authenticate with email and password and receive a JWT access token.
5278
-
5279
- **Authentication:** none (public endpoint).
5280
-
5281
- #### Request Body (required)
5282
-
5283
- Fields (`application/json`):
5284
-
5285
- - `email` (string, required)
5286
- - `password` (string, required)
5287
-
5288
- Example:
5289
-
5290
- ```json
5291
- {
5292
- "email": "user8@example.com",
5293
- "password": "example_secret"
5294
- }
5295
- ```
5296
-
5297
- #### Responses
5298
-
5299
- ##### 200 — Access token, user and accounts
5300
-
5301
- ```json
5302
- {
5303
- "data": {
5304
- "access_token": "example_credential",
5305
- "user": {
5306
- "id": "example_id_28",
5307
- "name": "John Smith",
5308
- "email": "user9@example.com",
5309
- "telephone": "+5500000000000",
5310
- "government_id": "00000000000",
5311
- "is_email_verified": false,
5312
- "has_accepted_terms": true,
5313
- "created_at": "2023-03-03T11:51:34Z",
5314
- "to_be_deleted_at": null
5315
- },
5316
- "accounts": [
5317
- {
5318
- "id": "example_id_1",
5319
- "name": "JS",
5320
- "roles": [
5321
- "owner"
5322
- ],
5323
- "is_delete_allowed": true,
5324
- "created_at": "2023-03-03T11:51:34Z"
5325
- }
5326
- ]
5327
- },
5328
- "status": 200,
5329
- "message": ""
5330
- }
5331
- ```
5332
-
5333
- ##### 400 — One or more fields failed validation.
5334
-
5335
- ```json
5336
- {
5337
- "status": 400,
5338
- "message": "Bad request.",
5339
- "data": null,
5340
- "code": "PlanRestricted",
5341
- "errors": [
5342
- {
5343
- "field": "full_name",
5344
- "code": "Required",
5345
- "message": "Full Name cannot be blank."
5346
- }
5347
- ]
5348
- }
5349
- ```
5350
-
5351
- ##### 500 — Unexpected server error.
5352
-
5353
- ```json
5354
- {
5355
- "status": 500,
5356
- "message": "Bad request.",
5357
- "data": null,
5358
- "code": "PlanRestricted",
5359
- "errors": [
5360
- {
5361
- "field": "full_name",
5362
- "code": "Required",
5363
- "message": "Full Name cannot be blank."
5364
- }
5365
- ]
5366
- }
5367
- ```
5368
-
5369
- ### Request password reset
5370
-
5371
- `PUT /v1/authentication/request-password-reset`
5372
-
5373
- 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`.
5374
-
5375
- **Authentication:** none (public endpoint).
5376
-
5377
- #### Request Body (required)
5378
-
5379
- Fields (`application/json`):
5380
-
5381
- - `email` (string, required)
5382
-
5383
- Example:
5384
-
5385
- ```json
5386
- {
5387
- "email": "user8@example.com"
5388
- }
5389
- ```
5390
-
5391
- #### Responses
5392
-
5393
- ##### 200 — Reset email sent
5394
-
5395
- ```json
5396
- {
5397
- "data": {
5398
- "email": "user8@example.com"
5399
- },
5400
- "status": 200,
5401
- "message": ""
5402
- }
5403
- ```
5404
-
5405
- ##### 400 — One or more fields failed validation.
5406
-
5407
- ```json
5408
- {
5409
- "status": 400,
5410
- "message": "Bad request.",
5411
- "data": null,
5412
- "code": "PlanRestricted",
5413
- "errors": [
5414
- {
5415
- "field": "full_name",
5416
- "code": "Required",
5417
- "message": "Full Name cannot be blank."
5418
- }
5419
- ]
5420
- }
5421
- ```
5422
-
5423
- ##### 500 — Unexpected server error.
5424
-
5425
- ```json
5426
- {
5427
- "status": 500,
5428
- "message": "Bad request.",
5429
- "data": null,
5430
- "code": "PlanRestricted",
5431
- "errors": [
5432
- {
5433
- "field": "full_name",
5434
- "code": "Required",
5435
- "message": "Full Name cannot be blank."
5436
- }
5437
- ]
5438
- }
5439
- ```
5440
-
5441
- ### Reset password
5442
-
5443
- `PUT /v1/authentication/reset-password`
5444
-
5445
- 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.
5446
-
5447
- **Authentication:** none (public endpoint).
5448
-
5449
- #### Request Body (required)
5450
-
5451
- Fields (`application/json`):
5452
-
5453
- - `email` (string, required)
5454
- - `token` (string) — Token received by email.
5455
- - `new_password` (string, required)
5456
-
5457
- Example:
5458
-
5459
- ```json
5460
- {
5461
- "email": "user8@example.com",
5462
- "token": "example_secret",
5463
- "new_password": "example_secret"
5464
- }
5465
- ```
5466
-
5467
- #### Responses
5468
-
5469
- ##### 200 — Password reset
5470
-
5471
- ```json
5472
- {
5473
- "data": {
5474
- "email": "user8@example.com"
5475
- },
5476
- "status": 200,
5477
- "message": ""
5478
- }
5479
- ```
5480
-
5481
- ##### 400 — One or more fields failed validation.
5482
-
5483
- ```json
5484
- {
5485
- "status": 400,
5486
- "message": "Bad request.",
5487
- "data": null,
5488
- "code": "PlanRestricted",
5489
- "errors": [
5490
- {
5491
- "field": "full_name",
5492
- "code": "Required",
5493
- "message": "Full Name cannot be blank."
5494
- }
5495
- ]
5496
- }
5497
- ```
5498
-
5499
- ##### 500 — Unexpected server error.
5500
-
5501
- ```json
5502
- {
5503
- "status": 500,
5504
- "message": "Bad request.",
5505
- "data": null,
5506
- "code": "PlanRestricted",
5507
- "errors": [
5508
- {
5509
- "field": "full_name",
5510
- "code": "Required",
5511
- "message": "Full Name cannot be blank."
5512
- }
5513
- ]
5514
- }
5515
- ```
5516
-
5517
- ### Change password
5518
-
5519
- `PUT /v1/authentication/change-password`
5520
-
5521
- Change the authenticated user's password. The body's `email` must be their own address (any letter case); any other address is refused (`403`), whether or not it has an account, and an `email` that is not text answers `400`.
5522
-
5523
- **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5524
-
5525
- #### Request Body (required)
5526
-
5527
- Fields (`application/json`):
5528
-
5529
- - `email` (string, required)
5530
- - `password` (string, required) — The current password.
5531
- - `new_password` (string, required) — The new password.
5532
-
5533
- Example:
5534
-
5535
- ```json
5536
- {
5537
- "email": "user8@example.com",
5538
- "password": "example_secret",
5539
- "new_password": "example_secret"
5540
- }
5541
- ```
5542
-
5543
- #### Responses
5544
-
5545
- ##### 200 — Password changed
5546
-
5547
- ```json
5548
- {
5549
- "data": {
5550
- "email": "user8@example.com"
5551
- },
5552
- "status": 200,
5553
- "message": ""
5554
- }
5555
- ```
5556
-
5557
- ##### 400 — One or more fields failed validation.
5634
+ ##### 403 — Authenticated but not allowed to perform this action.
5558
5635
 
5559
5636
  ```json
5560
5637
  {
5561
- "status": 400,
5638
+ "status": 403,
5562
5639
  "message": "Bad request.",
5563
5640
  "data": null,
5564
5641
  "code": "PlanRestricted",
@@ -5572,21 +5649,12 @@ Example:
5572
5649
  }
5573
5650
  ```
5574
5651
 
5575
- ##### 403 — Authenticated but not allowed to perform this action.
5652
+ ##### 404 — The document is not in the workspace.
5576
5653
 
5577
5654
  ```json
5578
5655
  {
5579
- "status": 403,
5580
- "message": "Bad request.",
5581
- "data": null,
5582
- "code": "PlanRestricted",
5583
- "errors": [
5584
- {
5585
- "field": "full_name",
5586
- "code": "Required",
5587
- "message": "Full Name cannot be blank."
5588
- }
5589
- ]
5656
+ "status": 404,
5657
+ "message": "Document not found."
5590
5658
  }
5591
5659
  ```
5592
5660
 
@@ -5626,91 +5694,53 @@ Example:
5626
5694
  }
5627
5695
  ```
5628
5696
 
5629
- ### Complete a two-factor login
5630
-
5631
- `POST /v1/authentication/mfa/verify`
5632
-
5633
- Exchanges the `mfa_token` returned by login for an access token. `code` is either the 6-digit code from the authenticator app or one of the recovery codes issued at enrollment. The challenge is single-use and expires 5 minutes after login.
5634
-
5635
- **Authentication:** none (public endpoint).
5697
+ ### Get notification history with delivery times
5636
5698
 
5637
- #### Request Body (required)
5699
+ `GET /v1/documents/{documentId}/notification-history`
5638
5700
 
5639
- Fields (`application/json`):
5701
+ 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.
5640
5702
 
5641
- - `mfa_token` (string, required) — The token returned by the login response.
5642
- - `code` (string, required) — A 6-digit authenticator code, or a recovery code such as ABCD-EFGH-JKMN.
5703
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5643
5704
 
5644
- Example:
5705
+ #### Parameters
5645
5706
 
5646
- ```json
5647
- {
5648
- "mfa_token": "example_secret",
5649
- "code": "123456"
5650
- }
5651
- ```
5707
+ | Name | In | Type | Required | Description |
5708
+ |---|---|---|---|---|
5709
+ | `documentId` | path | string | yes | Document ID. |
5652
5710
 
5653
5711
  #### Responses
5654
5712
 
5655
- ##### 200 — Access token, user and accounts
5656
-
5657
- ```json
5658
- {
5659
- "data": {
5660
- "access_token": "example_credential",
5661
- "user": {
5662
- "id": "example_id_28",
5663
- "name": "John Smith",
5664
- "email": "user9@example.com",
5665
- "telephone": "+5500000000000",
5666
- "government_id": "00000000000",
5667
- "is_email_verified": false,
5668
- "has_accepted_terms": true,
5669
- "created_at": "2023-03-03T11:51:34Z",
5670
- "to_be_deleted_at": null
5671
- },
5672
- "accounts": [
5673
- {
5674
- "id": "example_id_1",
5675
- "name": "JS",
5676
- "roles": [
5677
- "owner"
5678
- ],
5679
- "is_delete_allowed": true,
5680
- "created_at": "2023-03-03T11:51:34Z"
5681
- }
5682
- ]
5683
- },
5684
- "status": 200,
5685
- "message": ""
5686
- }
5687
- ```
5688
-
5689
- ##### 400 — One or more fields failed validation.
5713
+ ##### 200 — The signers' notification history
5690
5714
 
5691
5715
  ```json
5692
5716
  {
5693
- "status": 400,
5694
- "message": "Bad request.",
5695
- "data": null,
5696
- "code": "PlanRestricted",
5697
- "errors": [
5698
- {
5699
- "field": "full_name",
5700
- "code": "Required",
5701
- "message": "Full Name cannot be blank."
5717
+ "data": [
5718
+ {
5719
+ "signer_id": "example_id_15",
5720
+ "notification_history": [
5721
+ {
5722
+ "delivered_at": "2026-07-07T12:00:05Z",
5723
+ "opened_at": "2026-07-07T12:30:00Z",
5724
+ "event": "signature_request",
5725
+ "status": "failed",
5726
+ "error_code": "MailboxFull",
5727
+ "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.",
5728
+ "sent_at": "2026-07-07T12:00:00Z",
5729
+ "failed_at": "2026-07-07T12:05:00Z"
5730
+ }
5731
+ ]
5702
5732
  }
5703
- ]
5733
+ ],
5734
+ "status": 200,
5735
+ "message": ""
5704
5736
  }
5705
5737
  ```
5706
5738
 
5707
- ##### 401 — The challenge expired, was already used, or too many codes were tried
5708
-
5709
- ##### 500 — Unexpected server error.
5739
+ ##### 403 — Authenticated but not allowed to perform this action.
5710
5740
 
5711
5741
  ```json
5712
5742
  {
5713
- "status": 500,
5743
+ "status": 403,
5714
5744
  "message": "Bad request.",
5715
5745
  "data": null,
5716
5746
  "code": "PlanRestricted",
@@ -5724,34 +5754,12 @@ Example:
5724
5754
  }
5725
5755
  ```
5726
5756
 
5727
- ### List two-factor methods
5728
-
5729
- `GET /v1/users/self/mfa`
5730
-
5731
- The authenticated user's enrolled two-factor methods and how many recovery codes remain unused.
5732
-
5733
- **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5734
-
5735
- #### Responses
5736
-
5737
- ##### 200 — Enrolled methods
5757
+ ##### 404 — The document is not in the workspace.
5738
5758
 
5739
5759
  ```json
5740
5760
  {
5741
- "data": {
5742
- "methods": [
5743
- {
5744
- "id": "example_id_29",
5745
- "type": "Totp",
5746
- "label": "My phone",
5747
- "confirmed_at": "2026-09-09T14:21:03Z",
5748
- "last_used_at": "2026-09-09T18:02:44Z"
5749
- }
5750
- ],
5751
- "recovery_codes_remaining": 8
5752
- },
5753
- "status": 200,
5754
- "message": ""
5761
+ "status": 404,
5762
+ "message": "Document not found."
5755
5763
  }
5756
5764
  ```
5757
5765
 
@@ -5791,44 +5799,105 @@ The authenticated user's enrolled two-factor methods and how many recovery codes
5791
5799
  }
5792
5800
  ```
5793
5801
 
5794
- ### Start authenticator enrollment
5802
+ ### Schedule an assignment
5795
5803
 
5796
- `POST /v1/users/self/mfa/totp`
5804
+ `POST /v1/documents/{documentId}/scheduled-sends`
5797
5805
 
5798
- Creates an unconfirmed authenticator method and returns the shared secret. The secret is returned only by this call and cannot be retrieved again. Two-factor authentication is not active until the enrollment is confirmed.
5806
+ 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 by default (`403 FreePlanSignerLimit` when the workspace exceeds its limit).
5799
5807
 
5800
5808
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5801
5809
 
5802
- #### Request Body
5810
+ #### Parameters
5811
+
5812
+ | Name | In | Type | Required | Description |
5813
+ |---|---|---|---|---|
5814
+ | `documentId` | path | string | yes | Document ID. |
5815
+
5816
+ #### Request Body (required)
5803
5817
 
5804
5818
  Fields (`application/json`):
5805
5819
 
5806
- - `label` (string)
5820
+ - `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.
5821
+ - `method` (string) — As in **Create assignment**; `virtual` when left out.
5822
+ - `signers` (array, required) — As in **Create assignment**; each must be a contact of the workspace.
5823
+ - `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.
5807
5824
 
5808
5825
  Example:
5809
5826
 
5810
5827
  ```json
5811
5828
  {
5812
- "label": "My phone"
5829
+ "send_at": "2026-11-20T09:00:00-03:00",
5830
+ "method": "virtual",
5831
+ "signers": [
5832
+ {}
5833
+ ],
5834
+ "expires_at": null
5813
5835
  }
5814
5836
  ```
5815
5837
 
5816
5838
  #### Responses
5817
5839
 
5818
- ##### 200 — Enrollment started
5840
+ ##### 200 — The scheduled send
5819
5841
 
5820
5842
  ```json
5821
5843
  {
5822
5844
  "data": {
5823
- "id": "example_id_29",
5824
- "secret": "example_secret",
5825
- "provisioning_uri": "https://example.com/example-url-11"
5845
+ "resource": "scheduled_send",
5846
+ "id": "example_id_27",
5847
+ "type": "assignment",
5848
+ "document_ids": [
5849
+ "example_id_3"
5850
+ ],
5851
+ "status": "pending",
5852
+ "send_at": "2026-11-20T12:00:00Z",
5853
+ "next_attempt_at": null,
5854
+ "assignment_id": null,
5855
+ "envelope_id": null,
5856
+ "failure_reason": null,
5857
+ "created_at": "2026-11-14T18:00:00Z",
5858
+ "processed_at": null
5826
5859
  },
5827
5860
  "status": 200,
5828
5861
  "message": ""
5829
5862
  }
5830
5863
  ```
5831
5864
 
5865
+ ##### 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.
5866
+
5867
+ ```json
5868
+ {
5869
+ "status": 400,
5870
+ "message": "The scheduled send must be at least one hour ahead."
5871
+ }
5872
+ ```
5873
+
5874
+ ##### 403 — The free workspace exceeds its signer limit (`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.
5875
+
5876
+ ```json
5877
+ {
5878
+ "status": 403,
5879
+ "message": "Bad request.",
5880
+ "code": "PlanRestricted",
5881
+ "data": null,
5882
+ "errors": [
5883
+ {
5884
+ "field": "full_name",
5885
+ "code": "Required",
5886
+ "message": "Full Name cannot be blank."
5887
+ }
5888
+ ]
5889
+ }
5890
+ ```
5891
+
5892
+ ##### 404 — The document is not in the workspace, or a signer named is not a contact of it.
5893
+
5894
+ ```json
5895
+ {
5896
+ "status": 404,
5897
+ "message": "Document not found."
5898
+ }
5899
+ ```
5900
+
5832
5901
  ##### 401 — Missing or invalid credentials.
5833
5902
 
5834
5903
  ```json
@@ -5865,58 +5934,76 @@ Example:
5865
5934
  }
5866
5935
  ```
5867
5936
 
5868
- ### Confirm authenticator enrollment
5937
+ ### List scheduled sends
5869
5938
 
5870
- `PUT /v1/users/self/mfa/totp/confirm`
5939
+ `GET /v1/accounts/{accountId}/scheduled-sends`
5871
5940
 
5872
- Activates the method by proving one live code from the NEW device (`code`). Returns the recovery codes, which are shown only once and cannot be retrieved again. From this point every login requires a second factor. If the user already has a confirmed method of the same type, confirming REPLACES it — the old one is soft-deleted and recovery codes are reissued — so this call additionally requires re-authentication via `password` or `reauth_code` (a live code from the CURRENT device, or one of the existing recovery codes), exactly like disabling a method. First-time enrollment needs neither.
5941
+ 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.
5873
5942
 
5874
5943
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5875
5944
 
5876
- #### Request Body (required)
5945
+ #### Parameters
5877
5946
 
5878
- Fields (`application/json`):
5947
+ | Name | In | Type | Required | Description |
5948
+ |---|---|---|---|---|
5949
+ | `accountId` | path | string | yes | Workspace account ID. |
5950
+ | `page` | query | integer | no | Page number. |
5951
+ | `per-page` | query | integer | no | Records per page: 20 by default, at most 50; a larger value answers 50 a page. |
5952
+ | `document_id` | query | string | no | Only the sends of this document. |
5879
5953
 
5880
- - `id` (string, required)
5881
- - `code` (string, required) — Live code from the NEW device being confirmed.
5882
- - `password` (string) — Re-authentication proof, required only when replacing an existing confirmed method.
5883
- - `reauth_code` (string) — Re-authentication proof alternative to password: a live code from the CURRENT device, or a recovery code. Required only when replacing an existing confirmed method.
5954
+ #### Responses
5884
5955
 
5885
- Example:
5956
+ ##### 200 — The workspace's scheduled sends
5886
5957
 
5887
5958
  ```json
5888
5959
  {
5889
- "id": "example_id_29",
5890
- "code": "123456",
5891
- "password": "example_secret",
5892
- "reauth_code": "string"
5960
+ "data": [
5961
+ {
5962
+ "resource": "scheduled_send",
5963
+ "id": "example_id_27",
5964
+ "type": "assignment",
5965
+ "document_ids": [
5966
+ "example_id_3"
5967
+ ],
5968
+ "status": "pending",
5969
+ "send_at": "2026-11-20T12:00:00Z",
5970
+ "next_attempt_at": null,
5971
+ "assignment_id": null,
5972
+ "envelope_id": null,
5973
+ "failure_reason": null,
5974
+ "created_at": "2026-11-14T18:00:00Z",
5975
+ "processed_at": null
5976
+ }
5977
+ ],
5978
+ "status": 200,
5979
+ "message": ""
5893
5980
  }
5894
5981
  ```
5895
5982
 
5896
- #### Responses
5897
-
5898
- ##### 200 — Two-factor enabled
5983
+ ##### 400 — `document_id` not text.
5899
5984
 
5900
5985
  ```json
5901
5986
  {
5902
- "data": {
5903
- "recovery_codes": [
5904
- "ABCD-EFGH-JKMN"
5905
- ]
5906
- },
5907
- "status": 200,
5908
- "message": ""
5987
+ "status": 400,
5988
+ "message": "Give document_id as a document id.",
5989
+ "errors": [
5990
+ {
5991
+ "field": "document_id",
5992
+ "code": "Invalid",
5993
+ "message": "Give document_id as a document id."
5994
+ }
5995
+ ]
5909
5996
  }
5910
5997
  ```
5911
5998
 
5912
- ##### 400 — One or more fields failed validation.
5999
+ ##### 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.
5913
6000
 
5914
6001
  ```json
5915
6002
  {
5916
- "status": 400,
6003
+ "status": 403,
6004
+ "code": "PlanRestricted",
5917
6005
  "message": "Bad request.",
5918
6006
  "data": null,
5919
- "code": "PlanRestricted",
5920
6007
  "errors": [
5921
6008
  {
5922
6009
  "field": "full_name",
@@ -5981,54 +6068,56 @@ Example:
5981
6068
  }
5982
6069
  ```
5983
6070
 
5984
- ### Regenerate recovery codes
6071
+ ### Cancel a scheduled send
5985
6072
 
5986
- `POST /v1/users/self/mfa/recovery-codes`
6073
+ `PUT /v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/cancel`
5987
6074
 
5988
- Issues a fresh set of ten recovery codes and invalidates the previous set. Requires the current password, a live authenticator code, or one of the existing recovery codes (which is then consumed).
6075
+ Cancels a `pending` scheduled send; nothing is sent or charged. A send already being sent, sent, failed or cancelled answers `409`.
5989
6076
 
5990
6077
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
5991
6078
 
5992
- #### Request Body (required)
5993
-
5994
- Fields (`application/json`):
5995
-
5996
- - `password` (string)
5997
- - `code` (string) — A live 6-digit authenticator code, or one of the existing recovery codes.
5998
-
5999
- Example:
6079
+ #### Parameters
6000
6080
 
6001
- ```json
6002
- {
6003
- "password": "example_secret",
6004
- "code": "123456"
6005
- }
6006
- ```
6081
+ | Name | In | Type | Required | Description |
6082
+ |---|---|---|---|---|
6083
+ | `accountId` | path | string | yes | Workspace account ID. |
6084
+ | `scheduledSendId` | path | string | yes | The scheduled send ID. |
6007
6085
 
6008
6086
  #### Responses
6009
6087
 
6010
- ##### 200 — New recovery codes
6088
+ ##### 200 — The cancelled scheduled send
6011
6089
 
6012
6090
  ```json
6013
6091
  {
6014
6092
  "data": {
6015
- "recovery_codes": [
6016
- "ABCD-EFGH-JKMN"
6017
- ]
6093
+ "resource": "scheduled_send",
6094
+ "id": "example_id_27",
6095
+ "type": "assignment",
6096
+ "document_ids": [
6097
+ "example_id_3"
6098
+ ],
6099
+ "status": "pending",
6100
+ "send_at": "2026-11-20T12:00:00Z",
6101
+ "next_attempt_at": null,
6102
+ "assignment_id": null,
6103
+ "envelope_id": null,
6104
+ "failure_reason": null,
6105
+ "created_at": "2026-11-14T18:00:00Z",
6106
+ "processed_at": null
6018
6107
  },
6019
6108
  "status": 200,
6020
6109
  "message": ""
6021
6110
  }
6022
6111
  ```
6023
6112
 
6024
- ##### 400 — One or more fields failed validation.
6113
+ ##### 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.
6025
6114
 
6026
6115
  ```json
6027
6116
  {
6028
- "status": 400,
6117
+ "status": 403,
6118
+ "code": "PlanRestricted",
6029
6119
  "message": "Bad request.",
6030
6120
  "data": null,
6031
- "code": "PlanRestricted",
6032
6121
  "errors": [
6033
6122
  {
6034
6123
  "field": "full_name",
@@ -6039,6 +6128,24 @@ Example:
6039
6128
  }
6040
6129
  ```
6041
6130
 
6131
+ ##### 404 — The workspace does not exist, or the scheduled send is not the workspace's.
6132
+
6133
+ ```json
6134
+ {
6135
+ "status": 404,
6136
+ "message": "Scheduled send not found."
6137
+ }
6138
+ ```
6139
+
6140
+ ##### 409 — Only a `pending` scheduled send can be cancelled.
6141
+
6142
+ ```json
6143
+ {
6144
+ "status": 409,
6145
+ "message": "Only a pending scheduled send can be cancelled."
6146
+ }
6147
+ ```
6148
+
6042
6149
  ##### 401 — Missing or invalid credentials.
6043
6150
 
6044
6151
  ```json
@@ -6075,11 +6182,11 @@ Example:
6075
6182
  }
6076
6183
  ```
6077
6184
 
6078
- ### Remove a two-factor method
6185
+ ### Send a scheduled send now
6079
6186
 
6080
- `DELETE /v1/users/self/mfa/{customId}`
6187
+ `PUT /v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/send`
6081
6188
 
6082
- Removes an enrolled method. Requires the current password, a live authenticator code, or one of the existing recovery codes (which is then consumed), so that a stolen session cannot silently disable two-factor authentication. Removing the last method also discards the recovery codes.
6189
+ 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`.
6083
6190
 
6084
6191
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6085
6192
 
@@ -6087,43 +6194,104 @@ Removes an enrolled method. Requires the current password, a live authenticator
6087
6194
 
6088
6195
  | Name | In | Type | Required | Description |
6089
6196
  |---|---|---|---|---|
6090
- | `customId` | path | string | yes | |
6197
+ | `accountId` | path | string | yes | Workspace account ID. |
6198
+ | `scheduledSendId` | path | string | yes | The scheduled send ID. |
6091
6199
 
6092
- #### Request Body (required)
6200
+ #### Responses
6093
6201
 
6094
- Fields (`application/json`):
6202
+ ##### 200 — The scheduled send, `sent`, with the assignment or envelope it created
6095
6203
 
6096
- - `password` (string)
6097
- - `code` (string) — A live 6-digit authenticator code, or one of the existing recovery codes.
6204
+ ```json
6205
+ {
6206
+ "data": {
6207
+ "resource": "scheduled_send",
6208
+ "id": "example_id_27",
6209
+ "type": "assignment",
6210
+ "document_ids": [
6211
+ "example_id_3"
6212
+ ],
6213
+ "status": "pending",
6214
+ "send_at": "2026-11-20T12:00:00Z",
6215
+ "next_attempt_at": null,
6216
+ "assignment_id": null,
6217
+ "envelope_id": null,
6218
+ "failure_reason": null,
6219
+ "created_at": "2026-11-14T18:00:00Z",
6220
+ "processed_at": null
6221
+ },
6222
+ "status": 200,
6223
+ "message": ""
6224
+ }
6225
+ ```
6098
6226
 
6099
- Example:
6227
+ ##### 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`.
6100
6228
 
6101
6229
  ```json
6102
6230
  {
6103
- "password": "example_secret",
6104
- "code": "123456"
6231
+ "status": 400,
6232
+ "message": "Account does not have enough documents."
6105
6233
  }
6106
6234
  ```
6107
6235
 
6108
- #### Responses
6236
+ ##### 403 — The workspace's plan lacks a feature the request uses (`PlanRestricted`), the free workspace exceeds its signer limit (`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`.
6237
+
6238
+ ```json
6239
+ {
6240
+ "status": 403,
6241
+ "message": "Bad request.",
6242
+ "code": "PlanRestricted",
6243
+ "data": null,
6244
+ "errors": [
6245
+ {
6246
+ "field": "full_name",
6247
+ "code": "Required",
6248
+ "message": "Full Name cannot be blank."
6249
+ }
6250
+ ]
6251
+ }
6252
+ ```
6109
6253
 
6110
- ##### 200 — Method removed
6254
+ ##### 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`.
6111
6255
 
6112
6256
  ```json
6113
6257
  {
6114
- "data": {
6115
- "is_mfa_enabled": false
6116
- },
6117
- "status": 200,
6118
- "message": ""
6258
+ "status": 404,
6259
+ "message": "Scheduled send not found."
6119
6260
  }
6120
6261
  ```
6121
6262
 
6122
- ##### 400 — One or more fields failed validation.
6263
+ ##### 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`.
6123
6264
 
6124
6265
  ```json
6125
6266
  {
6126
- "status": 400,
6267
+ "status": 409,
6268
+ "message": "Only a pending scheduled send can be sent now."
6269
+ }
6270
+ ```
6271
+
6272
+ ##### 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`.
6273
+
6274
+ ```json
6275
+ {
6276
+ "status": 429,
6277
+ "message": "Bad request.",
6278
+ "code": "PlanRestricted",
6279
+ "data": null,
6280
+ "errors": [
6281
+ {
6282
+ "field": "full_name",
6283
+ "code": "Required",
6284
+ "message": "Full Name cannot be blank."
6285
+ }
6286
+ ]
6287
+ }
6288
+ ```
6289
+
6290
+ ##### 401 — Missing or invalid credentials.
6291
+
6292
+ ```json
6293
+ {
6294
+ "status": 401,
6127
6295
  "message": "Bad request.",
6128
6296
  "data": null,
6129
6297
  "code": "PlanRestricted",
@@ -6137,11 +6305,11 @@ Example:
6137
6305
  }
6138
6306
  ```
6139
6307
 
6140
- ##### 404 — The requested resource does not exist.
6308
+ ##### 500 — Unexpected server error.
6141
6309
 
6142
6310
  ```json
6143
6311
  {
6144
- "status": 404,
6312
+ "status": 500,
6145
6313
  "message": "Bad request.",
6146
6314
  "data": null,
6147
6315
  "code": "PlanRestricted",
@@ -6151,7 +6319,47 @@ Example:
6151
6319
  "code": "Required",
6152
6320
  "message": "Full Name cannot be blank."
6153
6321
  }
6154
- ]
6322
+ ]
6323
+ }
6324
+ ```
6325
+
6326
+ ### List WhatsApp notifications
6327
+
6328
+ `GET /v1/documents/{documentId}/assignments/{assignmentId}/whatsapp-notifications`
6329
+
6330
+ List all WhatsApp notification messages sent for an assignment. The response includes the rendered template text split into `header`, `body` and `buttons` — exactly what the signer would see. In sandbox/stage, WhatsApp messages are simulated (no real delivery) and button URLs include access/verification codes you can use to simulate the signing flow; in production the button URLs are stripped. Requires the `documents:read` OAuth scope.
6331
+
6332
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6333
+
6334
+ #### Parameters
6335
+
6336
+ | Name | In | Type | Required | Description |
6337
+ |---|---|---|---|---|
6338
+ | `documentId` | path | string | yes | Document ID. |
6339
+ | `assignmentId` | path | string | yes | The assignment ID. |
6340
+
6341
+ #### Responses
6342
+
6343
+ ##### 200 — WhatsApp notifications
6344
+
6345
+ ```json
6346
+ {
6347
+ "data": [
6348
+ {
6349
+ "sent_at": "2026-07-07T12:00:00Z",
6350
+ "header": "Documento para assinatura: Contrato de Servico",
6351
+ "body": "string",
6352
+ "buttons": [
6353
+ {
6354
+ "text": "Abrir documento"
6355
+ }
6356
+ ],
6357
+ "phone_number": "+5500000000000",
6358
+ "signer_id": "example_id_28"
6359
+ }
6360
+ ],
6361
+ "status": 200,
6362
+ "message": ""
6155
6363
  }
6156
6364
  ```
6157
6365
 
@@ -6191,11 +6399,13 @@ Example:
6191
6399
  }
6192
6400
  ```
6193
6401
 
6194
- ### Social login
6402
+ ## Authentication
6403
+
6404
+ ### Login
6195
6405
 
6196
- `POST /v1/authentication/social-login`
6406
+ `POST /v1/login`
6197
6407
 
6198
- Exchange a token from a social login provider (currently only `google`) for an Assinafy access token.
6408
+ 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.
6199
6409
 
6200
6410
  **Authentication:** none (public endpoint).
6201
6411
 
@@ -6203,17 +6413,15 @@ Exchange a token from a social login provider (currently only `google`) for an A
6203
6413
 
6204
6414
  Fields (`application/json`):
6205
6415
 
6206
- - `provider` (string, required)
6207
- - `token` (string, required) — Access/ID token from the provider.
6208
- - `has_accepted_terms` (boolean, required)
6416
+ - `email` (string, required)
6417
+ - `password` (string, required)
6209
6418
 
6210
6419
  Example:
6211
6420
 
6212
6421
  ```json
6213
6422
  {
6214
- "provider": "google",
6215
- "token": "example_secret",
6216
- "has_accepted_terms": true
6423
+ "email": "user8@example.com",
6424
+ "password": "example_secret"
6217
6425
  }
6218
6426
  ```
6219
6427
 
@@ -6226,7 +6434,7 @@ Example:
6226
6434
  "data": {
6227
6435
  "access_token": "example_credential",
6228
6436
  "user": {
6229
- "id": "example_id_28",
6437
+ "id": "example_id_29",
6230
6438
  "name": "John Smith",
6231
6439
  "email": "user9@example.com",
6232
6440
  "telephone": "+5500000000000",
@@ -6271,6 +6479,24 @@ Example:
6271
6479
  }
6272
6480
  ```
6273
6481
 
6482
+ ##### 403 — Authenticated but not allowed to perform this action.
6483
+
6484
+ ```json
6485
+ {
6486
+ "status": 403,
6487
+ "message": "Bad request.",
6488
+ "data": null,
6489
+ "code": "PlanRestricted",
6490
+ "errors": [
6491
+ {
6492
+ "field": "full_name",
6493
+ "code": "Required",
6494
+ "message": "Full Name cannot be blank."
6495
+ }
6496
+ ]
6497
+ }
6498
+ ```
6499
+
6274
6500
  ##### 500 — Unexpected server error.
6275
6501
 
6276
6502
  ```json
@@ -6289,36 +6515,37 @@ Example:
6289
6515
  }
6290
6516
  ```
6291
6517
 
6292
- ### Link social login
6518
+ ### Request password reset
6293
6519
 
6294
- `POST /v1/auth/link-social-login`
6520
+ `PUT /v1/authentication/request-password-reset`
6295
6521
 
6296
- Link a social-login provider account to the authenticated user.
6522
+ 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`.
6297
6523
 
6298
- **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6524
+ **Authentication:** none (public endpoint).
6299
6525
 
6300
6526
  #### Request Body (required)
6301
6527
 
6302
6528
  Fields (`application/json`):
6303
6529
 
6304
- - `provider` (string, required)
6305
- - `token` (string, required) — Token from the provider.
6530
+ - `email` (string, required)
6306
6531
 
6307
6532
  Example:
6308
6533
 
6309
6534
  ```json
6310
6535
  {
6311
- "provider": "google",
6312
- "token": "example_secret"
6536
+ "email": "user8@example.com"
6313
6537
  }
6314
6538
  ```
6315
6539
 
6316
6540
  #### Responses
6317
6541
 
6318
- ##### 200 — Provider linked
6542
+ ##### 200 — Reset email sent
6319
6543
 
6320
6544
  ```json
6321
6545
  {
6546
+ "data": {
6547
+ "email": "user8@example.com"
6548
+ },
6322
6549
  "status": 200,
6323
6550
  "message": ""
6324
6551
  }
@@ -6342,24 +6569,6 @@ Example:
6342
6569
  }
6343
6570
  ```
6344
6571
 
6345
- ##### 401 — Missing or invalid credentials.
6346
-
6347
- ```json
6348
- {
6349
- "status": 401,
6350
- "message": "Bad request.",
6351
- "data": null,
6352
- "code": "PlanRestricted",
6353
- "errors": [
6354
- {
6355
- "field": "full_name",
6356
- "code": "Required",
6357
- "message": "Full Name cannot be blank."
6358
- }
6359
- ]
6360
- }
6361
- ```
6362
-
6363
6572
  ##### 500 — Unexpected server error.
6364
6573
 
6365
6574
  ```json
@@ -6378,33 +6587,51 @@ Example:
6378
6587
  }
6379
6588
  ```
6380
6589
 
6381
- ### Get API key
6590
+ ### Reset password
6591
+
6592
+ `PUT /v1/authentication/reset-password`
6382
6593
 
6383
- `GET /v1/users/api-keys`
6594
+ 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.
6384
6595
 
6385
- Retrieve a masked version of the existing API key. The full key cannot be retrieved. Returns `null` when no key has been generated yet.
6596
+ **Authentication:** none (public endpoint).
6386
6597
 
6387
- **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6598
+ #### Request Body (required)
6599
+
6600
+ Fields (`application/json`):
6601
+
6602
+ - `email` (string, required)
6603
+ - `token` (string) — Token received by email.
6604
+ - `new_password` (string, required)
6605
+
6606
+ Example:
6607
+
6608
+ ```json
6609
+ {
6610
+ "email": "user8@example.com",
6611
+ "token": "example_secret",
6612
+ "new_password": "example_secret"
6613
+ }
6614
+ ```
6388
6615
 
6389
6616
  #### Responses
6390
6617
 
6391
- ##### 200 — The masked API key
6618
+ ##### 200 — Password reset
6392
6619
 
6393
6620
  ```json
6394
6621
  {
6395
6622
  "data": {
6396
- "api_key": "example_credential"
6623
+ "email": "user8@example.com"
6397
6624
  },
6398
6625
  "status": 200,
6399
6626
  "message": ""
6400
6627
  }
6401
6628
  ```
6402
6629
 
6403
- ##### 401 — Missing or invalid credentials.
6630
+ ##### 400 — One or more fields failed validation.
6404
6631
 
6405
6632
  ```json
6406
6633
  {
6407
- "status": 401,
6634
+ "status": 400,
6408
6635
  "message": "Bad request.",
6409
6636
  "data": null,
6410
6637
  "code": "PlanRestricted",
@@ -6436,11 +6663,11 @@ Retrieve a masked version of the existing API key. The full key cannot be retrie
6436
6663
  }
6437
6664
  ```
6438
6665
 
6439
- ### Create API key
6666
+ ### Change password
6440
6667
 
6441
- `POST /v1/users/api-keys`
6668
+ `PUT /v1/authentication/change-password`
6442
6669
 
6443
- 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.
6670
+ Change the authenticated user's password. The body's `email` must be their own address (any letter case); any other address is refused (`403`), whether or not it has an account, and an `email` that is not text answers `400`.
6444
6671
 
6445
6672
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6446
6673
 
@@ -6448,35 +6675,39 @@ Generate an API key for the user, used via the `X-Api-Key` header. Generating a
6448
6675
 
6449
6676
  Fields (`application/json`):
6450
6677
 
6451
- - `password` (string, required) — The user's password.
6678
+ - `email` (string, required)
6679
+ - `password` (string, required) — The current password.
6680
+ - `new_password` (string, required) — The new password.
6452
6681
 
6453
6682
  Example:
6454
6683
 
6455
6684
  ```json
6456
6685
  {
6457
- "password": "example_secret"
6686
+ "email": "user8@example.com",
6687
+ "password": "example_secret",
6688
+ "new_password": "example_secret"
6458
6689
  }
6459
6690
  ```
6460
6691
 
6461
6692
  #### Responses
6462
6693
 
6463
- ##### 200 — The generated API key (shown in full only once)
6694
+ ##### 200 — Password changed
6464
6695
 
6465
6696
  ```json
6466
6697
  {
6467
6698
  "data": {
6468
- "api_key": "example_credential"
6699
+ "email": "user8@example.com"
6469
6700
  },
6470
6701
  "status": 200,
6471
6702
  "message": ""
6472
6703
  }
6473
6704
  ```
6474
6705
 
6475
- ##### 401 — Missing or invalid credentials.
6706
+ ##### 400 — One or more fields failed validation.
6476
6707
 
6477
6708
  ```json
6478
6709
  {
6479
- "status": 401,
6710
+ "status": 400,
6480
6711
  "message": "Bad request.",
6481
6712
  "data": null,
6482
6713
  "code": "PlanRestricted",
@@ -6490,11 +6721,11 @@ Example:
6490
6721
  }
6491
6722
  ```
6492
6723
 
6493
- ##### 500 — Unexpected server error.
6724
+ ##### 403 — Authenticated but not allowed to perform this action.
6494
6725
 
6495
6726
  ```json
6496
6727
  {
6497
- "status": 500,
6728
+ "status": 403,
6498
6729
  "message": "Bad request.",
6499
6730
  "data": null,
6500
6731
  "code": "PlanRestricted",
@@ -6508,26 +6739,6 @@ Example:
6508
6739
  }
6509
6740
  ```
6510
6741
 
6511
- ### Delete API key
6512
-
6513
- `DELETE /v1/users/api-keys`
6514
-
6515
- Delete the existing API key.
6516
-
6517
- **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
6518
-
6519
- #### Responses
6520
-
6521
- ##### 200 — API key deleted
6522
-
6523
- ```json
6524
- {
6525
- "data": [],
6526
- "status": 200,
6527
- "message": ""
6528
- }
6529
- ```
6530
-
6531
6742
  ##### 401 — Missing or invalid credentials.
6532
6743
 
6533
6744
  ```json
@@ -6672,10 +6883,10 @@ List the contract terms tracked on the workspace's documents, most recently upda
6672
6883
  "name": "Contrato de prestação de serviços.pdf",
6673
6884
  "status": "certificated",
6674
6885
  "artifacts": {
6675
- "original": "https://example.com/example-url-12"
6886
+ "original": "https://example.com/example-url-11"
6676
6887
  },
6677
6888
  "is_closed": true,
6678
- "signing_url": "https://example.com/example-url-13",
6889
+ "signing_url": "https://example.com/example-url-12",
6679
6890
  "verification_code": "example_secret",
6680
6891
  "verification_url": "https://example.com/example-url-4",
6681
6892
  "decline_reason": null,
@@ -7720,7 +7931,7 @@ List the origins allowed to embed the workspace's signing pages, oldest first. R
7720
7931
  "data": [
7721
7932
  {
7722
7933
  "id": "example_id_35",
7723
- "origin": "https://example.com/example-url-14",
7934
+ "origin": "https://example.com/example-url-13",
7724
7935
  "created_at": "2026-11-04T12:05:00Z"
7725
7936
  }
7726
7937
  ],
@@ -7807,7 +8018,7 @@ Example:
7807
8018
 
7808
8019
  ```json
7809
8020
  {
7810
- "origin": "https://example.com/example-url-14"
8021
+ "origin": "https://example.com/example-url-13"
7811
8022
  }
7812
8023
  ```
7813
8024
 
@@ -7819,7 +8030,7 @@ Example:
7819
8030
  {
7820
8031
  "data": {
7821
8032
  "id": "example_id_35",
7822
- "origin": "https://example.com/example-url-14",
8033
+ "origin": "https://example.com/example-url-13",
7823
8034
  "created_at": "2026-11-04T12:05:00Z"
7824
8035
  },
7825
8036
  "status": 200,
@@ -7924,7 +8135,7 @@ Example:
7924
8135
 
7925
8136
  ```json
7926
8137
  {
7927
- "origin": "https://example.com/example-url-14"
8138
+ "origin": "https://example.com/example-url-13"
7928
8139
  }
7929
8140
  ```
7930
8141
 
@@ -7936,7 +8147,7 @@ Example:
7936
8147
  {
7937
8148
  "data": {
7938
8149
  "id": "example_id_35",
7939
- "origin": "https://example.com/example-url-14",
8150
+ "origin": "https://example.com/example-url-13",
7940
8151
  "created_at": "2026-11-04T12:05:00Z"
7941
8152
  },
7942
8153
  "status": 200,
@@ -8156,7 +8367,7 @@ Mint a single-use embed URL for a signer created with `embedded: true`. Load the
8156
8367
  ```json
8157
8368
  {
8158
8369
  "data": {
8159
- "url": "https://example.com/example-url-15",
8370
+ "url": "https://example.com/example-url-14",
8160
8371
  "expires_at": "2026-11-04T12:05:00Z"
8161
8372
  },
8162
8373
  "status": 200,
@@ -8266,7 +8477,7 @@ Example:
8266
8477
 
8267
8478
  ```json
8268
8479
  {
8269
- "parent_origin": "https://example.com/example-url-14"
8480
+ "parent_origin": "https://example.com/example-url-13"
8270
8481
  }
8271
8482
  ```
8272
8483
 
@@ -8282,7 +8493,7 @@ Example:
8282
8493
  "document_id": "example_id_36",
8283
8494
  "verification_method": "Email",
8284
8495
  "embed_origins": [
8285
- "https://example.com/example-url-14"
8496
+ "https://example.com/example-url-13"
8286
8497
  ]
8287
8498
  },
8288
8499
  "status": 200,
@@ -8351,12 +8562,12 @@ The workspace's envelopes, the most recent first: each with its documents in ord
8351
8562
  "name": "contrato.pdf",
8352
8563
  "status": "pending_signature",
8353
8564
  "artifacts": {
8354
- "original": "https://example.com/example-url-16",
8355
- "thumbnail": "https://example.com/example-url-17"
8565
+ "original": "https://example.com/example-url-15",
8566
+ "thumbnail": "https://example.com/example-url-16"
8356
8567
  },
8357
8568
  "signers": [
8358
8569
  {
8359
- "id": "example_id_11",
8570
+ "id": "example_id_12",
8360
8571
  "full_name": "Example User",
8361
8572
  "email": "user10@example.com",
8362
8573
  "whatsapp_phone_number": "+5500000000000",
@@ -8477,7 +8688,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
8477
8688
 
8478
8689
  `POST /v1/accounts/{accountId}/envelopes`
8479
8690
 
8480
- 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.
8691
+ 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 by default (`403 FreePlanSignerLimit` when the workspace exceeds its limit). A refused request creates and charges nothing; `errors` names every field at fault.
8481
8692
 
8482
8693
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
8483
8694
 
@@ -8507,7 +8718,7 @@ Example:
8507
8718
  "max_total_credits": 1.5,
8508
8719
  "signers": [
8509
8720
  {
8510
- "id": "example_id_11",
8721
+ "id": "example_id_12",
8511
8722
  "verification_method": "Email",
8512
8723
  "notification_methods": [
8513
8724
  "Email"
@@ -8540,7 +8751,7 @@ Example:
8540
8751
  }
8541
8752
  ],
8542
8753
  "signer_ids": [
8543
- "example_id_11"
8754
+ "example_id_12"
8544
8755
  ],
8545
8756
  "expires_at": "2026-12-31T23:59:59Z",
8546
8757
  "copy_receiver_ids": [
@@ -8569,12 +8780,12 @@ Example:
8569
8780
  "name": "contrato.pdf",
8570
8781
  "status": "pending_signature",
8571
8782
  "artifacts": {
8572
- "original": "https://example.com/example-url-16",
8573
- "thumbnail": "https://example.com/example-url-17"
8783
+ "original": "https://example.com/example-url-15",
8784
+ "thumbnail": "https://example.com/example-url-16"
8574
8785
  },
8575
8786
  "signers": [
8576
8787
  {
8577
- "id": "example_id_11",
8788
+ "id": "example_id_12",
8578
8789
  "full_name": "Example User",
8579
8790
  "email": "user10@example.com",
8580
8791
  "whatsapp_phone_number": "+5500000000000",
@@ -8602,7 +8813,7 @@ Example:
8602
8813
  }
8603
8814
  ```
8604
8815
 
8605
- ##### 400 — Refused as sent; nothing was created or charged. Each field at fault is an entry of `errors` (a list refused as a whole is not read item by item), an item of a list named by its index (`documents[1].signer_ids`): `name`; `message` (not text); `signers` and `documents` (missing, empty, not a list, or more than 20 signers or 20 documents; `documents` also when its documents hold more than 2,000 fields between them, a virtual document's being one per signer, or more than 100 copy receivers); `signers[i].id` (missing, listed twice, not a signer of the workspace, or on no document); `signers[i].verification_method` (not a code); `signers[i].notification_methods` (not a list of codes); `signers[i].step` (sent at all); `documents[i].id` (missing, listed twice, or a document that can't take the assignment: not found, not `metadata_ready`, or already assigned); `documents[i].method` (other than `virtual` or `collect`); `documents[i].entries` (missing for `collect`, or not a list of pages with fields naming their `signer_id`); `documents[i].expires_at` (not text, a number or null); `documents[i].signer_ids` (missing, not a list of ids, a signer not listed once in `signers`, for `collect` not exactly the signers on its fields, or a digital-certificate signer on a `collect` document or with another signer). A page or field the assignment doesn't find on a `collect` document, a method code the platform doesn't know, a verification and notification that don't pair, a signer without the e-mail or WhatsApp number their method needs, an `embedded` other than `true`, `false`, `1` or `0` (`null` reads as left out, as on an assignment) or set for a signer verified other than by Bypass, Email or WhatsApp, a balance too low for the envelope, 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.
8816
+ ##### 400 — Refused as sent; nothing was created or charged. Each field at fault is an entry of `errors` (a list refused as a whole is not read item by item), an item of a list named by its index (`documents[1].signer_ids`): `name`; `message` (not text); `signers` and `documents` (missing, empty, not a list, or more than 20 signers or 20 documents; `documents` also when its documents hold more than 2,000 fields between them, a virtual document's being one per signer, or more than 100 copy receivers); `signers[i].id` (missing, listed twice, not a signer of the workspace, or on no document); `signers[i].verification_method` (not a code); `signers[i].notification_methods` (not a list of codes); `signers[i].step` (sent at all); `documents[i].id` (missing, listed twice, or a document that can't take the assignment: not found, not `metadata_ready`, or already assigned); `documents[i].method` (other than `virtual` or `collect`); `documents[i].entries` (missing for `collect`, or not a list of pages with fields naming their `signer_id`); `documents[i].expires_at` (not text, a number or null); `documents[i].signer_ids` (missing, not a list of ids, a signer not listed once in `signers`, for `collect` not exactly the signers on its fields, or a digital-certificate signer on a `collect` document or with another signer). A page or field the assignment doesn't find on a `collect` document, a method code the platform doesn't know, a verification and notification that don't pair, a signer without the e-mail or WhatsApp number their method needs, an `embedded` other than `true`, `false`, `1` or `0` (`null` reads as left out, as on an assignment) or set for a signer verified other than by Email or WhatsApp, a balance too low for the envelope, 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.
8606
8817
 
8607
8818
  ```json
8608
8819
  {
@@ -8618,7 +8829,7 @@ Example:
8618
8829
  }
8619
8830
  ```
8620
8831
 
8621
- ##### 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.
8832
+ ##### 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 its signer limit (`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.
8622
8833
 
8623
8834
  ```json
8624
8835
  {
@@ -8743,7 +8954,7 @@ Example:
8743
8954
  "max_total_credits": 1.5,
8744
8955
  "signers": [
8745
8956
  {
8746
- "id": "example_id_11",
8957
+ "id": "example_id_12",
8747
8958
  "verification_method": "Email",
8748
8959
  "notification_methods": [
8749
8960
  "Email"
@@ -8776,7 +8987,7 @@ Example:
8776
8987
  }
8777
8988
  ],
8778
8989
  "signer_ids": [
8779
- "example_id_11"
8990
+ "example_id_12"
8780
8991
  ],
8781
8992
  "expires_at": "2026-12-31T23:59:59Z",
8782
8993
  "copy_receiver_ids": [
@@ -8835,7 +9046,7 @@ Example:
8835
9046
  }
8836
9047
  ```
8837
9048
 
8838
- ##### 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.
9049
+ ##### 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 its signer limit (`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.
8839
9050
 
8840
9051
  ```json
8841
9052
  {
@@ -8940,12 +9151,12 @@ One envelope of the workspace: its documents in order, each with its status and
8940
9151
  "name": "contrato.pdf",
8941
9152
  "status": "pending_signature",
8942
9153
  "artifacts": {
8943
- "original": "https://example.com/example-url-16",
8944
- "thumbnail": "https://example.com/example-url-17"
9154
+ "original": "https://example.com/example-url-15",
9155
+ "thumbnail": "https://example.com/example-url-16"
8945
9156
  },
8946
9157
  "signers": [
8947
9158
  {
8948
- "id": "example_id_11",
9159
+ "id": "example_id_12",
8949
9160
  "full_name": "Example User",
8950
9161
  "email": "user10@example.com",
8951
9162
  "whatsapp_phone_number": "+5500000000000",
@@ -9216,12 +9427,12 @@ Example:
9216
9427
  "name": "contrato.pdf",
9217
9428
  "status": "pending_signature",
9218
9429
  "artifacts": {
9219
- "original": "https://example.com/example-url-16",
9220
- "thumbnail": "https://example.com/example-url-17"
9430
+ "original": "https://example.com/example-url-15",
9431
+ "thumbnail": "https://example.com/example-url-16"
9221
9432
  },
9222
9433
  "signers": [
9223
9434
  {
9224
- "id": "example_id_11",
9435
+ "id": "example_id_12",
9225
9436
  "full_name": "Example User",
9226
9437
  "email": "user10@example.com",
9227
9438
  "whatsapp_phone_number": "+5500000000000",
@@ -9600,7 +9811,129 @@ Cancels every document of the envelope that can still be cancelled, the way dele
9600
9811
  "status": 404,
9601
9812
  "message": "Bad request.",
9602
9813
  "data": null,
9603
- "code": "PlanRestricted",
9814
+ "code": "PlanRestricted",
9815
+ "errors": [
9816
+ {
9817
+ "field": "full_name",
9818
+ "code": "Required",
9819
+ "message": "Full Name cannot be blank."
9820
+ }
9821
+ ]
9822
+ }
9823
+ ```
9824
+
9825
+ ##### 401 — Missing or invalid credentials.
9826
+
9827
+ ```json
9828
+ {
9829
+ "status": 401,
9830
+ "message": "Bad request.",
9831
+ "data": null,
9832
+ "code": "PlanRestricted",
9833
+ "errors": [
9834
+ {
9835
+ "field": "full_name",
9836
+ "code": "Required",
9837
+ "message": "Full Name cannot be blank."
9838
+ }
9839
+ ]
9840
+ }
9841
+ ```
9842
+
9843
+ ##### 500 — Unexpected server error.
9844
+
9845
+ ```json
9846
+ {
9847
+ "status": 500,
9848
+ "message": "Bad request.",
9849
+ "data": null,
9850
+ "code": "PlanRestricted",
9851
+ "errors": [
9852
+ {
9853
+ "field": "full_name",
9854
+ "code": "Required",
9855
+ "message": "Full Name cannot be blank."
9856
+ }
9857
+ ]
9858
+ }
9859
+ ```
9860
+
9861
+ ### Remind envelope signer
9862
+
9863
+ `PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/resend`
9864
+
9865
+ 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.
9866
+
9867
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
9868
+
9869
+ #### Parameters
9870
+
9871
+ | Name | In | Type | Required | Description |
9872
+ |---|---|---|---|---|
9873
+ | `accountId` | path | string | yes | Workspace account ID. |
9874
+ | `envelopeId` | path | string | yes | The envelope ID. |
9875
+ | `signerId` | path | string | yes | The signer ID. |
9876
+
9877
+ #### Responses
9878
+
9879
+ ##### 200 — Reminder result
9880
+
9881
+ ```json
9882
+ {
9883
+ "data": {
9884
+ "is_sent": true,
9885
+ "envelope_id": "example_id_5",
9886
+ "signer_id": "example_id_5"
9887
+ },
9888
+ "status": 200,
9889
+ "message": ""
9890
+ }
9891
+ ```
9892
+
9893
+ ##### 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.
9894
+
9895
+ ```json
9896
+ {
9897
+ "status": 400,
9898
+ "message": "This signer has nothing left to sign in this envelope."
9899
+ }
9900
+ ```
9901
+
9902
+ ##### 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.
9903
+
9904
+ ```json
9905
+ {
9906
+ "status": 403,
9907
+ "code": "PlanRestricted",
9908
+ "message": "Bad request.",
9909
+ "data": null,
9910
+ "errors": [
9911
+ {
9912
+ "field": "full_name",
9913
+ "code": "Required",
9914
+ "message": "Full Name cannot be blank."
9915
+ }
9916
+ ]
9917
+ }
9918
+ ```
9919
+
9920
+ ##### 404 — The envelope was not found, or the signer is not one of its signers.
9921
+
9922
+ ```json
9923
+ {
9924
+ "status": 404,
9925
+ "message": "Signer not found."
9926
+ }
9927
+ ```
9928
+
9929
+ ##### 409 — The envelope is closed: every document of it is signed, declined, cancelled, expired or failed (`EnvelopeClosed`).
9930
+
9931
+ ```json
9932
+ {
9933
+ "status": 409,
9934
+ "code": "PlanRestricted",
9935
+ "message": "Bad request.",
9936
+ "data": null,
9604
9937
  "errors": [
9605
9938
  {
9606
9939
  "field": "full_name",
@@ -9647,11 +9980,11 @@ Cancels every document of the envelope that can still be cancelled, the way dele
9647
9980
  }
9648
9981
  ```
9649
9982
 
9650
- ### Remind envelope signer
9983
+ ### Estimate envelope reminder cost
9651
9984
 
9652
- `PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/resend`
9985
+ `POST /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/estimate-resend-cost`
9653
9986
 
9654
- 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.
9987
+ 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`).
9655
9988
 
9656
9989
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
9657
9990
 
@@ -9665,29 +9998,27 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
9665
9998
 
9666
9999
  #### Responses
9667
10000
 
9668
- ##### 200 — Reminder result
10001
+ ##### 200 — Cost estimate
9669
10002
 
9670
10003
  ```json
9671
10004
  {
9672
10005
  "data": {
9673
- "is_sent": true,
9674
- "envelope_id": "example_id_5",
9675
- "signer_id": "example_id_5"
10006
+ "total": 0.45,
10007
+ "breakdown": [
10008
+ {
10009
+ "code": "NotificationWhatsappResend",
10010
+ "name": "Whatsapp Notification Resend",
10011
+ "cost": 0.45
10012
+ }
10013
+ ],
10014
+ "credit_balance": 10,
10015
+ "has_sufficient_credits": true
9676
10016
  },
9677
10017
  "status": 200,
9678
10018
  "message": ""
9679
10019
  }
9680
10020
  ```
9681
10021
 
9682
- ##### 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.
9683
-
9684
- ```json
9685
- {
9686
- "status": 400,
9687
- "message": "This signer has nothing left to sign in this envelope."
9688
- }
9689
- ```
9690
-
9691
10022
  ##### 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.
9692
10023
 
9693
10024
  ```json
@@ -9715,24 +10046,6 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
9715
10046
  }
9716
10047
  ```
9717
10048
 
9718
- ##### 409 — The envelope is closed: every document of it is signed, declined, cancelled, expired or failed (`EnvelopeClosed`).
9719
-
9720
- ```json
9721
- {
9722
- "status": 409,
9723
- "code": "PlanRestricted",
9724
- "message": "Bad request.",
9725
- "data": null,
9726
- "errors": [
9727
- {
9728
- "field": "full_name",
9729
- "code": "Required",
9730
- "message": "Full Name cannot be blank."
9731
- }
9732
- ]
9733
- }
9734
- ```
9735
-
9736
10049
  ##### 401 — Missing or invalid credentials.
9737
10050
 
9738
10051
  ```json
@@ -9773,7 +10086,7 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
9773
10086
 
9774
10087
  `POST /v1/accounts/{accountId}/envelopes/{envelopeId}/documents`
9775
10088
 
9776
- 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.
10089
+ 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.
9777
10090
 
9778
10091
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
9779
10092
 
@@ -9824,7 +10137,7 @@ Example:
9824
10137
  }
9825
10138
  ],
9826
10139
  "signer_ids": [
9827
- "example_id_11"
10140
+ "example_id_12"
9828
10141
  ],
9829
10142
  "expires_at": "2026-12-31T23:59:59Z",
9830
10143
  "copy_receiver_ids": [
@@ -9851,12 +10164,12 @@ Example:
9851
10164
  "name": "contrato.pdf",
9852
10165
  "status": "pending_signature",
9853
10166
  "artifacts": {
9854
- "original": "https://example.com/example-url-16",
9855
- "thumbnail": "https://example.com/example-url-17"
10167
+ "original": "https://example.com/example-url-15",
10168
+ "thumbnail": "https://example.com/example-url-16"
9856
10169
  },
9857
10170
  "signers": [
9858
10171
  {
9859
- "id": "example_id_11",
10172
+ "id": "example_id_12",
9860
10173
  "full_name": "Example User",
9861
10174
  "email": "user10@example.com",
9862
10175
  "whatsapp_phone_number": "+5500000000000",
@@ -9884,7 +10197,7 @@ Example:
9884
10197
  }
9885
10198
  ```
9886
10199
 
9887
- ##### 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.
10200
+ ##### 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.
9888
10201
 
9889
10202
  ```json
9890
10203
  {
@@ -9900,7 +10213,7 @@ Example:
9900
10213
  }
9901
10214
  ```
9902
10215
 
9903
- ##### 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.
10216
+ ##### 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 its signer limit (`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.
9904
10217
 
9905
10218
  ```json
9906
10219
  {
@@ -10026,12 +10339,12 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
10026
10339
  "name": "contrato.pdf",
10027
10340
  "status": "pending_signature",
10028
10341
  "artifacts": {
10029
- "original": "https://example.com/example-url-16",
10030
- "thumbnail": "https://example.com/example-url-17"
10342
+ "original": "https://example.com/example-url-15",
10343
+ "thumbnail": "https://example.com/example-url-16"
10031
10344
  },
10032
10345
  "signers": [
10033
10346
  {
10034
- "id": "example_id_11",
10347
+ "id": "example_id_12",
10035
10348
  "full_name": "Example User",
10036
10349
  "email": "user10@example.com",
10037
10350
  "whatsapp_phone_number": "+5500000000000",
@@ -10149,6 +10462,193 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
10149
10462
  }
10150
10463
  ```
10151
10464
 
10465
+ ### Schedule an envelope
10466
+
10467
+ `POST /v1/accounts/{accountId}/scheduled-sends`
10468
+
10469
+ 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 the free workspace’s signer limit, `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**).
10470
+
10471
+ **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
10472
+
10473
+ #### Parameters
10474
+
10475
+ | Name | In | Type | Required | Description |
10476
+ |---|---|---|---|---|
10477
+ | `accountId` | path | string | yes | Workspace account ID. |
10478
+
10479
+ #### Request Body (required)
10480
+
10481
+ Fields (`application/json`):
10482
+
10483
+ - `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.
10484
+ - `name` (string, required) — What the invitation calls what is being signed, in place of a document's name. `<` is refused (`400`).
10485
+ - `message` (string | null) — Optional message sent to every signer; their invitation adds the names of the documents they are on.
10486
+ - `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.
10487
+ - `signers` (array, required) — Every signer of the envelope, once, by id: up to 20. They all sign at once: an envelope takes no `step`.
10488
+ - `documents` (array, required) — The documents, in the order the envelope lists them: up to 20.
10489
+
10490
+ Example:
10491
+
10492
+ ```json
10493
+ {
10494
+ "send_at": "2026-11-20T09:00:00-03:00",
10495
+ "name": "Contrato de prestação de serviços",
10496
+ "message": "Segue o contrato e seus anexos.",
10497
+ "max_total_credits": 1.5,
10498
+ "signers": [
10499
+ {
10500
+ "id": "example_id_12",
10501
+ "verification_method": "Email",
10502
+ "notification_methods": [
10503
+ "Email"
10504
+ ],
10505
+ "embedded": true
10506
+ }
10507
+ ],
10508
+ "documents": [
10509
+ {
10510
+ "id": "example_id_3",
10511
+ "method": "virtual",
10512
+ "entries": [
10513
+ {
10514
+ "page_id": "example_id_5",
10515
+ "fields": [
10516
+ {
10517
+ "signer_id": "example_id_5",
10518
+ "field_id": "example_id_5",
10519
+ "display_settings": {
10520
+ "left": 69,
10521
+ "top": 282,
10522
+ "width": 421,
10523
+ "height": 45.86,
10524
+ "fontFamily": "Arial",
10525
+ "fontSize": 22,
10526
+ "backgroundColor": "#D5EBFF"
10527
+ }
10528
+ }
10529
+ ]
10530
+ }
10531
+ ],
10532
+ "signer_ids": [
10533
+ "example_id_12"
10534
+ ],
10535
+ "expires_at": "2026-12-31T23:59:59Z",
10536
+ "copy_receiver_ids": [
10537
+ "example_id_38"
10538
+ ]
10539
+ }
10540
+ ]
10541
+ }
10542
+ ```
10543
+
10544
+ #### Responses
10545
+
10546
+ ##### 200 — The scheduled send
10547
+
10548
+ ```json
10549
+ {
10550
+ "data": {
10551
+ "resource": "scheduled_send",
10552
+ "id": "example_id_27",
10553
+ "type": "assignment",
10554
+ "document_ids": [
10555
+ "example_id_3"
10556
+ ],
10557
+ "status": "pending",
10558
+ "send_at": "2026-11-20T12:00:00Z",
10559
+ "next_attempt_at": null,
10560
+ "assignment_id": null,
10561
+ "envelope_id": null,
10562
+ "failure_reason": null,
10563
+ "created_at": "2026-11-14T18:00:00Z",
10564
+ "processed_at": null
10565
+ },
10566
+ "status": 200,
10567
+ "message": ""
10568
+ }
10569
+ ```
10570
+
10571
+ ##### 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`.
10572
+
10573
+ ```json
10574
+ {
10575
+ "status": 400,
10576
+ "message": "The scheduled send must be at least one hour ahead."
10577
+ }
10578
+ ```
10579
+
10580
+ ##### 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 its signer limit (`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.
10581
+
10582
+ ```json
10583
+ {
10584
+ "status": 403,
10585
+ "code": "PlanRestricted",
10586
+ "message": "Bad request.",
10587
+ "data": null,
10588
+ "errors": [
10589
+ {
10590
+ "field": "full_name",
10591
+ "code": "Required",
10592
+ "message": "Full Name cannot be blank."
10593
+ }
10594
+ ]
10595
+ }
10596
+ ```
10597
+
10598
+ ##### 404 — The requested resource does not exist.
10599
+
10600
+ ```json
10601
+ {
10602
+ "status": 404,
10603
+ "message": "Bad request.",
10604
+ "data": null,
10605
+ "code": "PlanRestricted",
10606
+ "errors": [
10607
+ {
10608
+ "field": "full_name",
10609
+ "code": "Required",
10610
+ "message": "Full Name cannot be blank."
10611
+ }
10612
+ ]
10613
+ }
10614
+ ```
10615
+
10616
+ ##### 401 — Missing or invalid credentials.
10617
+
10618
+ ```json
10619
+ {
10620
+ "status": 401,
10621
+ "message": "Bad request.",
10622
+ "data": null,
10623
+ "code": "PlanRestricted",
10624
+ "errors": [
10625
+ {
10626
+ "field": "full_name",
10627
+ "code": "Required",
10628
+ "message": "Full Name cannot be blank."
10629
+ }
10630
+ ]
10631
+ }
10632
+ ```
10633
+
10634
+ ##### 500 — Unexpected server error.
10635
+
10636
+ ```json
10637
+ {
10638
+ "status": 500,
10639
+ "message": "Bad request.",
10640
+ "data": null,
10641
+ "code": "PlanRestricted",
10642
+ "errors": [
10643
+ {
10644
+ "field": "full_name",
10645
+ "code": "Required",
10646
+ "message": "Full Name cannot be blank."
10647
+ }
10648
+ ]
10649
+ }
10650
+ ```
10651
+
10152
10652
  ## Fields
10153
10653
 
10154
10654
  ### List fields
@@ -10459,7 +10959,7 @@ Fields (`application/json`):
10459
10959
 
10460
10960
  - `name` (string)
10461
10961
  - `regex` (string | null)
10462
- - `is_active` (boolean)
10962
+ - `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.
10463
10963
 
10464
10964
  Example:
10465
10965
 
@@ -10649,7 +11149,7 @@ Validate an input value against a field definition. Typically called with a sign
10649
11149
 
10650
11150
  Fields (`application/json`):
10651
11151
 
10652
- - `value` (object, required) — The input value to validate.
11152
+ - `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.
10653
11153
 
10654
11154
  Example:
10655
11155
 
@@ -11401,10 +11901,8 @@ The authenticated user's document-funnel KPIs summed across all accounts they cu
11401
11901
  "signature_requests": 61,
11402
11902
  "signature_requests_notification_email": 55,
11403
11903
  "signature_requests_notification_whatsapp": 18,
11404
- "signature_requests_notification_bypass": 3,
11405
11904
  "signature_requests_verification_email": 48,
11406
11905
  "signature_requests_verification_whatsapp": 6,
11407
- "signature_requests_verification_bypass": 3,
11408
11906
  "signature_requests_verification_digital_certificate": 4,
11409
11907
  "signature_requests_viewed": 44,
11410
11908
  "signature_requests_completed": 52,
@@ -11485,7 +11983,7 @@ Returns the profile of the user owning the access token. Not available to OAuth
11485
11983
  ```json
11486
11984
  {
11487
11985
  "data": {
11488
- "id": "example_id_28",
11986
+ "id": "example_id_29",
11489
11987
  "name": "John Smith",
11490
11988
  "email": "user9@example.com",
11491
11989
  "telephone": "+5500000000000",
@@ -11585,7 +12083,7 @@ Example:
11585
12083
  {
11586
12084
  "grant_type": "authorization_code",
11587
12085
  "code": "string",
11588
- "redirect_uri": "https://example.com/example-url-18",
12086
+ "redirect_uri": "https://example.com/example-url-17",
11589
12087
  "code_verifier": "string",
11590
12088
  "refresh_token": "example_secret",
11591
12089
  "client_id": "example_id_5",
@@ -11943,7 +12441,7 @@ Retrieve a publicly shared document by ID. Public endpoint.
11943
12441
 
11944
12442
  `PUT /v1/public/documents/{documentId}/send-token`
11945
12443
 
11946
- 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.
12444
+ 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.
11947
12445
 
11948
12446
  **Authentication:** none (public endpoint).
11949
12447
 
@@ -11958,14 +12456,14 @@ Send a one-time access token to a signer of a public document, so they can view
11958
12456
  Fields (`application/json`):
11959
12457
 
11960
12458
  - `channel` (string, required) — Where to send the token. Only `email` is supported.
11961
- - `recipient` (string, required) — The signer's address on that channel — for `email`, the signer's email address.
12459
+ - `recipient` (string, required) — The signer's e-mail address, as text.
11962
12460
 
11963
12461
  Example:
11964
12462
 
11965
12463
  ```json
11966
12464
  {
11967
12465
  "channel": "email",
11968
- "recipient": "user1@example.com"
12466
+ "recipient": "user2@example.com"
11969
12467
  }
11970
12468
  ```
11971
12469
 
@@ -11984,14 +12482,14 @@ Example:
11984
12482
  "created_by": "Jane Doe"
11985
12483
  },
11986
12484
  "channel": "email",
11987
- "recipient": "user1@example.com"
12485
+ "recipient": "user2@example.com"
11988
12486
  },
11989
12487
  "status": 200,
11990
12488
  "message": ""
11991
12489
  }
11992
12490
  ```
11993
12491
 
11994
- ##### 400 — One or more fields failed validation.
12492
+ ##### 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.
11995
12493
 
11996
12494
  ```json
11997
12495
  {
@@ -12009,7 +12507,7 @@ Example:
12009
12507
  }
12010
12508
  ```
12011
12509
 
12012
- ##### 404 — The requested resource does not exist.
12510
+ ##### 404 — The document doesn't exist, or `recipient` is not one of its signers.
12013
12511
 
12014
12512
  ```json
12015
12513
  {
@@ -12027,6 +12525,24 @@ Example:
12027
12525
  }
12028
12526
  ```
12029
12527
 
12528
+ ##### 429 — The signer was sent their invitation through this route less than two minutes ago; `Retry-After` gives the seconds left.
12529
+
12530
+ ```json
12531
+ {
12532
+ "status": 429,
12533
+ "message": "Bad request.",
12534
+ "data": null,
12535
+ "code": "PlanRestricted",
12536
+ "errors": [
12537
+ {
12538
+ "field": "full_name",
12539
+ "code": "Required",
12540
+ "message": "Full Name cannot be blank."
12541
+ }
12542
+ ]
12543
+ }
12544
+ ```
12545
+
12030
12546
  ##### 500 — Unexpected server error.
12031
12547
 
12032
12548
  ```json
@@ -12083,9 +12599,9 @@ Return the signer identified by the signer access code, including the `has_signa
12083
12599
  "is_signature_reusable": false,
12084
12600
  "verification_method": "Email",
12085
12601
  "resource": "signer",
12086
- "id": "example_id_14",
12602
+ "id": "example_id_10",
12087
12603
  "full_name": "Example User",
12088
- "email": "user3@example.com",
12604
+ "email": "user1@example.com",
12089
12605
  "whatsapp_phone_number": "+5500000000000",
12090
12606
  "government_id": "00000000000",
12091
12607
  "has_accepted_terms": false
@@ -12369,7 +12885,7 @@ Current state of the signer's identity document verification. Backfills a pendin
12369
12885
  "data": {
12370
12886
  "can_start": false,
12371
12887
  "status": "Pending",
12372
- "url": "https://example.com/example-url-19",
12888
+ "url": "https://example.com/example-url-18",
12373
12889
  "expires_at": "2026-10-07T21:18:47Z",
12374
12890
  "completed_at": "2026-08-10T20:32:00Z"
12375
12891
  },
@@ -12482,7 +12998,7 @@ Example:
12482
12998
  {
12483
12999
  "data": {
12484
13000
  "id": "example_id_20",
12485
- "url": "https://example.com/example-url-19",
13001
+ "url": "https://example.com/example-url-18",
12486
13002
  "expires_at": "2026-10-07T21:18:47Z"
12487
13003
  },
12488
13004
  "status": 200,
@@ -12573,9 +13089,9 @@ Return the document and the signer's assignment items, scoped to the signer acce
12573
13089
  ],
12574
13090
  "completed": false,
12575
13091
  "resource": "signer",
12576
- "id": "example_id_14",
13092
+ "id": "example_id_10",
12577
13093
  "full_name": "Example User",
12578
- "email": "user3@example.com",
13094
+ "email": "user1@example.com",
12579
13095
  "whatsapp_phone_number": "+5500000000000",
12580
13096
  "government_id": "00000000000",
12581
13097
  "has_accepted_terms": false
@@ -12705,7 +13221,7 @@ Return the document and the signer's assignment items, scoped to the signer acce
12705
13221
 
12706
13222
  `GET /v1/sign`
12707
13223
 
12708
- 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`.
13224
+ 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`.
12709
13225
 
12710
13226
  **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.
12711
13227
 
@@ -12733,9 +13249,9 @@ Retrieve the document a signer has been invited to sign, using the signer access
12733
13249
  ],
12734
13250
  "completed": false,
12735
13251
  "resource": "signer",
12736
- "id": "example_id_14",
13252
+ "id": "example_id_10",
12737
13253
  "full_name": "Example User",
12738
- "email": "user3@example.com",
13254
+ "email": "user1@example.com",
12739
13255
  "whatsapp_phone_number": "+5500000000000",
12740
13256
  "government_id": "00000000000",
12741
13257
  "has_accepted_terms": false
@@ -12789,14 +13305,14 @@ Retrieve the document a signer has been invited to sign, using the signer access
12789
13305
  }
12790
13306
  ```
12791
13307
 
12792
- ##### 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.
13308
+ ##### 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.
12793
13309
 
12794
13310
  ```json
12795
13311
  {
12796
13312
  "status": 400,
12797
13313
  "message": "Bad request.",
12798
- "data": null,
12799
13314
  "code": "PlanRestricted",
13315
+ "data": null,
12800
13316
  "errors": [
12801
13317
  {
12802
13318
  "field": "full_name",
@@ -12825,7 +13341,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
12825
13341
  }
12826
13342
  ```
12827
13343
 
12828
- ##### 409 — The document is not ready to be viewed yet.
13344
+ ##### 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.
12829
13345
 
12830
13346
  ```json
12831
13347
  {
@@ -12883,7 +13399,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
12883
13399
 
12884
13400
  `POST /v1/documents/{documentId}/assignments/{assignmentId}`
12885
13401
 
12886
- 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.
13402
+ 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.
12887
13403
 
12888
13404
  **Authentication:** signer access code (`signer-access-code` query or body parameter).
12889
13405
 
@@ -12929,7 +13445,7 @@ Example:
12929
13445
  }
12930
13446
  ```
12931
13447
 
12932
- ##### 200 — Signing result
13448
+ ##### 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.
12933
13449
 
12934
13450
  ```json
12935
13451
  {
@@ -12939,14 +13455,14 @@ Example:
12939
13455
  }
12940
13456
  ```
12941
13457
 
12942
- ##### 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.
13458
+ ##### 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.
12943
13459
 
12944
13460
  ```json
12945
13461
  {
12946
13462
  "status": 400,
12947
13463
  "message": "Bad request.",
12948
- "data": null,
12949
13464
  "code": "PlanRestricted",
13465
+ "data": null,
12950
13466
  "errors": [
12951
13467
  {
12952
13468
  "field": "full_name",
@@ -12975,7 +13491,7 @@ Example:
12975
13491
  }
12976
13492
  ```
12977
13493
 
12978
- ##### 409 — The document is not ready to be signed yet.
13494
+ ##### 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.
12979
13495
 
12980
13496
  ```json
12981
13497
  {
@@ -13088,7 +13604,7 @@ Example:
13088
13604
  }
13089
13605
  ```
13090
13606
 
13091
- ##### 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).
13607
+ ##### 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).
13092
13608
 
13093
13609
  ```json
13094
13610
  {
@@ -13215,14 +13731,14 @@ Example:
13215
13731
  }
13216
13732
  ```
13217
13733
 
13218
- ##### 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.
13734
+ ##### 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`).
13219
13735
 
13220
13736
  ```json
13221
13737
  {
13222
13738
  "status": 400,
13223
13739
  "message": "Bad request.",
13224
- "data": null,
13225
13740
  "code": "PlanRestricted",
13741
+ "data": null,
13226
13742
  "errors": [
13227
13743
  {
13228
13744
  "field": "full_name",
@@ -13344,7 +13860,7 @@ Example:
13344
13860
  }
13345
13861
  ```
13346
13862
 
13347
- ##### 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.
13863
+ ##### 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.
13348
13864
 
13349
13865
  ```json
13350
13866
  {
@@ -13544,7 +14060,7 @@ Example:
13544
14060
 
13545
14061
  `PUT /v1/documents/{documentId}/signers/confirm-data`
13546
14062
 
13547
- 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.
14063
+ 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.
13548
14064
 
13549
14065
  **Authentication:** signer access code (`signer-access-code` query or body parameter).
13550
14066
 
@@ -13620,7 +14136,7 @@ Example:
13620
14136
  }
13621
14137
  ```
13622
14138
 
13623
- ##### 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).
14139
+ ##### 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`.
13624
14140
 
13625
14141
  ```json
13626
14142
  {
@@ -13708,7 +14224,7 @@ Record that the signer accepted the terms of use. Uses the signer access code.
13708
14224
  {
13709
14225
  "data": {
13710
14226
  "full_name": "Example User",
13711
- "email": "user3@example.com",
14227
+ "email": "user1@example.com",
13712
14228
  "has_accepted_terms": true
13713
14229
  },
13714
14230
  "status": 200,
@@ -13716,14 +14232,14 @@ Record that the signer accepted the terms of use. Uses the signer access code.
13716
14232
  }
13717
14233
  ```
13718
14234
 
13719
- ##### 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).
14235
+ ##### 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).
13720
14236
 
13721
14237
  ```json
13722
14238
  {
13723
14239
  "status": 400,
13724
14240
  "message": "Bad request.",
13725
- "data": null,
13726
14241
  "code": "PlanRestricted",
14242
+ "data": null,
13727
14243
  "errors": [
13728
14244
  {
13729
14245
  "field": "full_name",
@@ -13774,7 +14290,7 @@ Record that the signer accepted the terms of use. Uses the signer access code.
13774
14290
 
13775
14291
  `POST /v1/signature`
13776
14292
 
13777
- Upload the signer's signature (or initials) image as the raw request body. Uses the signer access code.
14293
+ 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.
13778
14294
 
13779
14295
  **Authentication:** signer access code (`signer-access-code` query or body parameter).
13780
14296
 
@@ -13823,7 +14339,7 @@ Example:
13823
14339
  }
13824
14340
  ```
13825
14341
 
13826
- ##### 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).
14342
+ ##### 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).
13827
14343
 
13828
14344
  ```json
13829
14345
  {
@@ -13989,7 +14505,7 @@ Download the signer's stored signature/initials image. Uses the signer access co
13989
14505
 
13990
14506
  `GET /v1/signers/{signerId}/documents`
13991
14507
 
13992
- 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`.
14508
+ 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.
13993
14509
 
13994
14510
  **Authentication:** signer access code (`signer-access-code` query or body parameter) or Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
13995
14511
 
@@ -14108,7 +14624,7 @@ List the documents a signer is party to. Accepts either the signer access code o
14108
14624
  }
14109
14625
  ```
14110
14626
 
14111
- ##### 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`.
14627
+ ##### 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`.
14112
14628
 
14113
14629
  ```json
14114
14630
  {
@@ -14275,7 +14791,7 @@ Search the documents a signer is party to (compact representation). Accepts eith
14275
14791
  }
14276
14792
  ```
14277
14793
 
14278
- ##### 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`.
14794
+ ##### 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`.
14279
14795
 
14280
14796
  ```json
14281
14797
  {
@@ -14561,7 +15077,7 @@ Example:
14561
15077
  }
14562
15078
  ```
14563
15079
 
14564
- ##### 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.
15080
+ ##### 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.
14565
15081
 
14566
15082
  ```json
14567
15083
  {
@@ -14686,7 +15202,7 @@ Used by the page an expired download link leads to. Works with the link's token
14686
15202
 
14687
15203
  ##### 404 — Unknown link.
14688
15204
 
14689
- ##### 409 — Nothing can be sent from here (copy receiver, Bypass signer, no recorded contact, or the document is not certified): ask the sender.
15205
+ ##### 409 — Nothing can be sent from here (copy receiver, no recorded contact, or the document is not certified): ask the sender.
14690
15206
 
14691
15207
  ##### 429 — E-mail: asked again within 2 minutes or more than 10 times in 24 hours. WhatsApp: already re-sent once.
14692
15208
 
@@ -14736,9 +15252,9 @@ List the signers of a workspace.
14736
15252
  "data": [
14737
15253
  {
14738
15254
  "resource": "signer",
14739
- "id": "example_id_14",
15255
+ "id": "example_id_10",
14740
15256
  "full_name": "Example User",
14741
- "email": "user3@example.com",
15257
+ "email": "user1@example.com",
14742
15258
  "whatsapp_phone_number": "+5500000000000",
14743
15259
  "government_id": "00000000000",
14744
15260
  "has_accepted_terms": false
@@ -14789,7 +15305,7 @@ List the signers of a workspace.
14789
15305
 
14790
15306
  `POST /v1/accounts/{accountId}/signers`
14791
15307
 
14792
- Create a signer in the workspace.
15308
+ Create a signer in the workspace. An undeliverable e-mail returns `400` with code `InvalidEmail`.
14793
15309
 
14794
15310
  **Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
14795
15311
 
@@ -14805,7 +15321,7 @@ Fields (`application/json`):
14805
15321
 
14806
15322
  - `full_name` (string, required)
14807
15323
  - `email` (string)
14808
- - `whatsapp_phone_number` (string) — E.164; normalized on save.
15324
+ - `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.
14809
15325
  - `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.
14810
15326
 
14811
15327
  Example:
@@ -14813,7 +15329,7 @@ Example:
14813
15329
  ```json
14814
15330
  {
14815
15331
  "full_name": "Example User",
14816
- "email": "user3@example.com",
15332
+ "email": "user1@example.com",
14817
15333
  "whatsapp_phone_number": "+5500000000000",
14818
15334
  "government_id": "00000000000"
14819
15335
  }
@@ -14827,9 +15343,9 @@ Example:
14827
15343
  {
14828
15344
  "data": {
14829
15345
  "resource": "signer",
14830
- "id": "example_id_14",
15346
+ "id": "example_id_10",
14831
15347
  "full_name": "Example User",
14832
- "email": "user3@example.com",
15348
+ "email": "user1@example.com",
14833
15349
  "whatsapp_phone_number": "+5500000000000",
14834
15350
  "government_id": "00000000000",
14835
15351
  "has_accepted_terms": false
@@ -14916,9 +15432,9 @@ Retrieve a signer's information.
14916
15432
  {
14917
15433
  "data": {
14918
15434
  "resource": "signer",
14919
- "id": "example_id_14",
15435
+ "id": "example_id_10",
14920
15436
  "full_name": "Example User",
14921
- "email": "user3@example.com",
15437
+ "email": "user1@example.com",
14922
15438
  "whatsapp_phone_number": "+5500000000000",
14923
15439
  "government_id": "00000000000",
14924
15440
  "has_accepted_terms": false
@@ -14986,7 +15502,7 @@ Retrieve a signer's information.
14986
15502
 
14987
15503
  `PUT /v1/accounts/{accountId}/signers/{signerId}`
14988
15504
 
14989
- Update a signer's information. Only the fields sent change; send just the ones you are changing.
15505
+ 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`.
14990
15506
 
14991
15507
  **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.
14992
15508
 
@@ -15007,7 +15523,7 @@ Fields (`application/json`):
15007
15523
 
15008
15524
  - `full_name` (string)
15009
15525
  - `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`).
15010
- - `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`).
15526
+ - `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`).
15011
15527
  - `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.
15012
15528
 
15013
15529
  Example:
@@ -15015,7 +15531,7 @@ Example:
15015
15531
  ```json
15016
15532
  {
15017
15533
  "full_name": "Example User",
15018
- "email": "user3@example.com",
15534
+ "email": "user1@example.com",
15019
15535
  "whatsapp_phone_number": "+5500000000000",
15020
15536
  "government_id": "00000000000"
15021
15537
  }
@@ -15029,9 +15545,9 @@ Example:
15029
15545
  {
15030
15546
  "data": {
15031
15547
  "resource": "signer",
15032
- "id": "example_id_14",
15548
+ "id": "example_id_10",
15033
15549
  "full_name": "Example User",
15034
- "email": "user3@example.com",
15550
+ "email": "user1@example.com",
15035
15551
  "whatsapp_phone_number": "+5500000000000",
15036
15552
  "government_id": "00000000000",
15037
15553
  "has_accepted_terms": false
@@ -15662,7 +16178,7 @@ The `status` field of a template is one of:
15662
16178
  "number": 1,
15663
16179
  "height": 2100,
15664
16180
  "width": 1275,
15665
- "download_url": "https://example.com/example-url-18",
16181
+ "download_url": "https://example.com/example-url-17",
15666
16182
  "fields": [
15667
16183
  {
15668
16184
  "id": "example_id_5",
@@ -15772,7 +16288,7 @@ Retrieve the account's oldest webhook endpoint — which events it is subscribed
15772
16288
  "is_active": true,
15773
16289
  "is_held": false,
15774
16290
  "held_since": null,
15775
- "url": "https://example.com/example-url-20",
16291
+ "url": "https://example.com/example-url-19",
15776
16292
  "email": "user12@example.com",
15777
16293
  "updated_at": "2023-05-10T14:58:24Z"
15778
16294
  },
@@ -15849,7 +16365,7 @@ Example:
15849
16365
  "document_prepared"
15850
16366
  ],
15851
16367
  "is_active": true,
15852
- "url": "https://example.com/example-url-20",
16368
+ "url": "https://example.com/example-url-19",
15853
16369
  "email": "user12@example.com"
15854
16370
  }
15855
16371
  ```
@@ -15868,7 +16384,7 @@ Example:
15868
16384
  "is_active": true,
15869
16385
  "is_held": false,
15870
16386
  "held_since": null,
15871
- "url": "https://example.com/example-url-20",
16387
+ "url": "https://example.com/example-url-19",
15872
16388
  "email": "user12@example.com",
15873
16389
  "updated_at": "2023-05-10T14:58:24Z"
15874
16390
  },
@@ -15959,7 +16475,7 @@ Deactivate the account's oldest webhook endpoint. While inactive, no events are
15959
16475
  "is_active": true,
15960
16476
  "is_held": false,
15961
16477
  "held_since": null,
15962
- "url": "https://example.com/example-url-20",
16478
+ "url": "https://example.com/example-url-19",
15963
16479
  "email": "user12@example.com",
15964
16480
  "updated_at": "2023-05-10T14:58:24Z"
15965
16481
  },
@@ -16099,7 +16615,7 @@ Retrieve the delivery history for webhooks sent to the account's endpoints — u
16099
16615
  "event": "document_ready",
16100
16616
  "activity_id": 456,
16101
16617
  "endpoint_id": "example_id_47",
16102
- "endpoint": "https://example.com/example-url-21",
16618
+ "endpoint": "https://example.com/example-url-20",
16103
16619
  "payload": null,
16104
16620
  "delivered": true,
16105
16621
  "webhook_id": "example_id_48",
@@ -16182,7 +16698,7 @@ Sends the entry's event to the entry's endpoint once, now, even while the endpoi
16182
16698
  "event": "document_ready",
16183
16699
  "activity_id": 456,
16184
16700
  "endpoint_id": "example_id_47",
16185
- "endpoint": "https://example.com/example-url-21",
16701
+ "endpoint": "https://example.com/example-url-20",
16186
16702
  "payload": null,
16187
16703
  "delivered": true,
16188
16704
  "webhook_id": "example_id_48",
@@ -16299,7 +16815,7 @@ List the account's webhook endpoints, oldest first. Requires the `account:read`
16299
16815
  "resource": "activity_event_subscription",
16300
16816
  "id": "example_id_47",
16301
16817
  "name": "ERP",
16302
- "url": "https://example.com/example-url-22",
16818
+ "url": "https://example.com/example-url-21",
16303
16819
  "email": "user13@example.com",
16304
16820
  "events": [
16305
16821
  "document_ready",
@@ -16383,7 +16899,7 @@ Example:
16383
16899
 
16384
16900
  ```json
16385
16901
  {
16386
- "url": "https://example.com/example-url-22",
16902
+ "url": "https://example.com/example-url-21",
16387
16903
  "email": "user13@example.com",
16388
16904
  "events": [
16389
16905
  "document_ready",
@@ -16406,7 +16922,7 @@ Example:
16406
16922
  "resource": "activity_event_subscription",
16407
16923
  "id": "example_id_47",
16408
16924
  "name": "ERP",
16409
- "url": "https://example.com/example-url-22",
16925
+ "url": "https://example.com/example-url-21",
16410
16926
  "email": "user13@example.com",
16411
16927
  "events": [
16412
16928
  "document_ready",
@@ -16620,7 +17136,7 @@ Retrieve one webhook endpoint. Requires the `account:read` OAuth scope.
16620
17136
  "resource": "activity_event_subscription",
16621
17137
  "id": "example_id_47",
16622
17138
  "name": "ERP",
16623
- "url": "https://example.com/example-url-22",
17139
+ "url": "https://example.com/example-url-21",
16624
17140
  "email": "user13@example.com",
16625
17141
  "events": [
16626
17142
  "document_ready",
@@ -16722,7 +17238,7 @@ Example:
16722
17238
 
16723
17239
  ```json
16724
17240
  {
16725
- "url": "https://example.com/example-url-22",
17241
+ "url": "https://example.com/example-url-21",
16726
17242
  "email": "user13@example.com",
16727
17243
  "events": [
16728
17244
  "document_ready"
@@ -16744,7 +17260,7 @@ Example:
16744
17260
  "resource": "activity_event_subscription",
16745
17261
  "id": "example_id_47",
16746
17262
  "name": "ERP",
16747
- "url": "https://example.com/example-url-22",
17263
+ "url": "https://example.com/example-url-21",
16748
17264
  "email": "user13@example.com",
16749
17265
  "events": [
16750
17266
  "document_ready",
@@ -17159,7 +17675,7 @@ Sends the endpoint one `webhook_test` event now, signed and sent like any delive
17159
17675
  "event": "document_ready",
17160
17676
  "activity_id": 456,
17161
17677
  "endpoint_id": "example_id_47",
17162
- "endpoint": "https://example.com/example-url-21",
17678
+ "endpoint": "https://example.com/example-url-20",
17163
17679
  "payload": null,
17164
17680
  "delivered": true,
17165
17681
  "webhook_id": "example_id_48",