@assinafy/cli 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +10 -9
- package/README.md +2 -4
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/api.cjs +10 -13
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +10 -13
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +44 -46
- package/dist/types/api/resources/assignments.d.ts +1 -1
- package/dist/types/api/resources/assignments.d.ts.map +1 -1
- package/dist/types/api/resources/authentication.d.ts +1 -3
- package/dist/types/api/resources/authentication.d.ts.map +1 -1
- package/dist/types/api/resources/documents.d.ts +4 -2
- package/dist/types/api/resources/documents.d.ts.map +1 -1
- package/dist/types/api/resources/envelopes.d.ts +2 -2
- package/dist/types/api/resources/envelopes.d.ts.map +1 -1
- package/dist/types/api/resources/scheduled-sends.d.ts +1 -1
- package/dist/types/api/resources/scheduled-sends.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +3 -3
- package/dist/types/api/types.d.ts.map +1 -1
- package/docs/README.md +1 -1
- package/docs/api-operations.json +89 -1
- package/docs/api-reference.md +1821 -341
- package/docs/assignments.md +6 -6
- package/docs/auth.md +3 -16
- package/docs/documents.md +20 -4
- package/docs/envelopes.md +4 -4
- package/docs/scheduled-sends.md +1 -1
- package/docs/sdk-reference.md +14 -14
- package/package.json +1 -1
package/docs/api-reference.md
CHANGED
|
@@ -6,8 +6,8 @@ The renderer reuses a generic 400 envelope for several non-400 errors; top-level
|
|
|
6
6
|
|
|
7
7
|
- OpenAPI: 3.1.0
|
|
8
8
|
- API document version: 1.0.0
|
|
9
|
-
- Operations:
|
|
10
|
-
- Contract SHA-256: `
|
|
9
|
+
- Operations: 158
|
|
10
|
+
- Contract SHA-256: `8300f6ac4d3b348777a60729fb5778d68c3eae260e8454bd7a2f842d322d8f66`
|
|
11
11
|
|
|
12
12
|
## Accounts
|
|
13
13
|
|
|
@@ -865,7 +865,7 @@ Called with an OAuth application token, this returns exactly one workspace: the
|
|
|
865
865
|
|
|
866
866
|
`POST /v1/accounts`
|
|
867
867
|
|
|
868
|
-
Create a
|
|
868
|
+
Create a workspace owned by the authenticated user. Additional workspaces require ownership of a workspace with an active paid subscription or an active user contract.
|
|
869
869
|
|
|
870
870
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
871
871
|
|
|
@@ -937,6 +937,24 @@ Example:
|
|
|
937
937
|
}
|
|
938
938
|
```
|
|
939
939
|
|
|
940
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
941
|
+
|
|
942
|
+
```json
|
|
943
|
+
{
|
|
944
|
+
"status": 403,
|
|
945
|
+
"message": "Bad request.",
|
|
946
|
+
"data": null,
|
|
947
|
+
"code": "PlanRestricted",
|
|
948
|
+
"errors": [
|
|
949
|
+
{
|
|
950
|
+
"field": "full_name",
|
|
951
|
+
"code": "Required",
|
|
952
|
+
"message": "Full Name cannot be blank."
|
|
953
|
+
}
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
```
|
|
957
|
+
|
|
940
958
|
##### 401 — Missing or invalid credentials.
|
|
941
959
|
|
|
942
960
|
```json
|
|
@@ -2108,7 +2126,7 @@ Get a document by its ID. `decline_reason` is only present when the access token
|
|
|
2108
2126
|
|
|
2109
2127
|
`DELETE /v1/documents/{documentId}`
|
|
2110
2128
|
|
|
2111
|
-
Delete a document by its ID. Only documents in a deletable status can be removed (see GET /v1/documents/statuses). A document of an envelope, or one taken out of it, can't be deleted while any of the envelope's documents is open: cancel the envelope (`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/cancel`) first.
|
|
2129
|
+
Delete a document by its ID. Only documents in a deletable status can be removed (see GET /v1/documents/statuses). A document out for signature (`pending_signature`) or held for an identity review (`pending_identity_review`) is cancelled first, as `PUT /v1/documents/{documentId}/cancel` cancels it: its signers and owner are told, and the cancellation is recorded. To cancel it and keep it, use that route instead. A document of an envelope, or one taken out of it, can't be deleted while any of the envelope's documents is open: cancel the envelope (`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/cancel`) first.
|
|
2112
2130
|
|
|
2113
2131
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
2114
2132
|
|
|
@@ -2388,6 +2406,178 @@ Example:
|
|
|
2388
2406
|
}
|
|
2389
2407
|
```
|
|
2390
2408
|
|
|
2409
|
+
### Cancel document
|
|
2410
|
+
|
|
2411
|
+
`PUT /v1/documents/{documentId}/cancel`
|
|
2412
|
+
|
|
2413
|
+
Cancel a document out for signature (`pending_signature`) or held for an identity review (`pending_identity_review`), and keep it: it moves to `rejected_by_user`, its signers and owner are told, the cancellation is recorded, and the document, its files and its history stay. `DELETE /v1/documents/{documentId}` runs this same cancel before it deletes. A document every signer has already signed can't be cancelled by this route: its certification is underway, or it already closed. A document of an envelope can't be cancelled on its own while any of the envelope's documents is open: cancel the envelope (`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/cancel`), or take the document out of it (`DELETE /v1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}`), which cancels it and keeps it.
|
|
2414
|
+
|
|
2415
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
2416
|
+
|
|
2417
|
+
#### Parameters
|
|
2418
|
+
|
|
2419
|
+
| Name | In | Type | Required | Description |
|
|
2420
|
+
|---|---|---|---|---|
|
|
2421
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
2422
|
+
|
|
2423
|
+
#### Responses
|
|
2424
|
+
|
|
2425
|
+
##### 200 — The cancelled document
|
|
2426
|
+
|
|
2427
|
+
```json
|
|
2428
|
+
{
|
|
2429
|
+
"data": {
|
|
2430
|
+
"resource": "document",
|
|
2431
|
+
"id": "example_id_3",
|
|
2432
|
+
"account_id": "example_id_4",
|
|
2433
|
+
"template_id": null,
|
|
2434
|
+
"name": "document.pdf",
|
|
2435
|
+
"status": "metadata_ready",
|
|
2436
|
+
"artifacts": {
|
|
2437
|
+
"original": "https://example.com/example-url-2"
|
|
2438
|
+
},
|
|
2439
|
+
"is_closed": false,
|
|
2440
|
+
"signing_url": "https://example.com/example-url-3",
|
|
2441
|
+
"verification_code": "example_secret",
|
|
2442
|
+
"verification_url": "https://example.com/example-url-4",
|
|
2443
|
+
"decline_reason": null,
|
|
2444
|
+
"declined_by": null,
|
|
2445
|
+
"tags": [
|
|
2446
|
+
{
|
|
2447
|
+
"id": "example_id_5",
|
|
2448
|
+
"name": "string",
|
|
2449
|
+
"color": "ff8800"
|
|
2450
|
+
}
|
|
2451
|
+
],
|
|
2452
|
+
"assignment": null,
|
|
2453
|
+
"pages": [
|
|
2454
|
+
{
|
|
2455
|
+
"id": "example_id_6",
|
|
2456
|
+
"number": 1,
|
|
2457
|
+
"height": 2100,
|
|
2458
|
+
"width": 1275,
|
|
2459
|
+
"download_url": "https://example.com/example-url-5"
|
|
2460
|
+
}
|
|
2461
|
+
],
|
|
2462
|
+
"envelope_id": null,
|
|
2463
|
+
"envelope": null,
|
|
2464
|
+
"has_contract": true,
|
|
2465
|
+
"created_at": "2026-06-03T03:54:16Z",
|
|
2466
|
+
"updated_at": "2026-06-03T03:54:16Z"
|
|
2467
|
+
},
|
|
2468
|
+
"status": 200,
|
|
2469
|
+
"message": ""
|
|
2470
|
+
}
|
|
2471
|
+
```
|
|
2472
|
+
|
|
2473
|
+
##### 400 — The document is not out for signature or held for an identity review.
|
|
2474
|
+
|
|
2475
|
+
```json
|
|
2476
|
+
{
|
|
2477
|
+
"status": 400,
|
|
2478
|
+
"message": "Bad request.",
|
|
2479
|
+
"data": null,
|
|
2480
|
+
"code": "PlanRestricted",
|
|
2481
|
+
"errors": [
|
|
2482
|
+
{
|
|
2483
|
+
"field": "full_name",
|
|
2484
|
+
"code": "Required",
|
|
2485
|
+
"message": "Full Name cannot be blank."
|
|
2486
|
+
}
|
|
2487
|
+
]
|
|
2488
|
+
}
|
|
2489
|
+
```
|
|
2490
|
+
|
|
2491
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
2492
|
+
|
|
2493
|
+
```json
|
|
2494
|
+
{
|
|
2495
|
+
"status": 403,
|
|
2496
|
+
"message": "Bad request.",
|
|
2497
|
+
"data": null,
|
|
2498
|
+
"code": "PlanRestricted",
|
|
2499
|
+
"errors": [
|
|
2500
|
+
{
|
|
2501
|
+
"field": "full_name",
|
|
2502
|
+
"code": "Required",
|
|
2503
|
+
"message": "Full Name cannot be blank."
|
|
2504
|
+
}
|
|
2505
|
+
]
|
|
2506
|
+
}
|
|
2507
|
+
```
|
|
2508
|
+
|
|
2509
|
+
##### 404 — The requested resource does not exist.
|
|
2510
|
+
|
|
2511
|
+
```json
|
|
2512
|
+
{
|
|
2513
|
+
"status": 404,
|
|
2514
|
+
"message": "Bad request.",
|
|
2515
|
+
"data": null,
|
|
2516
|
+
"code": "PlanRestricted",
|
|
2517
|
+
"errors": [
|
|
2518
|
+
{
|
|
2519
|
+
"field": "full_name",
|
|
2520
|
+
"code": "Required",
|
|
2521
|
+
"message": "Full Name cannot be blank."
|
|
2522
|
+
}
|
|
2523
|
+
]
|
|
2524
|
+
}
|
|
2525
|
+
```
|
|
2526
|
+
|
|
2527
|
+
##### 409 — The document belongs to an envelope that is still open (`EnvelopeOpen`), or every signer has signed it: it is being certificated or already is (`DocumentClosed`).
|
|
2528
|
+
|
|
2529
|
+
```json
|
|
2530
|
+
{
|
|
2531
|
+
"status": 409,
|
|
2532
|
+
"code": "PlanRestricted",
|
|
2533
|
+
"message": "Bad request.",
|
|
2534
|
+
"data": null,
|
|
2535
|
+
"errors": [
|
|
2536
|
+
{
|
|
2537
|
+
"field": "full_name",
|
|
2538
|
+
"code": "Required",
|
|
2539
|
+
"message": "Full Name cannot be blank."
|
|
2540
|
+
}
|
|
2541
|
+
]
|
|
2542
|
+
}
|
|
2543
|
+
```
|
|
2544
|
+
|
|
2545
|
+
##### 401 — Missing or invalid credentials.
|
|
2546
|
+
|
|
2547
|
+
```json
|
|
2548
|
+
{
|
|
2549
|
+
"status": 401,
|
|
2550
|
+
"message": "Bad request.",
|
|
2551
|
+
"data": null,
|
|
2552
|
+
"code": "PlanRestricted",
|
|
2553
|
+
"errors": [
|
|
2554
|
+
{
|
|
2555
|
+
"field": "full_name",
|
|
2556
|
+
"code": "Required",
|
|
2557
|
+
"message": "Full Name cannot be blank."
|
|
2558
|
+
}
|
|
2559
|
+
]
|
|
2560
|
+
}
|
|
2561
|
+
```
|
|
2562
|
+
|
|
2563
|
+
##### 500 — Unexpected server error.
|
|
2564
|
+
|
|
2565
|
+
```json
|
|
2566
|
+
{
|
|
2567
|
+
"status": 500,
|
|
2568
|
+
"message": "Bad request.",
|
|
2569
|
+
"data": null,
|
|
2570
|
+
"code": "PlanRestricted",
|
|
2571
|
+
"errors": [
|
|
2572
|
+
{
|
|
2573
|
+
"field": "full_name",
|
|
2574
|
+
"code": "Required",
|
|
2575
|
+
"message": "Full Name cannot be blank."
|
|
2576
|
+
}
|
|
2577
|
+
]
|
|
2578
|
+
}
|
|
2579
|
+
```
|
|
2580
|
+
|
|
2391
2581
|
### Download document artifact
|
|
2392
2582
|
|
|
2393
2583
|
`GET /v1/documents/{documentId}/download/{artifactName}`
|
|
@@ -2886,63 +3076,42 @@ Detach a single tag from a document.
|
|
|
2886
3076
|
}
|
|
2887
3077
|
```
|
|
2888
3078
|
|
|
2889
|
-
###
|
|
3079
|
+
### List a document's watchers
|
|
2890
3080
|
|
|
2891
|
-
`GET /v1/documents/{documentId}/
|
|
3081
|
+
`GET /v1/documents/{documentId}/watchers`
|
|
2892
3082
|
|
|
2893
|
-
|
|
3083
|
+
The contacts set with **Set a document's watchers**, in the order they were set. A deleted contact is left out.
|
|
2894
3084
|
|
|
2895
|
-
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header)
|
|
3085
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
2896
3086
|
|
|
2897
3087
|
#### Parameters
|
|
2898
3088
|
|
|
2899
3089
|
| Name | In | Type | Required | Description |
|
|
2900
3090
|
|---|---|---|---|---|
|
|
2901
3091
|
| `documentId` | path | string | yes | Document ID. |
|
|
2902
|
-
| `artifact` | query | string | no | `certificated`: the page, or the thumbnail, as it is in the signed document, with its signatures and stamps. Only for a certificated document, and only for the workspace's members and apps: `404` when the document isn't certificated or the caller uses a signer's access code. The first request for a page renders it with the pages around it, ten at a time, so it takes longer than the next ones; a request that finds the document's pages being rendered waits up to 30 seconds, then answers `503` with `Retry-After` if they still aren't ready; it answers `503` at once when the API is already rendering as many pages as it allows. Sent with `Cache-Control: no-store`. The certificate pages at the end of the signed file have no page ID and no render, and the visible seal of a document signed with a digital certificate is only in its `pades` file. Any other value is ignored. |
|
|
2903
3092
|
|
|
2904
3093
|
#### Responses
|
|
2905
3094
|
|
|
2906
|
-
##### 200 — The
|
|
2907
|
-
|
|
2908
|
-
##### 404 — The requested resource does not exist.
|
|
2909
|
-
|
|
2910
|
-
```json
|
|
2911
|
-
{
|
|
2912
|
-
"status": 404,
|
|
2913
|
-
"message": "Bad request.",
|
|
2914
|
-
"data": null,
|
|
2915
|
-
"code": "PlanRestricted",
|
|
2916
|
-
"errors": [
|
|
2917
|
-
{
|
|
2918
|
-
"field": "full_name",
|
|
2919
|
-
"code": "Required",
|
|
2920
|
-
"message": "Full Name cannot be blank."
|
|
2921
|
-
}
|
|
2922
|
-
]
|
|
2923
|
-
}
|
|
2924
|
-
```
|
|
2925
|
-
|
|
2926
|
-
##### 503 — With `artifact=certificated`: another request was still rendering the page after 30 seconds, or the API was already rendering as many pages as it allows at once. Try again after the `Retry-After` seconds.
|
|
3095
|
+
##### 200 — The document's watchers
|
|
2927
3096
|
|
|
2928
3097
|
```json
|
|
2929
3098
|
{
|
|
2930
|
-
"
|
|
2931
|
-
"message": "Bad request.",
|
|
2932
|
-
"data": null,
|
|
2933
|
-
"code": "PlanRestricted",
|
|
2934
|
-
"errors": [
|
|
3099
|
+
"data": [
|
|
2935
3100
|
{
|
|
2936
|
-
"
|
|
2937
|
-
"
|
|
2938
|
-
"
|
|
3101
|
+
"resource": "signer",
|
|
3102
|
+
"id": "example_id_10",
|
|
3103
|
+
"full_name": "Example User",
|
|
3104
|
+
"email": "user1@example.com",
|
|
3105
|
+
"whatsapp_phone_number": "+5500000000000",
|
|
3106
|
+
"government_id": "00000000000",
|
|
3107
|
+
"has_accepted_terms": false
|
|
2939
3108
|
}
|
|
2940
|
-
]
|
|
3109
|
+
],
|
|
3110
|
+
"status": 200,
|
|
3111
|
+
"message": ""
|
|
2941
3112
|
}
|
|
2942
3113
|
```
|
|
2943
3114
|
|
|
2944
|
-
##### 304 — Not modified: the `If-None-Match` or `If-Modified-Since` sent matches the page. No body.
|
|
2945
|
-
|
|
2946
3115
|
##### 403 — Authenticated but not allowed to perform this action.
|
|
2947
3116
|
|
|
2948
3117
|
```json
|
|
@@ -2961,29 +3130,20 @@ Download the thumbnail image of a document's first page.
|
|
|
2961
3130
|
}
|
|
2962
3131
|
```
|
|
2963
3132
|
|
|
2964
|
-
#####
|
|
3133
|
+
##### 404 — The document is not in the workspace.
|
|
2965
3134
|
|
|
2966
3135
|
```json
|
|
2967
3136
|
{
|
|
2968
|
-
"status":
|
|
2969
|
-
"message": "
|
|
2970
|
-
"data": null,
|
|
2971
|
-
"code": "PlanRestricted",
|
|
2972
|
-
"errors": [
|
|
2973
|
-
{
|
|
2974
|
-
"field": "full_name",
|
|
2975
|
-
"code": "Required",
|
|
2976
|
-
"message": "Full Name cannot be blank."
|
|
2977
|
-
}
|
|
2978
|
-
]
|
|
3137
|
+
"status": 404,
|
|
3138
|
+
"message": "Document not found."
|
|
2979
3139
|
}
|
|
2980
3140
|
```
|
|
2981
3141
|
|
|
2982
|
-
#####
|
|
3142
|
+
##### 401 — Missing or invalid credentials.
|
|
2983
3143
|
|
|
2984
3144
|
```json
|
|
2985
3145
|
{
|
|
2986
|
-
"status":
|
|
3146
|
+
"status": 401,
|
|
2987
3147
|
"message": "Bad request.",
|
|
2988
3148
|
"data": null,
|
|
2989
3149
|
"code": "PlanRestricted",
|
|
@@ -2997,11 +3157,11 @@ Download the thumbnail image of a document's first page.
|
|
|
2997
3157
|
}
|
|
2998
3158
|
```
|
|
2999
3159
|
|
|
3000
|
-
#####
|
|
3160
|
+
##### 500 — Unexpected server error.
|
|
3001
3161
|
|
|
3002
3162
|
```json
|
|
3003
3163
|
{
|
|
3004
|
-
"status":
|
|
3164
|
+
"status": 500,
|
|
3005
3165
|
"message": "Bad request.",
|
|
3006
3166
|
"data": null,
|
|
3007
3167
|
"code": "PlanRestricted",
|
|
@@ -3015,7 +3175,260 @@ Download the thumbnail image of a document's first page.
|
|
|
3015
3175
|
}
|
|
3016
3176
|
```
|
|
3017
3177
|
|
|
3018
|
-
|
|
3178
|
+
### Set a document's watchers
|
|
3179
|
+
|
|
3180
|
+
`PUT /v1/documents/{documentId}/watchers`
|
|
3181
|
+
|
|
3182
|
+
Replaces the document's watchers: up to 10 contacts of the workspace, each with an e-mail address, who follow the document without signing it. Each is e-mailed once the document ends: declined (naming who declined), expired or signed by all. The e-mail names the document and its sender, and nothing else of it: no link, no file. It is queued, so it goes out shortly after. Naming a contact here is what lets them receive it; the workspace's notification settings don't apply to them. A signer named as a watcher gets this e-mail besides their own. They can be set before the document is sent and changed until it ends; an empty list removes them all.
|
|
3183
|
+
|
|
3184
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
3185
|
+
|
|
3186
|
+
#### Parameters
|
|
3187
|
+
|
|
3188
|
+
| Name | In | Type | Required | Description |
|
|
3189
|
+
|---|---|---|---|---|
|
|
3190
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
3191
|
+
|
|
3192
|
+
#### Request Body (required)
|
|
3193
|
+
|
|
3194
|
+
Fields (`application/json`):
|
|
3195
|
+
|
|
3196
|
+
- `watcher_ids` (array, required) — Contact ids, as **Create signer** answers them; one given twice counts once.
|
|
3197
|
+
|
|
3198
|
+
Example:
|
|
3199
|
+
|
|
3200
|
+
```json
|
|
3201
|
+
{
|
|
3202
|
+
"watcher_ids": [
|
|
3203
|
+
"example_id_10"
|
|
3204
|
+
]
|
|
3205
|
+
}
|
|
3206
|
+
```
|
|
3207
|
+
|
|
3208
|
+
#### Responses
|
|
3209
|
+
|
|
3210
|
+
##### 200 — The document's watchers
|
|
3211
|
+
|
|
3212
|
+
```json
|
|
3213
|
+
{
|
|
3214
|
+
"data": [
|
|
3215
|
+
{
|
|
3216
|
+
"resource": "signer",
|
|
3217
|
+
"id": "example_id_10",
|
|
3218
|
+
"full_name": "Example User",
|
|
3219
|
+
"email": "user1@example.com",
|
|
3220
|
+
"whatsapp_phone_number": "+5500000000000",
|
|
3221
|
+
"government_id": "00000000000",
|
|
3222
|
+
"has_accepted_terms": false
|
|
3223
|
+
}
|
|
3224
|
+
],
|
|
3225
|
+
"status": 200,
|
|
3226
|
+
"message": ""
|
|
3227
|
+
}
|
|
3228
|
+
```
|
|
3229
|
+
|
|
3230
|
+
##### 400 — `watcher_ids` missing or not a list of ids; more than 10; an id that is not a contact of the workspace or a contact without an e-mail address; or the document has ended (expired, signed by all, declined, cancelled or failed).
|
|
3231
|
+
|
|
3232
|
+
```json
|
|
3233
|
+
{
|
|
3234
|
+
"status": 400,
|
|
3235
|
+
"message": "A document takes at most 10 watchers."
|
|
3236
|
+
}
|
|
3237
|
+
```
|
|
3238
|
+
|
|
3239
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
3240
|
+
|
|
3241
|
+
```json
|
|
3242
|
+
{
|
|
3243
|
+
"status": 403,
|
|
3244
|
+
"message": "Bad request.",
|
|
3245
|
+
"data": null,
|
|
3246
|
+
"code": "PlanRestricted",
|
|
3247
|
+
"errors": [
|
|
3248
|
+
{
|
|
3249
|
+
"field": "full_name",
|
|
3250
|
+
"code": "Required",
|
|
3251
|
+
"message": "Full Name cannot be blank."
|
|
3252
|
+
}
|
|
3253
|
+
]
|
|
3254
|
+
}
|
|
3255
|
+
```
|
|
3256
|
+
|
|
3257
|
+
##### 404 — The document is not in the workspace.
|
|
3258
|
+
|
|
3259
|
+
```json
|
|
3260
|
+
{
|
|
3261
|
+
"status": 404,
|
|
3262
|
+
"message": "Document not found."
|
|
3263
|
+
}
|
|
3264
|
+
```
|
|
3265
|
+
|
|
3266
|
+
##### 401 — Missing or invalid credentials.
|
|
3267
|
+
|
|
3268
|
+
```json
|
|
3269
|
+
{
|
|
3270
|
+
"status": 401,
|
|
3271
|
+
"message": "Bad request.",
|
|
3272
|
+
"data": null,
|
|
3273
|
+
"code": "PlanRestricted",
|
|
3274
|
+
"errors": [
|
|
3275
|
+
{
|
|
3276
|
+
"field": "full_name",
|
|
3277
|
+
"code": "Required",
|
|
3278
|
+
"message": "Full Name cannot be blank."
|
|
3279
|
+
}
|
|
3280
|
+
]
|
|
3281
|
+
}
|
|
3282
|
+
```
|
|
3283
|
+
|
|
3284
|
+
##### 500 — Unexpected server error.
|
|
3285
|
+
|
|
3286
|
+
```json
|
|
3287
|
+
{
|
|
3288
|
+
"status": 500,
|
|
3289
|
+
"message": "Bad request.",
|
|
3290
|
+
"data": null,
|
|
3291
|
+
"code": "PlanRestricted",
|
|
3292
|
+
"errors": [
|
|
3293
|
+
{
|
|
3294
|
+
"field": "full_name",
|
|
3295
|
+
"code": "Required",
|
|
3296
|
+
"message": "Full Name cannot be blank."
|
|
3297
|
+
}
|
|
3298
|
+
]
|
|
3299
|
+
}
|
|
3300
|
+
```
|
|
3301
|
+
|
|
3302
|
+
### Download document thumbnail
|
|
3303
|
+
|
|
3304
|
+
`GET /v1/documents/{documentId}/thumbnail`
|
|
3305
|
+
|
|
3306
|
+
Download the thumbnail image of a document's first page.
|
|
3307
|
+
|
|
3308
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header) or signer access code (`signer-access-code` query or body parameter).
|
|
3309
|
+
|
|
3310
|
+
#### Parameters
|
|
3311
|
+
|
|
3312
|
+
| Name | In | Type | Required | Description |
|
|
3313
|
+
|---|---|---|---|---|
|
|
3314
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
3315
|
+
| `artifact` | query | string | no | `certificated`: the page, or the thumbnail, as it is in the signed document, with its signatures and stamps. Only for a certificated document, and only for the workspace's members and apps: `404` when the document isn't certificated or the caller uses a signer's access code. The first request for a page renders it with the pages around it, ten at a time, so it takes longer than the next ones; a request that finds the document's pages being rendered waits up to 30 seconds, then answers `503` with `Retry-After` if they still aren't ready; it answers `503` at once when the API is already rendering as many pages as it allows. Sent with `Cache-Control: no-store`. The certificate pages at the end of the signed file have no page ID and no render, and the visible seal of a document signed with a digital certificate is only in its `pades` file. Any other value is ignored. |
|
|
3316
|
+
|
|
3317
|
+
#### Responses
|
|
3318
|
+
|
|
3319
|
+
##### 200 — The thumbnail image
|
|
3320
|
+
|
|
3321
|
+
##### 404 — The requested resource does not exist.
|
|
3322
|
+
|
|
3323
|
+
```json
|
|
3324
|
+
{
|
|
3325
|
+
"status": 404,
|
|
3326
|
+
"message": "Bad request.",
|
|
3327
|
+
"data": null,
|
|
3328
|
+
"code": "PlanRestricted",
|
|
3329
|
+
"errors": [
|
|
3330
|
+
{
|
|
3331
|
+
"field": "full_name",
|
|
3332
|
+
"code": "Required",
|
|
3333
|
+
"message": "Full Name cannot be blank."
|
|
3334
|
+
}
|
|
3335
|
+
]
|
|
3336
|
+
}
|
|
3337
|
+
```
|
|
3338
|
+
|
|
3339
|
+
##### 503 — With `artifact=certificated`: another request was still rendering the page after 30 seconds, or the API was already rendering as many pages as it allows at once. Try again after the `Retry-After` seconds.
|
|
3340
|
+
|
|
3341
|
+
```json
|
|
3342
|
+
{
|
|
3343
|
+
"status": 503,
|
|
3344
|
+
"message": "Bad request.",
|
|
3345
|
+
"data": null,
|
|
3346
|
+
"code": "PlanRestricted",
|
|
3347
|
+
"errors": [
|
|
3348
|
+
{
|
|
3349
|
+
"field": "full_name",
|
|
3350
|
+
"code": "Required",
|
|
3351
|
+
"message": "Full Name cannot be blank."
|
|
3352
|
+
}
|
|
3353
|
+
]
|
|
3354
|
+
}
|
|
3355
|
+
```
|
|
3356
|
+
|
|
3357
|
+
##### 304 — Not modified: the `If-None-Match` or `If-Modified-Since` sent matches the page. No body.
|
|
3358
|
+
|
|
3359
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
3360
|
+
|
|
3361
|
+
```json
|
|
3362
|
+
{
|
|
3363
|
+
"status": 403,
|
|
3364
|
+
"message": "Bad request.",
|
|
3365
|
+
"data": null,
|
|
3366
|
+
"code": "PlanRestricted",
|
|
3367
|
+
"errors": [
|
|
3368
|
+
{
|
|
3369
|
+
"field": "full_name",
|
|
3370
|
+
"code": "Required",
|
|
3371
|
+
"message": "Full Name cannot be blank."
|
|
3372
|
+
}
|
|
3373
|
+
]
|
|
3374
|
+
}
|
|
3375
|
+
```
|
|
3376
|
+
|
|
3377
|
+
##### 400 — With a signer access code: the signer's step has not started yet (sequential signing).
|
|
3378
|
+
|
|
3379
|
+
```json
|
|
3380
|
+
{
|
|
3381
|
+
"status": 400,
|
|
3382
|
+
"message": "Bad request.",
|
|
3383
|
+
"data": null,
|
|
3384
|
+
"code": "PlanRestricted",
|
|
3385
|
+
"errors": [
|
|
3386
|
+
{
|
|
3387
|
+
"field": "full_name",
|
|
3388
|
+
"code": "Required",
|
|
3389
|
+
"message": "Full Name cannot be blank."
|
|
3390
|
+
}
|
|
3391
|
+
]
|
|
3392
|
+
}
|
|
3393
|
+
```
|
|
3394
|
+
|
|
3395
|
+
##### 410 — With a signer access code: the code is closed, because its signer finished (for a document of an envelope, every document of it they are on) more than 30 minutes ago. It still shows the signer's status and asks for the certified copy (`GET /v1/sign`).
|
|
3396
|
+
|
|
3397
|
+
```json
|
|
3398
|
+
{
|
|
3399
|
+
"status": 410,
|
|
3400
|
+
"message": "Bad request.",
|
|
3401
|
+
"data": null,
|
|
3402
|
+
"code": "PlanRestricted",
|
|
3403
|
+
"errors": [
|
|
3404
|
+
{
|
|
3405
|
+
"field": "full_name",
|
|
3406
|
+
"code": "Required",
|
|
3407
|
+
"message": "Full Name cannot be blank."
|
|
3408
|
+
}
|
|
3409
|
+
]
|
|
3410
|
+
}
|
|
3411
|
+
```
|
|
3412
|
+
|
|
3413
|
+
##### 401 — Missing or invalid credentials.
|
|
3414
|
+
|
|
3415
|
+
```json
|
|
3416
|
+
{
|
|
3417
|
+
"status": 401,
|
|
3418
|
+
"message": "Bad request.",
|
|
3419
|
+
"data": null,
|
|
3420
|
+
"code": "PlanRestricted",
|
|
3421
|
+
"errors": [
|
|
3422
|
+
{
|
|
3423
|
+
"field": "full_name",
|
|
3424
|
+
"code": "Required",
|
|
3425
|
+
"message": "Full Name cannot be blank."
|
|
3426
|
+
}
|
|
3427
|
+
]
|
|
3428
|
+
}
|
|
3429
|
+
```
|
|
3430
|
+
|
|
3431
|
+
##### 500 — Unexpected server error.
|
|
3019
3432
|
|
|
3020
3433
|
```json
|
|
3021
3434
|
{
|
|
@@ -3202,7 +3615,7 @@ Generate a new document from a template. The request is checked (roles, fields,
|
|
|
3202
3615
|
Fields (`application/json`):
|
|
3203
3616
|
|
|
3204
3617
|
- `signers` (array, required) — One entry per template role.
|
|
3205
|
-
- `editor_fields` (array) — Values for the fields placed on the template's `Editor` role, baked into the generated document. The `Editor` role takes no `signers` entry: it is filled only through this list. Every field placed on it needs an entry with a non-empty `value` (`400` otherwise); when it has no fields, send nothing. In `signers`, every `Signer` role needs an entry (`400` otherwise), and a `CopyReceiver` role takes an entry only for someone who should receive the certified document; a copy receiver's `verification_method`, `notification_methods` and `step` are ignored.
|
|
3618
|
+
- `editor_fields` (array) — Values for the fields placed on the template's `Editor` role, baked into the generated document. The `Editor` role takes no `signers` entry: it is filled only through this list. Every field placed on it needs an entry with a non-empty `value` (`400` otherwise); when it has no fields, send nothing. A CPF field's value written in digits must be a valid CPF (`400` naming the field); other text is stamped as given. In `signers`, every `Signer` role needs an entry (`400` otherwise), and a `CopyReceiver` role takes an entry only for someone who should receive the certified document; a copy receiver's `verification_method`, `notification_methods` and `step` are ignored.
|
|
3206
3619
|
- `name` (string) — Title for the document. Defaults to the template name.
|
|
3207
3620
|
- `message` (string) — Optional message sent to signers.
|
|
3208
3621
|
- `expires_at` (string) — Assignment expiration date (ISO 8601). No expiration by default. Must be at least one hour in the future. A UTC offset in the value is honored (`2026-12-31T23:59:59-03:00` is `2027-01-01T02:59:59Z`); a value without one is read as UTC, and a date alone (`2026-12-31`) means 23:59 UTC that day.
|
|
@@ -3215,9 +3628,9 @@ Example:
|
|
|
3215
3628
|
{
|
|
3216
3629
|
"signers": [
|
|
3217
3630
|
{
|
|
3218
|
-
"role_id": "
|
|
3219
|
-
"id": "
|
|
3220
|
-
"email": "
|
|
3631
|
+
"role_id": "example_id_11",
|
|
3632
|
+
"id": "example_id_12",
|
|
3633
|
+
"email": "user2@example.com",
|
|
3221
3634
|
"name": "Maria Silva",
|
|
3222
3635
|
"whatsapp_phone_number": "+5500000000000",
|
|
3223
3636
|
"verification_method": "Email",
|
|
@@ -3230,7 +3643,7 @@ Example:
|
|
|
3230
3643
|
],
|
|
3231
3644
|
"editor_fields": [
|
|
3232
3645
|
{
|
|
3233
|
-
"field_id": "
|
|
3646
|
+
"field_id": "example_id_13",
|
|
3234
3647
|
"value": "Field value"
|
|
3235
3648
|
}
|
|
3236
3649
|
],
|
|
@@ -3350,7 +3763,7 @@ Example:
|
|
|
3350
3763
|
}
|
|
3351
3764
|
```
|
|
3352
3765
|
|
|
3353
|
-
##### 403 — The workspace
|
|
3766
|
+
##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
|
|
3354
3767
|
|
|
3355
3768
|
```json
|
|
3356
3769
|
{
|
|
@@ -3431,7 +3844,7 @@ Example:
|
|
|
3431
3844
|
{
|
|
3432
3845
|
"signers": [
|
|
3433
3846
|
{
|
|
3434
|
-
"role_id": "
|
|
3847
|
+
"role_id": "example_id_11",
|
|
3435
3848
|
"verification_method": "Whatsapp",
|
|
3436
3849
|
"notification_methods": [
|
|
3437
3850
|
"Whatsapp"
|
|
@@ -3491,7 +3904,7 @@ Example:
|
|
|
3491
3904
|
}
|
|
3492
3905
|
```
|
|
3493
3906
|
|
|
3494
|
-
##### 403 — The workspace
|
|
3907
|
+
##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
|
|
3495
3908
|
|
|
3496
3909
|
```json
|
|
3497
3910
|
{
|
|
@@ -3591,10 +4004,10 @@ List the workspace's assignments, oldest first. With an OAuth token the workspac
|
|
|
3591
4004
|
"data": [
|
|
3592
4005
|
{
|
|
3593
4006
|
"resource": "assignment",
|
|
3594
|
-
"id": "
|
|
4007
|
+
"id": "example_id_14",
|
|
3595
4008
|
"document_id": "example_id_3",
|
|
3596
4009
|
"created_at": "2026-06-03T03:54:16Z",
|
|
3597
|
-
"sender_email": "
|
|
4010
|
+
"sender_email": "user3@example.com",
|
|
3598
4011
|
"method": "virtual",
|
|
3599
4012
|
"expires_at": null,
|
|
3600
4013
|
"message": null,
|
|
@@ -3610,9 +4023,9 @@ List the workspace's assignments, oldest first. With an OAuth token the workspac
|
|
|
3610
4023
|
"completed": null,
|
|
3611
4024
|
"notification_history": null,
|
|
3612
4025
|
"resource": "signer",
|
|
3613
|
-
"id": "
|
|
4026
|
+
"id": "example_id_10",
|
|
3614
4027
|
"full_name": "Example User",
|
|
3615
|
-
"email": "
|
|
4028
|
+
"email": "user1@example.com",
|
|
3616
4029
|
"whatsapp_phone_number": "+5500000000000",
|
|
3617
4030
|
"government_id": "00000000000",
|
|
3618
4031
|
"has_accepted_terms": false
|
|
@@ -3948,7 +4361,7 @@ Example — Create with input fields (method: collect):
|
|
|
3948
4361
|
"data": {
|
|
3949
4362
|
"resource": "assignment",
|
|
3950
4363
|
"id": "example_id_21",
|
|
3951
|
-
"sender_email": "
|
|
4364
|
+
"sender_email": "user3@example.com",
|
|
3952
4365
|
"method": "virtual",
|
|
3953
4366
|
"expires_at": "2021-09-30T21:00:00Z",
|
|
3954
4367
|
"message": null,
|
|
@@ -4038,8 +4451,8 @@ Example — Create with input fields (method: collect):
|
|
|
4038
4451
|
"message": "",
|
|
4039
4452
|
"data": {
|
|
4040
4453
|
"resource": "assignment",
|
|
4041
|
-
"id": "
|
|
4042
|
-
"sender_email": "
|
|
4454
|
+
"id": "example_id_14",
|
|
4455
|
+
"sender_email": "user3@example.com",
|
|
4043
4456
|
"method": "collect",
|
|
4044
4457
|
"expires_at": "2021-09-30T21:00:00Z",
|
|
4045
4458
|
"message": null,
|
|
@@ -4192,7 +4605,7 @@ Example — Create with input fields (method: collect):
|
|
|
4192
4605
|
}
|
|
4193
4606
|
```
|
|
4194
4607
|
|
|
4195
|
-
##### 403 — The workspace
|
|
4608
|
+
##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
|
|
4196
4609
|
|
|
4197
4610
|
```json
|
|
4198
4611
|
{
|
|
@@ -4324,6 +4737,7 @@ Example:
|
|
|
4324
4737
|
"signers": [
|
|
4325
4738
|
{
|
|
4326
4739
|
"verification_method": "Whatsapp",
|
|
4740
|
+
"sign_as": "Sign",
|
|
4327
4741
|
"notification_methods": [
|
|
4328
4742
|
"Email"
|
|
4329
4743
|
]
|
|
@@ -4385,7 +4799,7 @@ Example:
|
|
|
4385
4799
|
}
|
|
4386
4800
|
```
|
|
4387
4801
|
|
|
4388
|
-
##### 403 — The workspace
|
|
4802
|
+
##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
|
|
4389
4803
|
|
|
4390
4804
|
```json
|
|
4391
4805
|
{
|
|
@@ -4489,7 +4903,7 @@ Resend the signature-request notification to a signer of the assignment who has
|
|
|
4489
4903
|
}
|
|
4490
4904
|
```
|
|
4491
4905
|
|
|
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.
|
|
4906
|
+
##### 400 — The document is not pending signature or its deadline (`expires_at`) has passed, the signer is not part of the assignment, has already signed, or waits for an earlier signing step; the signer was reminded less than 2 minutes ago, or is being reminded now, or the workspace already reminded them 10 times in the 24 hours since the first of those reminders (one that may have gone out counts; the signer asking for their link again doesn't; for a document of an envelope, a reminder through the envelope or any of its documents counts); or the account lacks credits for the reminder.
|
|
4493
4907
|
|
|
4494
4908
|
```json
|
|
4495
4909
|
{
|
|
@@ -4583,7 +4997,7 @@ Resend the signature-request notification to a signer of the assignment who has
|
|
|
4583
4997
|
|
|
4584
4998
|
`POST /v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/estimate-resend-cost`
|
|
4585
4999
|
|
|
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.
|
|
5000
|
+
Estimate the cost of resending the signature request to a signer. The response has its own shape (`total`, not `total_credits`), because a reminder uses no document. It does not check whether the reminder would be accepted now: the reminder itself refuses a document past its deadline, or a signer reminded too recently or too often (`400`).
|
|
4587
5001
|
|
|
4588
5002
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
4589
5003
|
|
|
@@ -4691,10 +5105,10 @@ Example:
|
|
|
4691
5105
|
{
|
|
4692
5106
|
"data": {
|
|
4693
5107
|
"resource": "assignment",
|
|
4694
|
-
"id": "
|
|
5108
|
+
"id": "example_id_14",
|
|
4695
5109
|
"document_id": "example_id_3",
|
|
4696
5110
|
"created_at": "2026-06-03T03:54:16Z",
|
|
4697
|
-
"sender_email": "
|
|
5111
|
+
"sender_email": "user3@example.com",
|
|
4698
5112
|
"method": "virtual",
|
|
4699
5113
|
"expires_at": null,
|
|
4700
5114
|
"message": null,
|
|
@@ -4710,9 +5124,9 @@ Example:
|
|
|
4710
5124
|
"completed": null,
|
|
4711
5125
|
"notification_history": null,
|
|
4712
5126
|
"resource": "signer",
|
|
4713
|
-
"id": "
|
|
5127
|
+
"id": "example_id_10",
|
|
4714
5128
|
"full_name": "Example User",
|
|
4715
|
-
"email": "
|
|
5129
|
+
"email": "user1@example.com",
|
|
4716
5130
|
"whatsapp_phone_number": "+5500000000000",
|
|
4717
5131
|
"government_id": "00000000000",
|
|
4718
5132
|
"has_accepted_terms": false
|
|
@@ -4984,8 +5398,760 @@ One evidence image of a signer identity verification that is `InReview`, for the
|
|
|
4984
5398
|
}
|
|
4985
5399
|
```
|
|
4986
5400
|
|
|
4987
|
-
##### 404 — Assignment, signer or verification not found, the review is not open, or there is no such image.
|
|
4988
|
-
|
|
5401
|
+
##### 404 — Assignment, signer or verification not found, the review is not open, or there is no such image.
|
|
5402
|
+
|
|
5403
|
+
##### 401 — Missing or invalid credentials.
|
|
5404
|
+
|
|
5405
|
+
```json
|
|
5406
|
+
{
|
|
5407
|
+
"status": 401,
|
|
5408
|
+
"message": "Bad request.",
|
|
5409
|
+
"data": null,
|
|
5410
|
+
"code": "PlanRestricted",
|
|
5411
|
+
"errors": [
|
|
5412
|
+
{
|
|
5413
|
+
"field": "full_name",
|
|
5414
|
+
"code": "Required",
|
|
5415
|
+
"message": "Full Name cannot be blank."
|
|
5416
|
+
}
|
|
5417
|
+
]
|
|
5418
|
+
}
|
|
5419
|
+
```
|
|
5420
|
+
|
|
5421
|
+
##### 500 — Unexpected server error.
|
|
5422
|
+
|
|
5423
|
+
```json
|
|
5424
|
+
{
|
|
5425
|
+
"status": 500,
|
|
5426
|
+
"message": "Bad request.",
|
|
5427
|
+
"data": null,
|
|
5428
|
+
"code": "PlanRestricted",
|
|
5429
|
+
"errors": [
|
|
5430
|
+
{
|
|
5431
|
+
"field": "full_name",
|
|
5432
|
+
"code": "Required",
|
|
5433
|
+
"message": "Full Name cannot be blank."
|
|
5434
|
+
}
|
|
5435
|
+
]
|
|
5436
|
+
}
|
|
5437
|
+
```
|
|
5438
|
+
|
|
5439
|
+
### Decide signer identity review
|
|
5440
|
+
|
|
5441
|
+
`POST /v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/identity-verification/review`
|
|
5442
|
+
|
|
5443
|
+
Approves or rejects a signer whose identity verification is `InReview`, while the document is `pending_signature` or `pending_identity_review`. Approved: once every signer has signed and no other signer is under review, the document is certificated; the certificate states the approval by review and every difference found. Rejected: the document is cancelled (`rejected_by_user`, with the reviewer as the user) and every signer and copy receiver gets the cancellation notice; the note is never shown to them. The signer gets no message about the decision itself. For a document of an envelope, it decides the signer's one check of the whole envelope, from any of its documents they are on, and is recorded on each of them: approving releases each once signed, and rejecting cancels the whole envelope as its cancel does, each person told once. The decision is also reported to the verification provider. Not available to third-party OAuth applications (`403`), whatever their scopes: the certificate names the person who reviewed. Assinafy's own apps can decide it with the `documents:write` scope, and the reviewer is the user signed in to them.
|
|
5444
|
+
|
|
5445
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
5446
|
+
|
|
5447
|
+
#### Parameters
|
|
5448
|
+
|
|
5449
|
+
| Name | In | Type | Required | Description |
|
|
5450
|
+
|---|---|---|---|---|
|
|
5451
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
5452
|
+
| `assignmentId` | path | string | yes | The assignment ID. |
|
|
5453
|
+
| `signerId` | path | string | yes | The signer ID. |
|
|
5454
|
+
|
|
5455
|
+
#### Request Body (required)
|
|
5456
|
+
|
|
5457
|
+
Fields (`application/json`):
|
|
5458
|
+
|
|
5459
|
+
- `decision` (string, required)
|
|
5460
|
+
- `note` (string | null) — Optional. Recorded in the activity log and sent to the provider; never shown to the signer.
|
|
5461
|
+
|
|
5462
|
+
Example:
|
|
5463
|
+
|
|
5464
|
+
```json
|
|
5465
|
+
{
|
|
5466
|
+
"decision": "Approved",
|
|
5467
|
+
"note": "Conferido por videochamada."
|
|
5468
|
+
}
|
|
5469
|
+
```
|
|
5470
|
+
|
|
5471
|
+
#### Responses
|
|
5472
|
+
|
|
5473
|
+
##### 200 — Decided
|
|
5474
|
+
|
|
5475
|
+
```json
|
|
5476
|
+
{
|
|
5477
|
+
"data": {
|
|
5478
|
+
"id": "example_id_26",
|
|
5479
|
+
"status": "InReview",
|
|
5480
|
+
"provider": "AssinafyVerify",
|
|
5481
|
+
"verification_method": "IdDocumentFaceMatchBasic",
|
|
5482
|
+
"reason_codes": [
|
|
5483
|
+
{
|
|
5484
|
+
"code": "NAME_MISMATCH",
|
|
5485
|
+
"description": "Nome no documento difere do cadastrado (similaridade 52%)"
|
|
5486
|
+
}
|
|
5487
|
+
],
|
|
5488
|
+
"evidence_available": true,
|
|
5489
|
+
"expected": null,
|
|
5490
|
+
"document": null,
|
|
5491
|
+
"matches": null,
|
|
5492
|
+
"checks": [
|
|
5493
|
+
{
|
|
5494
|
+
"name": "name",
|
|
5495
|
+
"result": "review",
|
|
5496
|
+
"score": 0.5217,
|
|
5497
|
+
"reasons": [
|
|
5498
|
+
"NAME_MISMATCH"
|
|
5499
|
+
]
|
|
5500
|
+
}
|
|
5501
|
+
],
|
|
5502
|
+
"images": [
|
|
5503
|
+
"document_front",
|
|
5504
|
+
"document_back",
|
|
5505
|
+
"face"
|
|
5506
|
+
],
|
|
5507
|
+
"ruleset_version": "2026-10-12.2",
|
|
5508
|
+
"evidence_sha256": "9f2c0d6e4b1a8c3f5e7d9b0a2c4e6f8a1b3d5f7091e2c4a6b8d0f2e4a6c8e0b2",
|
|
5509
|
+
"reviewed_by": null,
|
|
5510
|
+
"reviewed_at": "2026-10-13T21:05:00Z",
|
|
5511
|
+
"review_note": "Conferido por videochamada.",
|
|
5512
|
+
"completed_at": "2026-10-13T21:05:00Z"
|
|
5513
|
+
},
|
|
5514
|
+
"status": 200,
|
|
5515
|
+
"message": ""
|
|
5516
|
+
}
|
|
5517
|
+
```
|
|
5518
|
+
|
|
5519
|
+
##### 400 — Invalid decision, the verification is not `InReview`, or the document is no longer awaiting signatures (for a document of an envelope, none of the signer's documents of it is).
|
|
5520
|
+
|
|
5521
|
+
```json
|
|
5522
|
+
{
|
|
5523
|
+
"status": 400,
|
|
5524
|
+
"message": "Bad request.",
|
|
5525
|
+
"data": null,
|
|
5526
|
+
"code": "PlanRestricted",
|
|
5527
|
+
"errors": [
|
|
5528
|
+
{
|
|
5529
|
+
"field": "full_name",
|
|
5530
|
+
"code": "Required",
|
|
5531
|
+
"message": "Full Name cannot be blank."
|
|
5532
|
+
}
|
|
5533
|
+
]
|
|
5534
|
+
}
|
|
5535
|
+
```
|
|
5536
|
+
|
|
5537
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
5538
|
+
|
|
5539
|
+
```json
|
|
5540
|
+
{
|
|
5541
|
+
"status": 403,
|
|
5542
|
+
"message": "Bad request.",
|
|
5543
|
+
"data": null,
|
|
5544
|
+
"code": "PlanRestricted",
|
|
5545
|
+
"errors": [
|
|
5546
|
+
{
|
|
5547
|
+
"field": "full_name",
|
|
5548
|
+
"code": "Required",
|
|
5549
|
+
"message": "Full Name cannot be blank."
|
|
5550
|
+
}
|
|
5551
|
+
]
|
|
5552
|
+
}
|
|
5553
|
+
```
|
|
5554
|
+
|
|
5555
|
+
##### 404 — Assignment, signer or verification not found.
|
|
5556
|
+
|
|
5557
|
+
```json
|
|
5558
|
+
{
|
|
5559
|
+
"status": 404,
|
|
5560
|
+
"message": "Bad request.",
|
|
5561
|
+
"data": null,
|
|
5562
|
+
"code": "PlanRestricted",
|
|
5563
|
+
"errors": [
|
|
5564
|
+
{
|
|
5565
|
+
"field": "full_name",
|
|
5566
|
+
"code": "Required",
|
|
5567
|
+
"message": "Full Name cannot be blank."
|
|
5568
|
+
}
|
|
5569
|
+
]
|
|
5570
|
+
}
|
|
5571
|
+
```
|
|
5572
|
+
|
|
5573
|
+
##### 401 — Missing or invalid credentials.
|
|
5574
|
+
|
|
5575
|
+
```json
|
|
5576
|
+
{
|
|
5577
|
+
"status": 401,
|
|
5578
|
+
"message": "Bad request.",
|
|
5579
|
+
"data": null,
|
|
5580
|
+
"code": "PlanRestricted",
|
|
5581
|
+
"errors": [
|
|
5582
|
+
{
|
|
5583
|
+
"field": "full_name",
|
|
5584
|
+
"code": "Required",
|
|
5585
|
+
"message": "Full Name cannot be blank."
|
|
5586
|
+
}
|
|
5587
|
+
]
|
|
5588
|
+
}
|
|
5589
|
+
```
|
|
5590
|
+
|
|
5591
|
+
##### 500 — Unexpected server error.
|
|
5592
|
+
|
|
5593
|
+
```json
|
|
5594
|
+
{
|
|
5595
|
+
"status": 500,
|
|
5596
|
+
"message": "Bad request.",
|
|
5597
|
+
"data": null,
|
|
5598
|
+
"code": "PlanRestricted",
|
|
5599
|
+
"errors": [
|
|
5600
|
+
{
|
|
5601
|
+
"field": "full_name",
|
|
5602
|
+
"code": "Required",
|
|
5603
|
+
"message": "Full Name cannot be blank."
|
|
5604
|
+
}
|
|
5605
|
+
]
|
|
5606
|
+
}
|
|
5607
|
+
```
|
|
5608
|
+
|
|
5609
|
+
### Get signer capacities
|
|
5610
|
+
|
|
5611
|
+
`GET /v1/documents/{documentId}/signer-capacities`
|
|
5612
|
+
|
|
5613
|
+
The capacity each signer of the document's assignment signs in, as the sender gave it with `sign_as` on **Create assignment**: `Sign` for a signer given none. In the order **Get document** lists the assignment's signers; an empty list for a document not sent yet. Reachable with the `documents:read` OAuth scope.
|
|
5614
|
+
|
|
5615
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
5616
|
+
|
|
5617
|
+
#### Parameters
|
|
5618
|
+
|
|
5619
|
+
| Name | In | Type | Required | Description |
|
|
5620
|
+
|---|---|---|---|---|
|
|
5621
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
5622
|
+
|
|
5623
|
+
#### Responses
|
|
5624
|
+
|
|
5625
|
+
##### 200 — The signers' capacities
|
|
5626
|
+
|
|
5627
|
+
```json
|
|
5628
|
+
{
|
|
5629
|
+
"data": [
|
|
5630
|
+
{
|
|
5631
|
+
"signer_id": "example_id_15",
|
|
5632
|
+
"sign_as": "Witness"
|
|
5633
|
+
}
|
|
5634
|
+
],
|
|
5635
|
+
"status": 200,
|
|
5636
|
+
"message": ""
|
|
5637
|
+
}
|
|
5638
|
+
```
|
|
5639
|
+
|
|
5640
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
5641
|
+
|
|
5642
|
+
```json
|
|
5643
|
+
{
|
|
5644
|
+
"status": 403,
|
|
5645
|
+
"message": "Bad request.",
|
|
5646
|
+
"data": null,
|
|
5647
|
+
"code": "PlanRestricted",
|
|
5648
|
+
"errors": [
|
|
5649
|
+
{
|
|
5650
|
+
"field": "full_name",
|
|
5651
|
+
"code": "Required",
|
|
5652
|
+
"message": "Full Name cannot be blank."
|
|
5653
|
+
}
|
|
5654
|
+
]
|
|
5655
|
+
}
|
|
5656
|
+
```
|
|
5657
|
+
|
|
5658
|
+
##### 404 — The document is not in the workspace.
|
|
5659
|
+
|
|
5660
|
+
```json
|
|
5661
|
+
{
|
|
5662
|
+
"status": 404,
|
|
5663
|
+
"message": "Document not found."
|
|
5664
|
+
}
|
|
5665
|
+
```
|
|
5666
|
+
|
|
5667
|
+
##### 401 — Missing or invalid credentials.
|
|
5668
|
+
|
|
5669
|
+
```json
|
|
5670
|
+
{
|
|
5671
|
+
"status": 401,
|
|
5672
|
+
"message": "Bad request.",
|
|
5673
|
+
"data": null,
|
|
5674
|
+
"code": "PlanRestricted",
|
|
5675
|
+
"errors": [
|
|
5676
|
+
{
|
|
5677
|
+
"field": "full_name",
|
|
5678
|
+
"code": "Required",
|
|
5679
|
+
"message": "Full Name cannot be blank."
|
|
5680
|
+
}
|
|
5681
|
+
]
|
|
5682
|
+
}
|
|
5683
|
+
```
|
|
5684
|
+
|
|
5685
|
+
##### 500 — Unexpected server error.
|
|
5686
|
+
|
|
5687
|
+
```json
|
|
5688
|
+
{
|
|
5689
|
+
"status": 500,
|
|
5690
|
+
"message": "Bad request.",
|
|
5691
|
+
"data": null,
|
|
5692
|
+
"code": "PlanRestricted",
|
|
5693
|
+
"errors": [
|
|
5694
|
+
{
|
|
5695
|
+
"field": "full_name",
|
|
5696
|
+
"code": "Required",
|
|
5697
|
+
"message": "Full Name cannot be blank."
|
|
5698
|
+
}
|
|
5699
|
+
]
|
|
5700
|
+
}
|
|
5701
|
+
```
|
|
5702
|
+
|
|
5703
|
+
### Get notification history with delivery times
|
|
5704
|
+
|
|
5705
|
+
`GET /v1/documents/{documentId}/notification-history`
|
|
5706
|
+
|
|
5707
|
+
Each signer of the document's assignment, in the order **Get document** lists them, with its `notification_history` as **Get document** gives it, each entry adding `delivered_at` and `opened_at`, `null` until then: an e-mail's first delivery and its first open or click; a WhatsApp message's delivery and read as WhatsApp last reported them. `opened_at` is a hint, not proof: a mail app or a link scanner can open a message before anyone reads it, and blocked images or WhatsApp read receipts turned off hide an open. An empty list for a document not sent yet. Reachable with the `documents:read` OAuth scope.
|
|
5708
|
+
|
|
5709
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
5710
|
+
|
|
5711
|
+
#### Parameters
|
|
5712
|
+
|
|
5713
|
+
| Name | In | Type | Required | Description |
|
|
5714
|
+
|---|---|---|---|---|
|
|
5715
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
5716
|
+
|
|
5717
|
+
#### Responses
|
|
5718
|
+
|
|
5719
|
+
##### 200 — The signers' notification history
|
|
5720
|
+
|
|
5721
|
+
```json
|
|
5722
|
+
{
|
|
5723
|
+
"data": [
|
|
5724
|
+
{
|
|
5725
|
+
"signer_id": "example_id_15",
|
|
5726
|
+
"notification_history": [
|
|
5727
|
+
{
|
|
5728
|
+
"delivered_at": "2026-07-07T12:00:05Z",
|
|
5729
|
+
"opened_at": "2026-07-07T12:30:00Z",
|
|
5730
|
+
"event": "signature_request",
|
|
5731
|
+
"status": "failed",
|
|
5732
|
+
"error_code": "MailboxFull",
|
|
5733
|
+
"error_message": "A caixa de entrada do destinatário está cheia. Peça ao signatário para liberar espaço ou use outro e-mail.",
|
|
5734
|
+
"sent_at": "2026-07-07T12:00:00Z",
|
|
5735
|
+
"failed_at": "2026-07-07T12:05:00Z"
|
|
5736
|
+
}
|
|
5737
|
+
]
|
|
5738
|
+
}
|
|
5739
|
+
],
|
|
5740
|
+
"status": 200,
|
|
5741
|
+
"message": ""
|
|
5742
|
+
}
|
|
5743
|
+
```
|
|
5744
|
+
|
|
5745
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
5746
|
+
|
|
5747
|
+
```json
|
|
5748
|
+
{
|
|
5749
|
+
"status": 403,
|
|
5750
|
+
"message": "Bad request.",
|
|
5751
|
+
"data": null,
|
|
5752
|
+
"code": "PlanRestricted",
|
|
5753
|
+
"errors": [
|
|
5754
|
+
{
|
|
5755
|
+
"field": "full_name",
|
|
5756
|
+
"code": "Required",
|
|
5757
|
+
"message": "Full Name cannot be blank."
|
|
5758
|
+
}
|
|
5759
|
+
]
|
|
5760
|
+
}
|
|
5761
|
+
```
|
|
5762
|
+
|
|
5763
|
+
##### 404 — The document is not in the workspace.
|
|
5764
|
+
|
|
5765
|
+
```json
|
|
5766
|
+
{
|
|
5767
|
+
"status": 404,
|
|
5768
|
+
"message": "Document not found."
|
|
5769
|
+
}
|
|
5770
|
+
```
|
|
5771
|
+
|
|
5772
|
+
##### 401 — Missing or invalid credentials.
|
|
5773
|
+
|
|
5774
|
+
```json
|
|
5775
|
+
{
|
|
5776
|
+
"status": 401,
|
|
5777
|
+
"message": "Bad request.",
|
|
5778
|
+
"data": null,
|
|
5779
|
+
"code": "PlanRestricted",
|
|
5780
|
+
"errors": [
|
|
5781
|
+
{
|
|
5782
|
+
"field": "full_name",
|
|
5783
|
+
"code": "Required",
|
|
5784
|
+
"message": "Full Name cannot be blank."
|
|
5785
|
+
}
|
|
5786
|
+
]
|
|
5787
|
+
}
|
|
5788
|
+
```
|
|
5789
|
+
|
|
5790
|
+
##### 500 — Unexpected server error.
|
|
5791
|
+
|
|
5792
|
+
```json
|
|
5793
|
+
{
|
|
5794
|
+
"status": 500,
|
|
5795
|
+
"message": "Bad request.",
|
|
5796
|
+
"data": null,
|
|
5797
|
+
"code": "PlanRestricted",
|
|
5798
|
+
"errors": [
|
|
5799
|
+
{
|
|
5800
|
+
"field": "full_name",
|
|
5801
|
+
"code": "Required",
|
|
5802
|
+
"message": "Full Name cannot be blank."
|
|
5803
|
+
}
|
|
5804
|
+
]
|
|
5805
|
+
}
|
|
5806
|
+
```
|
|
5807
|
+
|
|
5808
|
+
### Schedule an assignment
|
|
5809
|
+
|
|
5810
|
+
`POST /v1/documents/{documentId}/scheduled-sends`
|
|
5811
|
+
|
|
5812
|
+
Keeps a **Create assignment** request and makes it at `send_at`, as the member who scheduled it, through the same checks and charges as **Create assignment** then. Nothing is sent or charged now, and nothing changes for the document: it can still be sent at once, and the scheduled send then fails when it goes. A document takes one pending scheduled send at a time, counting one being sent. The request is checked now as **Estimate assignment cost** checks it (the method, each signer's methods, the plan's features), and each signer named must be a contact of the workspace; the balance is checked when it is sent. A job checks every five minutes and makes the sends that are due. On a free plan whose daily signer email limit has no room for its invitations then, it is not failed: it stays `pending` with `next_attempt_at` set to when the room is there, the workspace's other due sends waiting behind it in `send_at` order, for up to 7 days after `send_at`, after which it fails. Any other send that can't be made then becomes `failed` with the reason, nothing is charged, and the member who scheduled it is e-mailed; if that member has left the workspace, it is not made as anyone else: it fails and the workspace's active owners are e-mailed. **List scheduled sends**, **Cancel a scheduled send** and **Send a scheduled send now** follow it. Free workspaces can schedule assignments for up to three signers (`403 FreePlanSignerLimit`).
|
|
5813
|
+
|
|
5814
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
5815
|
+
|
|
5816
|
+
#### Parameters
|
|
5817
|
+
|
|
5818
|
+
| Name | In | Type | Required | Description |
|
|
5819
|
+
|---|---|---|---|---|
|
|
5820
|
+
| `documentId` | path | string | yes | Document ID. |
|
|
5821
|
+
|
|
5822
|
+
#### Request Body (required)
|
|
5823
|
+
|
|
5824
|
+
Fields (`application/json`):
|
|
5825
|
+
|
|
5826
|
+
- `send_at` (object, required) — When to send: ISO 8601 with its offset (none means UTC), or a Unix time. From one hour to 90 days ahead.
|
|
5827
|
+
- `method` (string) — As in **Create assignment**; `virtual` when left out.
|
|
5828
|
+
- `signers` (array, required) — As in **Create assignment**; each must be a contact of the workspace.
|
|
5829
|
+
- `expires_at` (object) — As in **Create assignment**, an absolute time (ISO 8601 or a Unix time), or null for none; at least two hours after `send_at`, since the request must still have an hour left when it is made.
|
|
5830
|
+
|
|
5831
|
+
Example:
|
|
5832
|
+
|
|
5833
|
+
```json
|
|
5834
|
+
{
|
|
5835
|
+
"send_at": "2026-11-20T09:00:00-03:00",
|
|
5836
|
+
"method": "virtual",
|
|
5837
|
+
"signers": [
|
|
5838
|
+
{}
|
|
5839
|
+
],
|
|
5840
|
+
"expires_at": null
|
|
5841
|
+
}
|
|
5842
|
+
```
|
|
5843
|
+
|
|
5844
|
+
#### Responses
|
|
5845
|
+
|
|
5846
|
+
##### 200 — The scheduled send
|
|
5847
|
+
|
|
5848
|
+
```json
|
|
5849
|
+
{
|
|
5850
|
+
"data": {
|
|
5851
|
+
"resource": "scheduled_send",
|
|
5852
|
+
"id": "example_id_27",
|
|
5853
|
+
"type": "assignment",
|
|
5854
|
+
"document_ids": [
|
|
5855
|
+
"example_id_3"
|
|
5856
|
+
],
|
|
5857
|
+
"status": "pending",
|
|
5858
|
+
"send_at": "2026-11-20T12:00:00Z",
|
|
5859
|
+
"next_attempt_at": null,
|
|
5860
|
+
"assignment_id": null,
|
|
5861
|
+
"envelope_id": null,
|
|
5862
|
+
"failure_reason": null,
|
|
5863
|
+
"created_at": "2026-11-14T18:00:00Z",
|
|
5864
|
+
"processed_at": null
|
|
5865
|
+
},
|
|
5866
|
+
"status": 200,
|
|
5867
|
+
"message": ""
|
|
5868
|
+
}
|
|
5869
|
+
```
|
|
5870
|
+
|
|
5871
|
+
##### 400 — `send_at` missing, unreadable, less than an hour or more than 90 days ahead; an `expires_at` less than two hours after it; the document already has an assignment, or a scheduled send pending or being sent; or the request refused as **Estimate assignment cost** refuses it.
|
|
5872
|
+
|
|
5873
|
+
```json
|
|
5874
|
+
{
|
|
5875
|
+
"status": 400,
|
|
5876
|
+
"message": "The scheduled send must be at least one hour ahead."
|
|
5877
|
+
}
|
|
5878
|
+
```
|
|
5879
|
+
|
|
5880
|
+
##### 403 — The free workspace exceeds three signers (`FreePlanSignerLimit`), the plan lacks a verification or notification method sent (`PlanRestricted`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership or a role.
|
|
5881
|
+
|
|
5882
|
+
```json
|
|
5883
|
+
{
|
|
5884
|
+
"status": 403,
|
|
5885
|
+
"message": "Bad request.",
|
|
5886
|
+
"code": "PlanRestricted",
|
|
5887
|
+
"data": null,
|
|
5888
|
+
"errors": [
|
|
5889
|
+
{
|
|
5890
|
+
"field": "full_name",
|
|
5891
|
+
"code": "Required",
|
|
5892
|
+
"message": "Full Name cannot be blank."
|
|
5893
|
+
}
|
|
5894
|
+
]
|
|
5895
|
+
}
|
|
5896
|
+
```
|
|
5897
|
+
|
|
5898
|
+
##### 404 — The document is not in the workspace, or a signer named is not a contact of it.
|
|
5899
|
+
|
|
5900
|
+
```json
|
|
5901
|
+
{
|
|
5902
|
+
"status": 404,
|
|
5903
|
+
"message": "Document not found."
|
|
5904
|
+
}
|
|
5905
|
+
```
|
|
5906
|
+
|
|
5907
|
+
##### 401 — Missing or invalid credentials.
|
|
5908
|
+
|
|
5909
|
+
```json
|
|
5910
|
+
{
|
|
5911
|
+
"status": 401,
|
|
5912
|
+
"message": "Bad request.",
|
|
5913
|
+
"data": null,
|
|
5914
|
+
"code": "PlanRestricted",
|
|
5915
|
+
"errors": [
|
|
5916
|
+
{
|
|
5917
|
+
"field": "full_name",
|
|
5918
|
+
"code": "Required",
|
|
5919
|
+
"message": "Full Name cannot be blank."
|
|
5920
|
+
}
|
|
5921
|
+
]
|
|
5922
|
+
}
|
|
5923
|
+
```
|
|
5924
|
+
|
|
5925
|
+
##### 500 — Unexpected server error.
|
|
5926
|
+
|
|
5927
|
+
```json
|
|
5928
|
+
{
|
|
5929
|
+
"status": 500,
|
|
5930
|
+
"message": "Bad request.",
|
|
5931
|
+
"data": null,
|
|
5932
|
+
"code": "PlanRestricted",
|
|
5933
|
+
"errors": [
|
|
5934
|
+
{
|
|
5935
|
+
"field": "full_name",
|
|
5936
|
+
"code": "Required",
|
|
5937
|
+
"message": "Full Name cannot be blank."
|
|
5938
|
+
}
|
|
5939
|
+
]
|
|
5940
|
+
}
|
|
5941
|
+
```
|
|
5942
|
+
|
|
5943
|
+
### List scheduled sends
|
|
5944
|
+
|
|
5945
|
+
`GET /v1/accounts/{accountId}/scheduled-sends`
|
|
5946
|
+
|
|
5947
|
+
The workspace's scheduled sends, assignments and envelopes, newest first, whatever their status. Paged: 20 per page by default; the `X-Pagination-Total-Count`, `X-Pagination-Page-Count`, `X-Pagination-Current-Page` and `X-Pagination-Per-Page` headers describe the full list. An OAuth app needs `documents:write` here, not only `documents:read`: a failed send's `failure_reason` can say the workspace's balance ran out or a member left, which an app learns only from a request it can make.
|
|
5948
|
+
|
|
5949
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
5950
|
+
|
|
5951
|
+
#### Parameters
|
|
5952
|
+
|
|
5953
|
+
| Name | In | Type | Required | Description |
|
|
5954
|
+
|---|---|---|---|---|
|
|
5955
|
+
| `accountId` | path | string | yes | Workspace account ID. |
|
|
5956
|
+
| `page` | query | integer | no | Page number. |
|
|
5957
|
+
| `per-page` | query | integer | no | Records per page: 20 by default, at most 50; a larger value answers 50 a page. |
|
|
5958
|
+
| `document_id` | query | string | no | Only the sends of this document. |
|
|
5959
|
+
|
|
5960
|
+
#### Responses
|
|
5961
|
+
|
|
5962
|
+
##### 200 — The workspace's scheduled sends
|
|
5963
|
+
|
|
5964
|
+
```json
|
|
5965
|
+
{
|
|
5966
|
+
"data": [
|
|
5967
|
+
{
|
|
5968
|
+
"resource": "scheduled_send",
|
|
5969
|
+
"id": "example_id_27",
|
|
5970
|
+
"type": "assignment",
|
|
5971
|
+
"document_ids": [
|
|
5972
|
+
"example_id_3"
|
|
5973
|
+
],
|
|
5974
|
+
"status": "pending",
|
|
5975
|
+
"send_at": "2026-11-20T12:00:00Z",
|
|
5976
|
+
"next_attempt_at": null,
|
|
5977
|
+
"assignment_id": null,
|
|
5978
|
+
"envelope_id": null,
|
|
5979
|
+
"failure_reason": null,
|
|
5980
|
+
"created_at": "2026-11-14T18:00:00Z",
|
|
5981
|
+
"processed_at": null
|
|
5982
|
+
}
|
|
5983
|
+
],
|
|
5984
|
+
"status": 200,
|
|
5985
|
+
"message": ""
|
|
5986
|
+
}
|
|
5987
|
+
```
|
|
5988
|
+
|
|
5989
|
+
##### 400 — `document_id` not text.
|
|
5990
|
+
|
|
5991
|
+
```json
|
|
5992
|
+
{
|
|
5993
|
+
"status": 400,
|
|
5994
|
+
"message": "Give document_id as a document id.",
|
|
5995
|
+
"errors": [
|
|
5996
|
+
{
|
|
5997
|
+
"field": "document_id",
|
|
5998
|
+
"code": "Invalid",
|
|
5999
|
+
"message": "Give document_id as a document id."
|
|
6000
|
+
}
|
|
6001
|
+
]
|
|
6002
|
+
}
|
|
6003
|
+
```
|
|
6004
|
+
|
|
6005
|
+
##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
6006
|
+
|
|
6007
|
+
```json
|
|
6008
|
+
{
|
|
6009
|
+
"status": 403,
|
|
6010
|
+
"code": "PlanRestricted",
|
|
6011
|
+
"message": "Bad request.",
|
|
6012
|
+
"data": null,
|
|
6013
|
+
"errors": [
|
|
6014
|
+
{
|
|
6015
|
+
"field": "full_name",
|
|
6016
|
+
"code": "Required",
|
|
6017
|
+
"message": "Full Name cannot be blank."
|
|
6018
|
+
}
|
|
6019
|
+
]
|
|
6020
|
+
}
|
|
6021
|
+
```
|
|
6022
|
+
|
|
6023
|
+
##### 404 — The requested resource does not exist.
|
|
6024
|
+
|
|
6025
|
+
```json
|
|
6026
|
+
{
|
|
6027
|
+
"status": 404,
|
|
6028
|
+
"message": "Bad request.",
|
|
6029
|
+
"data": null,
|
|
6030
|
+
"code": "PlanRestricted",
|
|
6031
|
+
"errors": [
|
|
6032
|
+
{
|
|
6033
|
+
"field": "full_name",
|
|
6034
|
+
"code": "Required",
|
|
6035
|
+
"message": "Full Name cannot be blank."
|
|
6036
|
+
}
|
|
6037
|
+
]
|
|
6038
|
+
}
|
|
6039
|
+
```
|
|
6040
|
+
|
|
6041
|
+
##### 401 — Missing or invalid credentials.
|
|
6042
|
+
|
|
6043
|
+
```json
|
|
6044
|
+
{
|
|
6045
|
+
"status": 401,
|
|
6046
|
+
"message": "Bad request.",
|
|
6047
|
+
"data": null,
|
|
6048
|
+
"code": "PlanRestricted",
|
|
6049
|
+
"errors": [
|
|
6050
|
+
{
|
|
6051
|
+
"field": "full_name",
|
|
6052
|
+
"code": "Required",
|
|
6053
|
+
"message": "Full Name cannot be blank."
|
|
6054
|
+
}
|
|
6055
|
+
]
|
|
6056
|
+
}
|
|
6057
|
+
```
|
|
6058
|
+
|
|
6059
|
+
##### 500 — Unexpected server error.
|
|
6060
|
+
|
|
6061
|
+
```json
|
|
6062
|
+
{
|
|
6063
|
+
"status": 500,
|
|
6064
|
+
"message": "Bad request.",
|
|
6065
|
+
"data": null,
|
|
6066
|
+
"code": "PlanRestricted",
|
|
6067
|
+
"errors": [
|
|
6068
|
+
{
|
|
6069
|
+
"field": "full_name",
|
|
6070
|
+
"code": "Required",
|
|
6071
|
+
"message": "Full Name cannot be blank."
|
|
6072
|
+
}
|
|
6073
|
+
]
|
|
6074
|
+
}
|
|
6075
|
+
```
|
|
6076
|
+
|
|
6077
|
+
### Cancel a scheduled send
|
|
6078
|
+
|
|
6079
|
+
`PUT /v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/cancel`
|
|
6080
|
+
|
|
6081
|
+
Cancels a `pending` scheduled send; nothing is sent or charged. A send already being sent, sent, failed or cancelled answers `409`.
|
|
6082
|
+
|
|
6083
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
6084
|
+
|
|
6085
|
+
#### Parameters
|
|
6086
|
+
|
|
6087
|
+
| Name | In | Type | Required | Description |
|
|
6088
|
+
|---|---|---|---|---|
|
|
6089
|
+
| `accountId` | path | string | yes | Workspace account ID. |
|
|
6090
|
+
| `scheduledSendId` | path | string | yes | The scheduled send ID. |
|
|
6091
|
+
|
|
6092
|
+
#### Responses
|
|
6093
|
+
|
|
6094
|
+
##### 200 — The cancelled scheduled send
|
|
6095
|
+
|
|
6096
|
+
```json
|
|
6097
|
+
{
|
|
6098
|
+
"data": {
|
|
6099
|
+
"resource": "scheduled_send",
|
|
6100
|
+
"id": "example_id_27",
|
|
6101
|
+
"type": "assignment",
|
|
6102
|
+
"document_ids": [
|
|
6103
|
+
"example_id_3"
|
|
6104
|
+
],
|
|
6105
|
+
"status": "pending",
|
|
6106
|
+
"send_at": "2026-11-20T12:00:00Z",
|
|
6107
|
+
"next_attempt_at": null,
|
|
6108
|
+
"assignment_id": null,
|
|
6109
|
+
"envelope_id": null,
|
|
6110
|
+
"failure_reason": null,
|
|
6111
|
+
"created_at": "2026-11-14T18:00:00Z",
|
|
6112
|
+
"processed_at": null
|
|
6113
|
+
},
|
|
6114
|
+
"status": 200,
|
|
6115
|
+
"message": ""
|
|
6116
|
+
}
|
|
6117
|
+
```
|
|
6118
|
+
|
|
6119
|
+
##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
6120
|
+
|
|
6121
|
+
```json
|
|
6122
|
+
{
|
|
6123
|
+
"status": 403,
|
|
6124
|
+
"code": "PlanRestricted",
|
|
6125
|
+
"message": "Bad request.",
|
|
6126
|
+
"data": null,
|
|
6127
|
+
"errors": [
|
|
6128
|
+
{
|
|
6129
|
+
"field": "full_name",
|
|
6130
|
+
"code": "Required",
|
|
6131
|
+
"message": "Full Name cannot be blank."
|
|
6132
|
+
}
|
|
6133
|
+
]
|
|
6134
|
+
}
|
|
6135
|
+
```
|
|
6136
|
+
|
|
6137
|
+
##### 404 — The workspace does not exist, or the scheduled send is not the workspace's.
|
|
6138
|
+
|
|
6139
|
+
```json
|
|
6140
|
+
{
|
|
6141
|
+
"status": 404,
|
|
6142
|
+
"message": "Scheduled send not found."
|
|
6143
|
+
}
|
|
6144
|
+
```
|
|
6145
|
+
|
|
6146
|
+
##### 409 — Only a `pending` scheduled send can be cancelled.
|
|
6147
|
+
|
|
6148
|
+
```json
|
|
6149
|
+
{
|
|
6150
|
+
"status": 409,
|
|
6151
|
+
"message": "Only a pending scheduled send can be cancelled."
|
|
6152
|
+
}
|
|
6153
|
+
```
|
|
6154
|
+
|
|
4989
6155
|
##### 401 — Missing or invalid credentials.
|
|
4990
6156
|
|
|
4991
6157
|
```json
|
|
@@ -5022,11 +6188,11 @@ One evidence image of a signer identity verification that is `InReview`, for the
|
|
|
5022
6188
|
}
|
|
5023
6189
|
```
|
|
5024
6190
|
|
|
5025
|
-
###
|
|
6191
|
+
### Send a scheduled send now
|
|
5026
6192
|
|
|
5027
|
-
`
|
|
6193
|
+
`PUT /v1/accounts/{accountId}/scheduled-sends/{scheduledSendId}/send`
|
|
5028
6194
|
|
|
5029
|
-
|
|
6195
|
+
Makes a `pending` scheduled send's request now rather than at `send_at`: as **Create assignment** or **Create envelope** would make it then, as the member who scheduled it, with the same checks and charges. A refusal answers as that route would answer the member who scheduled it: no documents or credits left, a signer removed, the document already sent, the plan without Envelopes, a `max_total_credits` below the cost now (`409` `CreditCeilingExceeded`), the free plan's daily signer email limit with no room now (`429` `FreePlanEmailLimit`, with `Retry-After`), that member gone from the workspace (`400`) or the workspace's deletion pending (`403`); the send then stays `pending`, to go at `send_at` unless cancelled, and no one is e-mailed. A send already being sent, sent, failed or cancelled answers `409`.
|
|
5030
6196
|
|
|
5031
6197
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
5032
6198
|
|
|
@@ -5034,100 +6200,53 @@ Approves or rejects a signer whose identity verification is `InReview`, while th
|
|
|
5034
6200
|
|
|
5035
6201
|
| Name | In | Type | Required | Description |
|
|
5036
6202
|
|---|---|---|---|---|
|
|
5037
|
-
| `
|
|
5038
|
-
| `
|
|
5039
|
-
| `signerId` | path | string | yes | The signer ID. |
|
|
5040
|
-
|
|
5041
|
-
#### Request Body (required)
|
|
5042
|
-
|
|
5043
|
-
Fields (`application/json`):
|
|
5044
|
-
|
|
5045
|
-
- `decision` (string, required)
|
|
5046
|
-
- `note` (string | null) — Optional. Recorded in the activity log and sent to the provider; never shown to the signer.
|
|
5047
|
-
|
|
5048
|
-
Example:
|
|
5049
|
-
|
|
5050
|
-
```json
|
|
5051
|
-
{
|
|
5052
|
-
"decision": "Approved",
|
|
5053
|
-
"note": "Conferido por videochamada."
|
|
5054
|
-
}
|
|
5055
|
-
```
|
|
6203
|
+
| `accountId` | path | string | yes | Workspace account ID. |
|
|
6204
|
+
| `scheduledSendId` | path | string | yes | The scheduled send ID. |
|
|
5056
6205
|
|
|
5057
6206
|
#### Responses
|
|
5058
6207
|
|
|
5059
|
-
##### 200 —
|
|
6208
|
+
##### 200 — The scheduled send, `sent`, with the assignment or envelope it created
|
|
5060
6209
|
|
|
5061
6210
|
```json
|
|
5062
6211
|
{
|
|
5063
6212
|
"data": {
|
|
5064
|
-
"
|
|
5065
|
-
"
|
|
5066
|
-
"
|
|
5067
|
-
"
|
|
5068
|
-
|
|
5069
|
-
{
|
|
5070
|
-
"code": "NAME_MISMATCH",
|
|
5071
|
-
"description": "Nome no documento difere do cadastrado (similaridade 52%)"
|
|
5072
|
-
}
|
|
5073
|
-
],
|
|
5074
|
-
"evidence_available": true,
|
|
5075
|
-
"expected": null,
|
|
5076
|
-
"document": null,
|
|
5077
|
-
"matches": null,
|
|
5078
|
-
"checks": [
|
|
5079
|
-
{
|
|
5080
|
-
"name": "name",
|
|
5081
|
-
"result": "review",
|
|
5082
|
-
"score": 0.5217,
|
|
5083
|
-
"reasons": [
|
|
5084
|
-
"NAME_MISMATCH"
|
|
5085
|
-
]
|
|
5086
|
-
}
|
|
5087
|
-
],
|
|
5088
|
-
"images": [
|
|
5089
|
-
"document_front",
|
|
5090
|
-
"document_back",
|
|
5091
|
-
"face"
|
|
6213
|
+
"resource": "scheduled_send",
|
|
6214
|
+
"id": "example_id_27",
|
|
6215
|
+
"type": "assignment",
|
|
6216
|
+
"document_ids": [
|
|
6217
|
+
"example_id_3"
|
|
5092
6218
|
],
|
|
5093
|
-
"
|
|
5094
|
-
"
|
|
5095
|
-
"
|
|
5096
|
-
"
|
|
5097
|
-
"
|
|
5098
|
-
"
|
|
6219
|
+
"status": "pending",
|
|
6220
|
+
"send_at": "2026-11-20T12:00:00Z",
|
|
6221
|
+
"next_attempt_at": null,
|
|
6222
|
+
"assignment_id": null,
|
|
6223
|
+
"envelope_id": null,
|
|
6224
|
+
"failure_reason": null,
|
|
6225
|
+
"created_at": "2026-11-14T18:00:00Z",
|
|
6226
|
+
"processed_at": null
|
|
5099
6227
|
},
|
|
5100
6228
|
"status": 200,
|
|
5101
6229
|
"message": ""
|
|
5102
6230
|
}
|
|
5103
6231
|
```
|
|
5104
6232
|
|
|
5105
|
-
##### 400 —
|
|
6233
|
+
##### 400 — The request refused as **Create assignment** or **Create envelope** refuses it, or the member who scheduled it has left the workspace. The send stays `pending`.
|
|
5106
6234
|
|
|
5107
6235
|
```json
|
|
5108
6236
|
{
|
|
5109
6237
|
"status": 400,
|
|
5110
|
-
"message": "
|
|
5111
|
-
"data": null,
|
|
5112
|
-
"code": "PlanRestricted",
|
|
5113
|
-
"errors": [
|
|
5114
|
-
{
|
|
5115
|
-
"field": "full_name",
|
|
5116
|
-
"code": "Required",
|
|
5117
|
-
"message": "Full Name cannot be blank."
|
|
5118
|
-
}
|
|
5119
|
-
]
|
|
6238
|
+
"message": "Account does not have enough documents."
|
|
5120
6239
|
}
|
|
5121
6240
|
```
|
|
5122
6241
|
|
|
5123
|
-
##### 403 —
|
|
6242
|
+
##### 403 — The workspace's plan lacks a feature the request uses (`PlanRestricted`), the free workspace exceeds three signers (`FreePlanSignerLimit`), or an OAuth app's token lacks `documents:write` (`InsufficientScope`); also a deactivated membership, a role, or the workspace's deletion pending. The send stays `pending`.
|
|
5124
6243
|
|
|
5125
6244
|
```json
|
|
5126
6245
|
{
|
|
5127
6246
|
"status": 403,
|
|
5128
6247
|
"message": "Bad request.",
|
|
5129
|
-
"data": null,
|
|
5130
6248
|
"code": "PlanRestricted",
|
|
6249
|
+
"data": null,
|
|
5131
6250
|
"errors": [
|
|
5132
6251
|
{
|
|
5133
6252
|
"field": "full_name",
|
|
@@ -5138,14 +6257,32 @@ Example:
|
|
|
5138
6257
|
}
|
|
5139
6258
|
```
|
|
5140
6259
|
|
|
5141
|
-
##### 404 —
|
|
6260
|
+
##### 404 — The workspace does not exist, or the scheduled send is not the workspace's; or the document an assignment sends no longer exists (`Document not found.`), and the send stays `pending`.
|
|
5142
6261
|
|
|
5143
6262
|
```json
|
|
5144
6263
|
{
|
|
5145
6264
|
"status": 404,
|
|
6265
|
+
"message": "Scheduled send not found."
|
|
6266
|
+
}
|
|
6267
|
+
```
|
|
6268
|
+
|
|
6269
|
+
##### 409 — Only a `pending` scheduled send can be sent now; or the request's `max_total_credits` is below what it costs now (`CreditCeilingExceeded`, nothing charged), and the send stays `pending`.
|
|
6270
|
+
|
|
6271
|
+
```json
|
|
6272
|
+
{
|
|
6273
|
+
"status": 409,
|
|
6274
|
+
"message": "Only a pending scheduled send can be sent now."
|
|
6275
|
+
}
|
|
6276
|
+
```
|
|
6277
|
+
|
|
6278
|
+
##### 429 — The free plan's daily signer email limit has no room for its invitations now (`FreePlanEmailLimit`); `Retry-After` gives the seconds until it has. Nothing is charged and the send stays `pending`.
|
|
6279
|
+
|
|
6280
|
+
```json
|
|
6281
|
+
{
|
|
6282
|
+
"status": 429,
|
|
5146
6283
|
"message": "Bad request.",
|
|
5147
|
-
"data": null,
|
|
5148
6284
|
"code": "PlanRestricted",
|
|
6285
|
+
"data": null,
|
|
5149
6286
|
"errors": [
|
|
5150
6287
|
{
|
|
5151
6288
|
"field": "full_name",
|
|
@@ -5224,7 +6361,7 @@ List all WhatsApp notification messages sent for an assignment. The response inc
|
|
|
5224
6361
|
}
|
|
5225
6362
|
],
|
|
5226
6363
|
"phone_number": "+5500000000000",
|
|
5227
|
-
"signer_id": "
|
|
6364
|
+
"signer_id": "example_id_28"
|
|
5228
6365
|
}
|
|
5229
6366
|
],
|
|
5230
6367
|
"status": 200,
|
|
@@ -5274,7 +6411,7 @@ List all WhatsApp notification messages sent for an assignment. The response inc
|
|
|
5274
6411
|
|
|
5275
6412
|
`POST /v1/login`
|
|
5276
6413
|
|
|
5277
|
-
Authenticate with email and password and receive a JWT access token.
|
|
6414
|
+
Authenticate with email and password and receive a JWT access token. Returns `403` with code `UserInactive` when the password is right but the user has been deactivated.
|
|
5278
6415
|
|
|
5279
6416
|
**Authentication:** none (public endpoint).
|
|
5280
6417
|
|
|
@@ -5303,7 +6440,7 @@ Example:
|
|
|
5303
6440
|
"data": {
|
|
5304
6441
|
"access_token": "example_credential",
|
|
5305
6442
|
"user": {
|
|
5306
|
-
"id": "
|
|
6443
|
+
"id": "example_id_29",
|
|
5307
6444
|
"name": "John Smith",
|
|
5308
6445
|
"email": "user9@example.com",
|
|
5309
6446
|
"telephone": "+5500000000000",
|
|
@@ -5348,6 +6485,24 @@ Example:
|
|
|
5348
6485
|
}
|
|
5349
6486
|
```
|
|
5350
6487
|
|
|
6488
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
6489
|
+
|
|
6490
|
+
```json
|
|
6491
|
+
{
|
|
6492
|
+
"status": 403,
|
|
6493
|
+
"message": "Bad request.",
|
|
6494
|
+
"data": null,
|
|
6495
|
+
"code": "PlanRestricted",
|
|
6496
|
+
"errors": [
|
|
6497
|
+
{
|
|
6498
|
+
"field": "full_name",
|
|
6499
|
+
"code": "Required",
|
|
6500
|
+
"message": "Full Name cannot be blank."
|
|
6501
|
+
}
|
|
6502
|
+
]
|
|
6503
|
+
}
|
|
6504
|
+
```
|
|
6505
|
+
|
|
5351
6506
|
##### 500 — Unexpected server error.
|
|
5352
6507
|
|
|
5353
6508
|
```json
|
|
@@ -5659,7 +6814,7 @@ Example:
|
|
|
5659
6814
|
"data": {
|
|
5660
6815
|
"access_token": "example_credential",
|
|
5661
6816
|
"user": {
|
|
5662
|
-
"id": "
|
|
6817
|
+
"id": "example_id_29",
|
|
5663
6818
|
"name": "John Smith",
|
|
5664
6819
|
"email": "user9@example.com",
|
|
5665
6820
|
"telephone": "+5500000000000",
|
|
@@ -5741,7 +6896,7 @@ The authenticated user's enrolled two-factor methods and how many recovery codes
|
|
|
5741
6896
|
"data": {
|
|
5742
6897
|
"methods": [
|
|
5743
6898
|
{
|
|
5744
|
-
"id": "
|
|
6899
|
+
"id": "example_id_30",
|
|
5745
6900
|
"type": "Totp",
|
|
5746
6901
|
"label": "My phone",
|
|
5747
6902
|
"confirmed_at": "2026-09-09T14:21:03Z",
|
|
@@ -5820,7 +6975,7 @@ Example:
|
|
|
5820
6975
|
```json
|
|
5821
6976
|
{
|
|
5822
6977
|
"data": {
|
|
5823
|
-
"id": "
|
|
6978
|
+
"id": "example_id_30",
|
|
5824
6979
|
"secret": "example_secret",
|
|
5825
6980
|
"provisioning_uri": "https://example.com/example-url-11"
|
|
5826
6981
|
},
|
|
@@ -5886,7 +7041,7 @@ Example:
|
|
|
5886
7041
|
|
|
5887
7042
|
```json
|
|
5888
7043
|
{
|
|
5889
|
-
"id": "
|
|
7044
|
+
"id": "example_id_30",
|
|
5890
7045
|
"code": "123456",
|
|
5891
7046
|
"password": "example_secret",
|
|
5892
7047
|
"reauth_code": "string"
|
|
@@ -6226,7 +7381,7 @@ Example:
|
|
|
6226
7381
|
"data": {
|
|
6227
7382
|
"access_token": "example_credential",
|
|
6228
7383
|
"user": {
|
|
6229
|
-
"id": "
|
|
7384
|
+
"id": "example_id_29",
|
|
6230
7385
|
"name": "John Smith",
|
|
6231
7386
|
"email": "user9@example.com",
|
|
6232
7387
|
"telephone": "+5500000000000",
|
|
@@ -6440,7 +7595,7 @@ Retrieve a masked version of the existing API key. The full key cannot be retrie
|
|
|
6440
7595
|
|
|
6441
7596
|
`POST /v1/users/api-keys`
|
|
6442
7597
|
|
|
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.
|
|
7598
|
+
Generate an API key for the user, used via the `X-Api-Key` header. Generating a new key deletes the previous one. Never use an API key from a front-end application. Requires a verified e-mail address and a confirmed two-factor authentication method. Otherwise returns `403` with code `EmailNotVerified` or `MfaRequired`.
|
|
6444
7599
|
|
|
6445
7600
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
6446
7601
|
|
|
@@ -6472,6 +7627,24 @@ Example:
|
|
|
6472
7627
|
}
|
|
6473
7628
|
```
|
|
6474
7629
|
|
|
7630
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
7631
|
+
|
|
7632
|
+
```json
|
|
7633
|
+
{
|
|
7634
|
+
"status": 403,
|
|
7635
|
+
"message": "Bad request.",
|
|
7636
|
+
"data": null,
|
|
7637
|
+
"code": "PlanRestricted",
|
|
7638
|
+
"errors": [
|
|
7639
|
+
{
|
|
7640
|
+
"field": "full_name",
|
|
7641
|
+
"code": "Required",
|
|
7642
|
+
"message": "Full Name cannot be blank."
|
|
7643
|
+
}
|
|
7644
|
+
]
|
|
7645
|
+
}
|
|
7646
|
+
```
|
|
7647
|
+
|
|
6475
7648
|
##### 401 — Missing or invalid credentials.
|
|
6476
7649
|
|
|
6477
7650
|
```json
|
|
@@ -6604,7 +7777,7 @@ List the contract terms tracked on the workspace's documents, most recently upda
|
|
|
6604
7777
|
"message": "",
|
|
6605
7778
|
"data": [
|
|
6606
7779
|
{
|
|
6607
|
-
"document_id": "
|
|
7780
|
+
"document_id": "example_id_31",
|
|
6608
7781
|
"status": "active",
|
|
6609
7782
|
"counterparty_name": "Acme Ltda",
|
|
6610
7783
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -6616,14 +7789,14 @@ List the contract terms tracked on the workspace's documents, most recently upda
|
|
|
6616
7789
|
"renewal_term_months": 12,
|
|
6617
7790
|
"notice_period_days": 30,
|
|
6618
7791
|
"term": 1,
|
|
6619
|
-
"owner_id": "
|
|
7792
|
+
"owner_id": "example_id_32",
|
|
6620
7793
|
"metadata": {
|
|
6621
7794
|
"crm_stage": "won"
|
|
6622
7795
|
},
|
|
6623
7796
|
"external_references": [
|
|
6624
7797
|
{
|
|
6625
7798
|
"system": "hubspot",
|
|
6626
|
-
"id": "
|
|
7799
|
+
"id": "example_id_33"
|
|
6627
7800
|
}
|
|
6628
7801
|
],
|
|
6629
7802
|
"created_at": "2026-10-23T12:00:00Z",
|
|
@@ -6641,7 +7814,7 @@ List the contract terms tracked on the workspace's documents, most recently upda
|
|
|
6641
7814
|
"message": "",
|
|
6642
7815
|
"data": [
|
|
6643
7816
|
{
|
|
6644
|
-
"document_id": "
|
|
7817
|
+
"document_id": "example_id_31",
|
|
6645
7818
|
"status": "active",
|
|
6646
7819
|
"counterparty_name": "Acme Ltda",
|
|
6647
7820
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -6653,20 +7826,20 @@ List the contract terms tracked on the workspace's documents, most recently upda
|
|
|
6653
7826
|
"renewal_term_months": 12,
|
|
6654
7827
|
"notice_period_days": 30,
|
|
6655
7828
|
"term": 1,
|
|
6656
|
-
"owner_id": "
|
|
7829
|
+
"owner_id": "example_id_32",
|
|
6657
7830
|
"metadata": {
|
|
6658
7831
|
"crm_stage": "won"
|
|
6659
7832
|
},
|
|
6660
7833
|
"external_references": [
|
|
6661
7834
|
{
|
|
6662
7835
|
"system": "hubspot",
|
|
6663
|
-
"id": "
|
|
7836
|
+
"id": "example_id_33"
|
|
6664
7837
|
}
|
|
6665
7838
|
],
|
|
6666
7839
|
"created_at": "2026-10-23T12:00:00Z",
|
|
6667
7840
|
"updated_at": "2026-10-23T12:00:00Z",
|
|
6668
7841
|
"document": {
|
|
6669
|
-
"id": "
|
|
7842
|
+
"id": "example_id_31",
|
|
6670
7843
|
"account_id": "example_id_4",
|
|
6671
7844
|
"template_id": null,
|
|
6672
7845
|
"name": "Contrato de prestação de serviços.pdf",
|
|
@@ -6773,7 +7946,7 @@ The contract terms tracked on a document, with `amendments`: the documents that
|
|
|
6773
7946
|
"message": "",
|
|
6774
7947
|
"data": {
|
|
6775
7948
|
"resource": "document_contract",
|
|
6776
|
-
"document_id": "
|
|
7949
|
+
"document_id": "example_id_31",
|
|
6777
7950
|
"status": "active",
|
|
6778
7951
|
"counterparty_name": "Acme Ltda",
|
|
6779
7952
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -6785,23 +7958,23 @@ The contract terms tracked on a document, with `amendments`: the documents that
|
|
|
6785
7958
|
"renewal_term_months": 12,
|
|
6786
7959
|
"notice_period_days": 30,
|
|
6787
7960
|
"term": 2,
|
|
6788
|
-
"owner_id": "
|
|
7961
|
+
"owner_id": "example_id_32",
|
|
6789
7962
|
"metadata": {
|
|
6790
7963
|
"crm_stage": "won"
|
|
6791
7964
|
},
|
|
6792
7965
|
"external_references": [
|
|
6793
7966
|
{
|
|
6794
7967
|
"system": "hubspot",
|
|
6795
|
-
"id": "
|
|
7968
|
+
"id": "example_id_33"
|
|
6796
7969
|
}
|
|
6797
7970
|
],
|
|
6798
7971
|
"created_at": "2026-10-23T12:00:00Z",
|
|
6799
7972
|
"updated_at": "2027-05-12T18:20:00Z",
|
|
6800
7973
|
"amendments": [
|
|
6801
7974
|
{
|
|
6802
|
-
"document_id": "
|
|
7975
|
+
"document_id": "example_id_34",
|
|
6803
7976
|
"document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
|
|
6804
|
-
"parent_document_id": "
|
|
7977
|
+
"parent_document_id": "example_id_31",
|
|
6805
7978
|
"relation_type": "amendment",
|
|
6806
7979
|
"number": 1,
|
|
6807
7980
|
"status": "applied",
|
|
@@ -6843,9 +8016,9 @@ The contract terms tracked on a document, with `amendments`: the documents that
|
|
|
6843
8016
|
"message": "",
|
|
6844
8017
|
"data": {
|
|
6845
8018
|
"resource": "document_contract_amendment",
|
|
6846
|
-
"document_id": "
|
|
8019
|
+
"document_id": "example_id_34",
|
|
6847
8020
|
"document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
|
|
6848
|
-
"parent_document_id": "
|
|
8021
|
+
"parent_document_id": "example_id_31",
|
|
6849
8022
|
"relation_type": "amendment",
|
|
6850
8023
|
"number": null,
|
|
6851
8024
|
"status": "pending",
|
|
@@ -6973,14 +8146,14 @@ Example — Set every term:
|
|
|
6973
8146
|
"auto_renew": true,
|
|
6974
8147
|
"renewal_term_months": 12,
|
|
6975
8148
|
"notice_period_days": 30,
|
|
6976
|
-
"owner_id": "
|
|
8149
|
+
"owner_id": "example_id_32",
|
|
6977
8150
|
"metadata": {
|
|
6978
8151
|
"crm_stage": "won"
|
|
6979
8152
|
},
|
|
6980
8153
|
"external_references": [
|
|
6981
8154
|
{
|
|
6982
8155
|
"system": "hubspot",
|
|
6983
|
-
"id": "
|
|
8156
|
+
"id": "example_id_33"
|
|
6984
8157
|
}
|
|
6985
8158
|
]
|
|
6986
8159
|
}
|
|
@@ -7002,11 +8175,11 @@ Example — Replace the external references:
|
|
|
7002
8175
|
"external_references": [
|
|
7003
8176
|
{
|
|
7004
8177
|
"system": "hubspot",
|
|
7005
|
-
"id": "
|
|
8178
|
+
"id": "example_id_33"
|
|
7006
8179
|
},
|
|
7007
8180
|
{
|
|
7008
8181
|
"system": "erp",
|
|
7009
|
-
"id": "
|
|
8182
|
+
"id": "example_id_35"
|
|
7010
8183
|
}
|
|
7011
8184
|
]
|
|
7012
8185
|
}
|
|
@@ -7016,7 +8189,7 @@ Example — Link an aditivo that changes the value and the end date:
|
|
|
7016
8189
|
|
|
7017
8190
|
```json
|
|
7018
8191
|
{
|
|
7019
|
-
"parent_document_id": "
|
|
8192
|
+
"parent_document_id": "example_id_31",
|
|
7020
8193
|
"relation_type": "amendment",
|
|
7021
8194
|
"value": 130000,
|
|
7022
8195
|
"end_date": "2028-06-30"
|
|
@@ -7035,7 +8208,7 @@ Example — Link an aditivo that changes the value and the end date:
|
|
|
7035
8208
|
"message": "",
|
|
7036
8209
|
"data": {
|
|
7037
8210
|
"resource": "document_contract",
|
|
7038
|
-
"document_id": "
|
|
8211
|
+
"document_id": "example_id_31",
|
|
7039
8212
|
"status": "active",
|
|
7040
8213
|
"counterparty_name": "Acme Ltda",
|
|
7041
8214
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -7047,14 +8220,14 @@ Example — Link an aditivo that changes the value and the end date:
|
|
|
7047
8220
|
"renewal_term_months": 12,
|
|
7048
8221
|
"notice_period_days": 30,
|
|
7049
8222
|
"term": 1,
|
|
7050
|
-
"owner_id": "
|
|
8223
|
+
"owner_id": "example_id_32",
|
|
7051
8224
|
"metadata": {
|
|
7052
8225
|
"crm_stage": "won"
|
|
7053
8226
|
},
|
|
7054
8227
|
"external_references": [
|
|
7055
8228
|
{
|
|
7056
8229
|
"system": "hubspot",
|
|
7057
|
-
"id": "
|
|
8230
|
+
"id": "example_id_33"
|
|
7058
8231
|
}
|
|
7059
8232
|
],
|
|
7060
8233
|
"created_at": "2026-10-23T12:00:00Z",
|
|
@@ -7071,9 +8244,9 @@ Example — Link an aditivo that changes the value and the end date:
|
|
|
7071
8244
|
"message": "",
|
|
7072
8245
|
"data": {
|
|
7073
8246
|
"resource": "document_contract_amendment",
|
|
7074
|
-
"document_id": "
|
|
8247
|
+
"document_id": "example_id_34",
|
|
7075
8248
|
"document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
|
|
7076
|
-
"parent_document_id": "
|
|
8249
|
+
"parent_document_id": "example_id_31",
|
|
7077
8250
|
"relation_type": "amendment",
|
|
7078
8251
|
"number": null,
|
|
7079
8252
|
"status": "pending",
|
|
@@ -7113,9 +8286,9 @@ Example — Link an aditivo that changes the value and the end date:
|
|
|
7113
8286
|
"message": "",
|
|
7114
8287
|
"data": {
|
|
7115
8288
|
"resource": "document_contract_amendment",
|
|
7116
|
-
"document_id": "
|
|
8289
|
+
"document_id": "example_id_34",
|
|
7117
8290
|
"document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
|
|
7118
|
-
"parent_document_id": "
|
|
8291
|
+
"parent_document_id": "example_id_31",
|
|
7119
8292
|
"relation_type": "amendment",
|
|
7120
8293
|
"number": 1,
|
|
7121
8294
|
"status": "applied",
|
|
@@ -7261,7 +8434,7 @@ The family the document belongs to, seen from its root: the contract terms with
|
|
|
7261
8434
|
"message": "",
|
|
7262
8435
|
"data": {
|
|
7263
8436
|
"resource": "document_contract",
|
|
7264
|
-
"document_id": "
|
|
8437
|
+
"document_id": "example_id_31",
|
|
7265
8438
|
"status": "active",
|
|
7266
8439
|
"counterparty_name": "Acme Ltda",
|
|
7267
8440
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -7273,23 +8446,23 @@ The family the document belongs to, seen from its root: the contract terms with
|
|
|
7273
8446
|
"renewal_term_months": 12,
|
|
7274
8447
|
"notice_period_days": 30,
|
|
7275
8448
|
"term": 2,
|
|
7276
|
-
"owner_id": "
|
|
8449
|
+
"owner_id": "example_id_32",
|
|
7277
8450
|
"metadata": {
|
|
7278
8451
|
"crm_stage": "won"
|
|
7279
8452
|
},
|
|
7280
8453
|
"external_references": [
|
|
7281
8454
|
{
|
|
7282
8455
|
"system": "hubspot",
|
|
7283
|
-
"id": "
|
|
8456
|
+
"id": "example_id_33"
|
|
7284
8457
|
}
|
|
7285
8458
|
],
|
|
7286
8459
|
"created_at": "2026-10-23T12:00:00Z",
|
|
7287
8460
|
"updated_at": "2027-05-12T18:20:00Z",
|
|
7288
8461
|
"amendments": [
|
|
7289
8462
|
{
|
|
7290
|
-
"document_id": "
|
|
8463
|
+
"document_id": "example_id_34",
|
|
7291
8464
|
"document_name": "Aditivo 1 - Contrato de prestação de serviços.pdf",
|
|
7292
|
-
"parent_document_id": "
|
|
8465
|
+
"parent_document_id": "example_id_31",
|
|
7293
8466
|
"relation_type": "amendment",
|
|
7294
8467
|
"number": 1,
|
|
7295
8468
|
"status": "applied",
|
|
@@ -7423,7 +8596,7 @@ Example — Renew to a date with a new value:
|
|
|
7423
8596
|
"message": "",
|
|
7424
8597
|
"data": {
|
|
7425
8598
|
"resource": "document_contract",
|
|
7426
|
-
"document_id": "
|
|
8599
|
+
"document_id": "example_id_31",
|
|
7427
8600
|
"status": "active",
|
|
7428
8601
|
"counterparty_name": "Acme Ltda",
|
|
7429
8602
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -7435,14 +8608,14 @@ Example — Renew to a date with a new value:
|
|
|
7435
8608
|
"renewal_term_months": 12,
|
|
7436
8609
|
"notice_period_days": 30,
|
|
7437
8610
|
"term": 2,
|
|
7438
|
-
"owner_id": "
|
|
8611
|
+
"owner_id": "example_id_32",
|
|
7439
8612
|
"metadata": {
|
|
7440
8613
|
"crm_stage": "won"
|
|
7441
8614
|
},
|
|
7442
8615
|
"external_references": [
|
|
7443
8616
|
{
|
|
7444
8617
|
"system": "hubspot",
|
|
7445
|
-
"id": "
|
|
8618
|
+
"id": "example_id_33"
|
|
7446
8619
|
}
|
|
7447
8620
|
],
|
|
7448
8621
|
"created_at": "2026-10-23T12:00:00Z",
|
|
@@ -7580,7 +8753,7 @@ Example — Terminate with a reason:
|
|
|
7580
8753
|
"message": "",
|
|
7581
8754
|
"data": {
|
|
7582
8755
|
"resource": "document_contract",
|
|
7583
|
-
"document_id": "
|
|
8756
|
+
"document_id": "example_id_31",
|
|
7584
8757
|
"status": "terminated",
|
|
7585
8758
|
"counterparty_name": "Acme Ltda",
|
|
7586
8759
|
"counterparty_taxpayer_id": "00000000000",
|
|
@@ -7592,14 +8765,14 @@ Example — Terminate with a reason:
|
|
|
7592
8765
|
"renewal_term_months": 12,
|
|
7593
8766
|
"notice_period_days": 30,
|
|
7594
8767
|
"term": 1,
|
|
7595
|
-
"owner_id": "
|
|
8768
|
+
"owner_id": "example_id_32",
|
|
7596
8769
|
"metadata": {
|
|
7597
8770
|
"crm_stage": "won"
|
|
7598
8771
|
},
|
|
7599
8772
|
"external_references": [
|
|
7600
8773
|
{
|
|
7601
8774
|
"system": "hubspot",
|
|
7602
|
-
"id": "
|
|
8775
|
+
"id": "example_id_33"
|
|
7603
8776
|
}
|
|
7604
8777
|
],
|
|
7605
8778
|
"created_at": "2026-10-23T12:00:00Z",
|
|
@@ -7719,7 +8892,7 @@ List the origins allowed to embed the workspace's signing pages, oldest first. R
|
|
|
7719
8892
|
{
|
|
7720
8893
|
"data": [
|
|
7721
8894
|
{
|
|
7722
|
-
"id": "
|
|
8895
|
+
"id": "example_id_36",
|
|
7723
8896
|
"origin": "https://example.com/example-url-14",
|
|
7724
8897
|
"created_at": "2026-11-04T12:05:00Z"
|
|
7725
8898
|
}
|
|
@@ -7818,7 +8991,7 @@ Example:
|
|
|
7818
8991
|
```json
|
|
7819
8992
|
{
|
|
7820
8993
|
"data": {
|
|
7821
|
-
"id": "
|
|
8994
|
+
"id": "example_id_36",
|
|
7822
8995
|
"origin": "https://example.com/example-url-14",
|
|
7823
8996
|
"created_at": "2026-11-04T12:05:00Z"
|
|
7824
8997
|
},
|
|
@@ -7935,7 +9108,7 @@ Example:
|
|
|
7935
9108
|
```json
|
|
7936
9109
|
{
|
|
7937
9110
|
"data": {
|
|
7938
|
-
"id": "
|
|
9111
|
+
"id": "example_id_36",
|
|
7939
9112
|
"origin": "https://example.com/example-url-14",
|
|
7940
9113
|
"created_at": "2026-11-04T12:05:00Z"
|
|
7941
9114
|
},
|
|
@@ -8278,8 +9451,8 @@ Example:
|
|
|
8278
9451
|
{
|
|
8279
9452
|
"data": {
|
|
8280
9453
|
"signer_access_code": "example_secret",
|
|
8281
|
-
"signer_id": "
|
|
8282
|
-
"document_id": "
|
|
9454
|
+
"signer_id": "example_id_36",
|
|
9455
|
+
"document_id": "example_id_37",
|
|
8283
9456
|
"verification_method": "Email",
|
|
8284
9457
|
"embed_origins": [
|
|
8285
9458
|
"https://example.com/example-url-14"
|
|
@@ -8341,7 +9514,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
|
|
|
8341
9514
|
"data": [
|
|
8342
9515
|
{
|
|
8343
9516
|
"resource": "envelope",
|
|
8344
|
-
"id": "
|
|
9517
|
+
"id": "example_id_38",
|
|
8345
9518
|
"name": "Contrato de prestação de serviços",
|
|
8346
9519
|
"message": "Segue o contrato e seus anexos.",
|
|
8347
9520
|
"documents": [
|
|
@@ -8356,7 +9529,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
|
|
|
8356
9529
|
},
|
|
8357
9530
|
"signers": [
|
|
8358
9531
|
{
|
|
8359
|
-
"id": "
|
|
9532
|
+
"id": "example_id_12",
|
|
8360
9533
|
"full_name": "Example User",
|
|
8361
9534
|
"email": "user10@example.com",
|
|
8362
9535
|
"whatsapp_phone_number": "+5500000000000",
|
|
@@ -8477,7 +9650,7 @@ The workspace's envelopes, the most recent first: each with its documents in ord
|
|
|
8477
9650
|
|
|
8478
9651
|
`POST /v1/accounts/{accountId}/envelopes`
|
|
8479
9652
|
|
|
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.
|
|
9653
|
+
Send several documents to the same signers at once. Each document gets its own assignment and keeps its own status, certificate and downloads; one invitation goes to each signer, through the methods sent for them, for all the documents they are on, from the first of them. A send that fails is recorded on that signer's request (`notification_history`) and doesn't undo the envelope: `200` means the envelope was created, not that every invitation was delivered. The envelope is charged as one document, whatever its documents, each signer's notifications and identity check once for the whole envelope, and each digital-certificate signature on every document it is made on. Every document must be uploaded and processed (`metadata_ready`) with no assignment, and every listed signer must be on at least one document. Each document is signed on its virtual page or, with `collect`, on the fields placed on its pages, as on an assignment; a digital-certificate signer signs only virtual documents, alone on each. Needs the Envelopes feature on the workspace's plan (`403` with code `PlanRestricted` otherwise). Free workspaces can use up to three distinct signers across the envelope (`403 FreePlanSignerLimit`). A refused request creates and charges nothing; `errors` names every field at fault.
|
|
8481
9654
|
|
|
8482
9655
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
8483
9656
|
|
|
@@ -8507,7 +9680,7 @@ Example:
|
|
|
8507
9680
|
"max_total_credits": 1.5,
|
|
8508
9681
|
"signers": [
|
|
8509
9682
|
{
|
|
8510
|
-
"id": "
|
|
9683
|
+
"id": "example_id_12",
|
|
8511
9684
|
"verification_method": "Email",
|
|
8512
9685
|
"notification_methods": [
|
|
8513
9686
|
"Email"
|
|
@@ -8540,11 +9713,11 @@ Example:
|
|
|
8540
9713
|
}
|
|
8541
9714
|
],
|
|
8542
9715
|
"signer_ids": [
|
|
8543
|
-
"
|
|
9716
|
+
"example_id_12"
|
|
8544
9717
|
],
|
|
8545
9718
|
"expires_at": "2026-12-31T23:59:59Z",
|
|
8546
9719
|
"copy_receiver_ids": [
|
|
8547
|
-
"
|
|
9720
|
+
"example_id_39"
|
|
8548
9721
|
]
|
|
8549
9722
|
}
|
|
8550
9723
|
]
|
|
@@ -8559,7 +9732,7 @@ Example:
|
|
|
8559
9732
|
{
|
|
8560
9733
|
"data": {
|
|
8561
9734
|
"resource": "envelope",
|
|
8562
|
-
"id": "
|
|
9735
|
+
"id": "example_id_38",
|
|
8563
9736
|
"name": "Contrato de prestação de serviços",
|
|
8564
9737
|
"message": "Segue o contrato e seus anexos.",
|
|
8565
9738
|
"documents": [
|
|
@@ -8574,7 +9747,7 @@ Example:
|
|
|
8574
9747
|
},
|
|
8575
9748
|
"signers": [
|
|
8576
9749
|
{
|
|
8577
|
-
"id": "
|
|
9750
|
+
"id": "example_id_12",
|
|
8578
9751
|
"full_name": "Example User",
|
|
8579
9752
|
"email": "user10@example.com",
|
|
8580
9753
|
"whatsapp_phone_number": "+5500000000000",
|
|
@@ -8618,7 +9791,7 @@ Example:
|
|
|
8618
9791
|
}
|
|
8619
9792
|
```
|
|
8620
9793
|
|
|
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.
|
|
9794
|
+
##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
8622
9795
|
|
|
8623
9796
|
```json
|
|
8624
9797
|
{
|
|
@@ -8743,7 +9916,7 @@ Example:
|
|
|
8743
9916
|
"max_total_credits": 1.5,
|
|
8744
9917
|
"signers": [
|
|
8745
9918
|
{
|
|
8746
|
-
"id": "
|
|
9919
|
+
"id": "example_id_12",
|
|
8747
9920
|
"verification_method": "Email",
|
|
8748
9921
|
"notification_methods": [
|
|
8749
9922
|
"Email"
|
|
@@ -8776,11 +9949,11 @@ Example:
|
|
|
8776
9949
|
}
|
|
8777
9950
|
],
|
|
8778
9951
|
"signer_ids": [
|
|
8779
|
-
"
|
|
9952
|
+
"example_id_12"
|
|
8780
9953
|
],
|
|
8781
9954
|
"expires_at": "2026-12-31T23:59:59Z",
|
|
8782
9955
|
"copy_receiver_ids": [
|
|
8783
|
-
"
|
|
9956
|
+
"example_id_39"
|
|
8784
9957
|
]
|
|
8785
9958
|
}
|
|
8786
9959
|
]
|
|
@@ -8835,7 +10008,7 @@ Example:
|
|
|
8835
10008
|
}
|
|
8836
10009
|
```
|
|
8837
10010
|
|
|
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.
|
|
10011
|
+
##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
8839
10012
|
|
|
8840
10013
|
```json
|
|
8841
10014
|
{
|
|
@@ -8930,7 +10103,7 @@ One envelope of the workspace: its documents in order, each with its status and
|
|
|
8930
10103
|
{
|
|
8931
10104
|
"data": {
|
|
8932
10105
|
"resource": "envelope",
|
|
8933
|
-
"id": "
|
|
10106
|
+
"id": "example_id_38",
|
|
8934
10107
|
"name": "Contrato de prestação de serviços",
|
|
8935
10108
|
"message": "Segue o contrato e seus anexos.",
|
|
8936
10109
|
"documents": [
|
|
@@ -8945,7 +10118,7 @@ One envelope of the workspace: its documents in order, each with its status and
|
|
|
8945
10118
|
},
|
|
8946
10119
|
"signers": [
|
|
8947
10120
|
{
|
|
8948
|
-
"id": "
|
|
10121
|
+
"id": "example_id_12",
|
|
8949
10122
|
"full_name": "Example User",
|
|
8950
10123
|
"email": "user10@example.com",
|
|
8951
10124
|
"whatsapp_phone_number": "+5500000000000",
|
|
@@ -9193,7 +10366,7 @@ Example:
|
|
|
9193
10366
|
"message": "Segue o contrato e seus anexos.",
|
|
9194
10367
|
"document_ids": [
|
|
9195
10368
|
"example_id_3",
|
|
9196
|
-
"
|
|
10369
|
+
"example_id_40"
|
|
9197
10370
|
]
|
|
9198
10371
|
}
|
|
9199
10372
|
```
|
|
@@ -9206,7 +10379,7 @@ Example:
|
|
|
9206
10379
|
{
|
|
9207
10380
|
"data": {
|
|
9208
10381
|
"resource": "envelope",
|
|
9209
|
-
"id": "
|
|
10382
|
+
"id": "example_id_38",
|
|
9210
10383
|
"name": "Contrato de prestação de serviços",
|
|
9211
10384
|
"message": "Segue o contrato e seus anexos.",
|
|
9212
10385
|
"documents": [
|
|
@@ -9221,7 +10394,7 @@ Example:
|
|
|
9221
10394
|
},
|
|
9222
10395
|
"signers": [
|
|
9223
10396
|
{
|
|
9224
|
-
"id": "
|
|
10397
|
+
"id": "example_id_12",
|
|
9225
10398
|
"full_name": "Example User",
|
|
9226
10399
|
"email": "user10@example.com",
|
|
9227
10400
|
"whatsapp_phone_number": "+5500000000000",
|
|
@@ -9363,7 +10536,7 @@ The envelope's trail: the activities of every document it has had, one taken out
|
|
|
9363
10536
|
{
|
|
9364
10537
|
"data": [
|
|
9365
10538
|
{
|
|
9366
|
-
"document_id": "
|
|
10539
|
+
"document_id": "example_id_41",
|
|
9367
10540
|
"document_name": "Contrato.pdf",
|
|
9368
10541
|
"id": 4,
|
|
9369
10542
|
"event": "assignment_created",
|
|
@@ -9651,7 +10824,129 @@ Cancels every document of the envelope that can still be cancelled, the way dele
|
|
|
9651
10824
|
|
|
9652
10825
|
`PUT /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/resend`
|
|
9653
10826
|
|
|
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.
|
|
10827
|
+
Reminds a signer of the whole envelope at once: one message, the envelope's invitation sent again from their first link, listing the documents they still have to sign and, by e-mail, those they already signed. Paid notification methods are charged once for it, for each message that goes out. Each document they still have to sign records a `signature_requested` event, as the invitation does.
|
|
10828
|
+
|
|
10829
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
10830
|
+
|
|
10831
|
+
#### Parameters
|
|
10832
|
+
|
|
10833
|
+
| Name | In | Type | Required | Description |
|
|
10834
|
+
|---|---|---|---|---|
|
|
10835
|
+
| `accountId` | path | string | yes | Workspace account ID. |
|
|
10836
|
+
| `envelopeId` | path | string | yes | The envelope ID. |
|
|
10837
|
+
| `signerId` | path | string | yes | The signer ID. |
|
|
10838
|
+
|
|
10839
|
+
#### Responses
|
|
10840
|
+
|
|
10841
|
+
##### 200 — Reminder result
|
|
10842
|
+
|
|
10843
|
+
```json
|
|
10844
|
+
{
|
|
10845
|
+
"data": {
|
|
10846
|
+
"is_sent": true,
|
|
10847
|
+
"envelope_id": "example_id_5",
|
|
10848
|
+
"signer_id": "example_id_5"
|
|
10849
|
+
},
|
|
10850
|
+
"status": 200,
|
|
10851
|
+
"message": ""
|
|
10852
|
+
}
|
|
10853
|
+
```
|
|
10854
|
+
|
|
10855
|
+
##### 400 — The signer has nothing left to sign in the envelope: every document of theirs is signed, closed or past its deadline; the signer was reminded less than 2 minutes ago, or is being reminded now, or the workspace already reminded them 10 times in the 24 hours since the first of those reminders (one that may have gone out counts; the signer asking for their link again doesn't; a reminder through any document of the envelope counts); or the account lacks credits for the reminder.
|
|
10856
|
+
|
|
10857
|
+
```json
|
|
10858
|
+
{
|
|
10859
|
+
"status": 400,
|
|
10860
|
+
"message": "This signer has nothing left to sign in this envelope."
|
|
10861
|
+
}
|
|
10862
|
+
```
|
|
10863
|
+
|
|
10864
|
+
##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
10865
|
+
|
|
10866
|
+
```json
|
|
10867
|
+
{
|
|
10868
|
+
"status": 403,
|
|
10869
|
+
"code": "PlanRestricted",
|
|
10870
|
+
"message": "Bad request.",
|
|
10871
|
+
"data": null,
|
|
10872
|
+
"errors": [
|
|
10873
|
+
{
|
|
10874
|
+
"field": "full_name",
|
|
10875
|
+
"code": "Required",
|
|
10876
|
+
"message": "Full Name cannot be blank."
|
|
10877
|
+
}
|
|
10878
|
+
]
|
|
10879
|
+
}
|
|
10880
|
+
```
|
|
10881
|
+
|
|
10882
|
+
##### 404 — The envelope was not found, or the signer is not one of its signers.
|
|
10883
|
+
|
|
10884
|
+
```json
|
|
10885
|
+
{
|
|
10886
|
+
"status": 404,
|
|
10887
|
+
"message": "Signer not found."
|
|
10888
|
+
}
|
|
10889
|
+
```
|
|
10890
|
+
|
|
10891
|
+
##### 409 — The envelope is closed: every document of it is signed, declined, cancelled, expired or failed (`EnvelopeClosed`).
|
|
10892
|
+
|
|
10893
|
+
```json
|
|
10894
|
+
{
|
|
10895
|
+
"status": 409,
|
|
10896
|
+
"code": "PlanRestricted",
|
|
10897
|
+
"message": "Bad request.",
|
|
10898
|
+
"data": null,
|
|
10899
|
+
"errors": [
|
|
10900
|
+
{
|
|
10901
|
+
"field": "full_name",
|
|
10902
|
+
"code": "Required",
|
|
10903
|
+
"message": "Full Name cannot be blank."
|
|
10904
|
+
}
|
|
10905
|
+
]
|
|
10906
|
+
}
|
|
10907
|
+
```
|
|
10908
|
+
|
|
10909
|
+
##### 401 — Missing or invalid credentials.
|
|
10910
|
+
|
|
10911
|
+
```json
|
|
10912
|
+
{
|
|
10913
|
+
"status": 401,
|
|
10914
|
+
"message": "Bad request.",
|
|
10915
|
+
"data": null,
|
|
10916
|
+
"code": "PlanRestricted",
|
|
10917
|
+
"errors": [
|
|
10918
|
+
{
|
|
10919
|
+
"field": "full_name",
|
|
10920
|
+
"code": "Required",
|
|
10921
|
+
"message": "Full Name cannot be blank."
|
|
10922
|
+
}
|
|
10923
|
+
]
|
|
10924
|
+
}
|
|
10925
|
+
```
|
|
10926
|
+
|
|
10927
|
+
##### 500 — Unexpected server error.
|
|
10928
|
+
|
|
10929
|
+
```json
|
|
10930
|
+
{
|
|
10931
|
+
"status": 500,
|
|
10932
|
+
"message": "Bad request.",
|
|
10933
|
+
"data": null,
|
|
10934
|
+
"code": "PlanRestricted",
|
|
10935
|
+
"errors": [
|
|
10936
|
+
{
|
|
10937
|
+
"field": "full_name",
|
|
10938
|
+
"code": "Required",
|
|
10939
|
+
"message": "Full Name cannot be blank."
|
|
10940
|
+
}
|
|
10941
|
+
]
|
|
10942
|
+
}
|
|
10943
|
+
```
|
|
10944
|
+
|
|
10945
|
+
### Estimate envelope reminder cost
|
|
10946
|
+
|
|
10947
|
+
`POST /v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/estimate-resend-cost`
|
|
10948
|
+
|
|
10949
|
+
What reminding a signer of the whole envelope would cost, sending and charging nothing. The reminder is one message per notification method for all of the envelope's documents, so it costs what one document's reminder costs, whatever the number of documents, at the workspace's reminder prices: nothing by e-mail and the WhatsApp resend price by WhatsApp, unless its plan prices them otherwise. Answers as a document's reminder estimate. It does not check whether a reminder would be accepted now: the reminder itself refuses a closed envelope (`409`), and a signer with nothing left to sign or one reminded too recently or too often (`400`).
|
|
9655
10950
|
|
|
9656
10951
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
9657
10952
|
|
|
@@ -9665,29 +10960,27 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
|
|
|
9665
10960
|
|
|
9666
10961
|
#### Responses
|
|
9667
10962
|
|
|
9668
|
-
##### 200 —
|
|
10963
|
+
##### 200 — Cost estimate
|
|
9669
10964
|
|
|
9670
10965
|
```json
|
|
9671
10966
|
{
|
|
9672
10967
|
"data": {
|
|
9673
|
-
"
|
|
9674
|
-
"
|
|
9675
|
-
|
|
10968
|
+
"total": 0.45,
|
|
10969
|
+
"breakdown": [
|
|
10970
|
+
{
|
|
10971
|
+
"code": "NotificationWhatsappResend",
|
|
10972
|
+
"name": "Whatsapp Notification Resend",
|
|
10973
|
+
"cost": 0.45
|
|
10974
|
+
}
|
|
10975
|
+
],
|
|
10976
|
+
"credit_balance": 10,
|
|
10977
|
+
"has_sufficient_credits": true
|
|
9676
10978
|
},
|
|
9677
10979
|
"status": 200,
|
|
9678
10980
|
"message": ""
|
|
9679
10981
|
}
|
|
9680
10982
|
```
|
|
9681
10983
|
|
|
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
10984
|
##### 403 — An OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
9692
10985
|
|
|
9693
10986
|
```json
|
|
@@ -9715,24 +11008,6 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
|
|
|
9715
11008
|
}
|
|
9716
11009
|
```
|
|
9717
11010
|
|
|
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
11011
|
##### 401 — Missing or invalid credentials.
|
|
9737
11012
|
|
|
9738
11013
|
```json
|
|
@@ -9773,7 +11048,7 @@ Reminds a signer of the whole envelope at once: one message, the envelope's invi
|
|
|
9773
11048
|
|
|
9774
11049
|
`POST /v1/accounts/{accountId}/envelopes/{envelopeId}/documents`
|
|
9775
11050
|
|
|
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.
|
|
11051
|
+
Add a document to an open envelope for some of its signers. The document is checked as on creation: a `metadata_ready` document of the workspace with no assignment, signed on its virtual page or, with `collect`, on the fields placed in `entries`, with its own `expires_at` and `copy_receiver_ids`. An envelope holds up to 20 documents, and 60 over its life, ones taken out included: past that, adding answers `400` and sends nothing. It charges only its digital-certificate signatures, the envelope having paid for its document and its signers' notifications and identity checks when it was sent, and goes last in the envelope's order; a signer whose identity check the envelope approved is verified on it too. Each chosen signer is sent the envelope's invitation again, through the methods and with the link of their first invitation, now listing the new document, even once the document that invitation was sent from is taken out; the other signers hear nothing. The signers are the envelope's own: no one new joins once it was sent. Needs the Envelopes feature on the workspace's plan, as creating does. A refused request creates and charges nothing; `errors` names every field at fault.
|
|
9777
11052
|
|
|
9778
11053
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
9779
11054
|
|
|
@@ -9824,11 +11099,11 @@ Example:
|
|
|
9824
11099
|
}
|
|
9825
11100
|
],
|
|
9826
11101
|
"signer_ids": [
|
|
9827
|
-
"
|
|
11102
|
+
"example_id_12"
|
|
9828
11103
|
],
|
|
9829
11104
|
"expires_at": "2026-12-31T23:59:59Z",
|
|
9830
11105
|
"copy_receiver_ids": [
|
|
9831
|
-
"
|
|
11106
|
+
"example_id_39"
|
|
9832
11107
|
]
|
|
9833
11108
|
}
|
|
9834
11109
|
```
|
|
@@ -9841,7 +11116,7 @@ Example:
|
|
|
9841
11116
|
{
|
|
9842
11117
|
"data": {
|
|
9843
11118
|
"resource": "envelope",
|
|
9844
|
-
"id": "
|
|
11119
|
+
"id": "example_id_38",
|
|
9845
11120
|
"name": "Contrato de prestação de serviços",
|
|
9846
11121
|
"message": "Segue o contrato e seus anexos.",
|
|
9847
11122
|
"documents": [
|
|
@@ -9856,7 +11131,7 @@ Example:
|
|
|
9856
11131
|
},
|
|
9857
11132
|
"signers": [
|
|
9858
11133
|
{
|
|
9859
|
-
"id": "
|
|
11134
|
+
"id": "example_id_12",
|
|
9860
11135
|
"full_name": "Example User",
|
|
9861
11136
|
"email": "user10@example.com",
|
|
9862
11137
|
"whatsapp_phone_number": "+5500000000000",
|
|
@@ -9884,7 +11159,7 @@ Example:
|
|
|
9884
11159
|
}
|
|
9885
11160
|
```
|
|
9886
11161
|
|
|
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.
|
|
11162
|
+
##### 400 — Refused as sent; nothing was created or charged. Each field at fault is an entry of `errors`: `id` (missing, or a document that can't take the assignment: not found, not `metadata_ready`, or already assigned); `method` (other than `virtual` or `collect`); `entries` (missing for `collect`, or not a list of pages with fields naming their `signer_id`); `signer_ids` (missing, not a list of ids, listed twice, not a signer of the envelope's documents, for `collect` not exactly the signers on its fields, or a digital-certificate signer on a `collect` document or with another signer); `expires_at` (not text, a number or null); a null `field` when the envelope already has 20 documents or has had 60 in all, ones taken out included, or would hold more than 2,000 fields (a virtual document's being one per signer) or more than 100 copy receivers with this one. A page or field the assignment doesn't find on a `collect` document, a balance too low, an `expires_at` or `copy_receiver_ids` the assignment refuses, and a document another request assigned or put back into processing meanwhile answer `400` with `message` only, as on an assignment.
|
|
9888
11163
|
|
|
9889
11164
|
```json
|
|
9890
11165
|
{
|
|
@@ -9900,7 +11175,7 @@ Example:
|
|
|
9900
11175
|
}
|
|
9901
11176
|
```
|
|
9902
11177
|
|
|
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.
|
|
11178
|
+
##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
9904
11179
|
|
|
9905
11180
|
```json
|
|
9906
11181
|
{
|
|
@@ -10016,7 +11291,7 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
|
|
|
10016
11291
|
{
|
|
10017
11292
|
"data": {
|
|
10018
11293
|
"resource": "envelope",
|
|
10019
|
-
"id": "
|
|
11294
|
+
"id": "example_id_38",
|
|
10020
11295
|
"name": "Contrato de prestação de serviços",
|
|
10021
11296
|
"message": "Segue o contrato e seus anexos.",
|
|
10022
11297
|
"documents": [
|
|
@@ -10031,7 +11306,7 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
|
|
|
10031
11306
|
},
|
|
10032
11307
|
"signers": [
|
|
10033
11308
|
{
|
|
10034
|
-
"id": "
|
|
11309
|
+
"id": "example_id_12",
|
|
10035
11310
|
"full_name": "Example User",
|
|
10036
11311
|
"email": "user10@example.com",
|
|
10037
11312
|
"whatsapp_phone_number": "+5500000000000",
|
|
@@ -10149,6 +11424,193 @@ Take an open document out of the envelope: it is cancelled as cancelling the env
|
|
|
10149
11424
|
}
|
|
10150
11425
|
```
|
|
10151
11426
|
|
|
11427
|
+
### Schedule an envelope
|
|
11428
|
+
|
|
11429
|
+
`POST /v1/accounts/{accountId}/scheduled-sends`
|
|
11430
|
+
|
|
11431
|
+
Keeps a **Create envelope** request and makes it at `send_at`, as the member who scheduled it, through the same checks and charges as **Create envelope** then. Nothing is created, sent or charged now, and nothing changes for its documents: each can still be sent at once, and the scheduled send then fails when it goes. A document takes one pending scheduled send at a time, counting one being sent. The request is checked now as **Estimate envelope cost** checks it (`403 PlanRestricted` without the Envelopes feature, `403 FreePlanSignerLimit` above three signers on free plans, `400` with `errors` on the same fields); the balance is checked when it is sent. A job checks every five minutes and makes the sends that are due; failures go as for **Schedule an assignment**: `failed` with the reason, nothing charged, the member who scheduled it e-mailed, or the workspace's active owners if that member has left. An `Idempotency-Key` is not read here: each call keeps one send. An assignment is scheduled on its document (**Schedule an assignment**).
|
|
11432
|
+
|
|
11433
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
11434
|
+
|
|
11435
|
+
#### Parameters
|
|
11436
|
+
|
|
11437
|
+
| Name | In | Type | Required | Description |
|
|
11438
|
+
|---|---|---|---|---|
|
|
11439
|
+
| `accountId` | path | string | yes | Workspace account ID. |
|
|
11440
|
+
|
|
11441
|
+
#### Request Body (required)
|
|
11442
|
+
|
|
11443
|
+
Fields (`application/json`):
|
|
11444
|
+
|
|
11445
|
+
- `send_at` (object) — When to send: ISO 8601 with its offset (none means UTC), or a Unix time. From one hour to 90 days ahead.
|
|
11446
|
+
- `name` (string, required) — What the invitation calls what is being signed, in place of a document's name. `<` is refused (`400`).
|
|
11447
|
+
- `message` (string | null) — Optional message sent to every signer; their invitation adds the names of the documents they are on.
|
|
11448
|
+
- `max_total_credits` (number) — Optional ceiling on what this request may spend, as on an assignment: refused with `409` and code `CreditCeilingExceeded`, nothing created or charged, when the envelope's total credits are above it. A value that is not a number of credits, zero or more, answers `400`; numeric text counts, as a form-encoded body sends it. The estimate ignores it.
|
|
11449
|
+
- `signers` (array, required) — Every signer of the envelope, once, by id: up to 20. They all sign at once: an envelope takes no `step`.
|
|
11450
|
+
- `documents` (array, required) — The documents, in the order the envelope lists them: up to 20.
|
|
11451
|
+
|
|
11452
|
+
Example:
|
|
11453
|
+
|
|
11454
|
+
```json
|
|
11455
|
+
{
|
|
11456
|
+
"send_at": "2026-11-20T09:00:00-03:00",
|
|
11457
|
+
"name": "Contrato de prestação de serviços",
|
|
11458
|
+
"message": "Segue o contrato e seus anexos.",
|
|
11459
|
+
"max_total_credits": 1.5,
|
|
11460
|
+
"signers": [
|
|
11461
|
+
{
|
|
11462
|
+
"id": "example_id_12",
|
|
11463
|
+
"verification_method": "Email",
|
|
11464
|
+
"notification_methods": [
|
|
11465
|
+
"Email"
|
|
11466
|
+
],
|
|
11467
|
+
"embedded": true
|
|
11468
|
+
}
|
|
11469
|
+
],
|
|
11470
|
+
"documents": [
|
|
11471
|
+
{
|
|
11472
|
+
"id": "example_id_3",
|
|
11473
|
+
"method": "virtual",
|
|
11474
|
+
"entries": [
|
|
11475
|
+
{
|
|
11476
|
+
"page_id": "example_id_5",
|
|
11477
|
+
"fields": [
|
|
11478
|
+
{
|
|
11479
|
+
"signer_id": "example_id_5",
|
|
11480
|
+
"field_id": "example_id_5",
|
|
11481
|
+
"display_settings": {
|
|
11482
|
+
"left": 69,
|
|
11483
|
+
"top": 282,
|
|
11484
|
+
"width": 421,
|
|
11485
|
+
"height": 45.86,
|
|
11486
|
+
"fontFamily": "Arial",
|
|
11487
|
+
"fontSize": 22,
|
|
11488
|
+
"backgroundColor": "#D5EBFF"
|
|
11489
|
+
}
|
|
11490
|
+
}
|
|
11491
|
+
]
|
|
11492
|
+
}
|
|
11493
|
+
],
|
|
11494
|
+
"signer_ids": [
|
|
11495
|
+
"example_id_12"
|
|
11496
|
+
],
|
|
11497
|
+
"expires_at": "2026-12-31T23:59:59Z",
|
|
11498
|
+
"copy_receiver_ids": [
|
|
11499
|
+
"example_id_39"
|
|
11500
|
+
]
|
|
11501
|
+
}
|
|
11502
|
+
]
|
|
11503
|
+
}
|
|
11504
|
+
```
|
|
11505
|
+
|
|
11506
|
+
#### Responses
|
|
11507
|
+
|
|
11508
|
+
##### 200 — The scheduled send
|
|
11509
|
+
|
|
11510
|
+
```json
|
|
11511
|
+
{
|
|
11512
|
+
"data": {
|
|
11513
|
+
"resource": "scheduled_send",
|
|
11514
|
+
"id": "example_id_27",
|
|
11515
|
+
"type": "assignment",
|
|
11516
|
+
"document_ids": [
|
|
11517
|
+
"example_id_3"
|
|
11518
|
+
],
|
|
11519
|
+
"status": "pending",
|
|
11520
|
+
"send_at": "2026-11-20T12:00:00Z",
|
|
11521
|
+
"next_attempt_at": null,
|
|
11522
|
+
"assignment_id": null,
|
|
11523
|
+
"envelope_id": null,
|
|
11524
|
+
"failure_reason": null,
|
|
11525
|
+
"created_at": "2026-11-14T18:00:00Z",
|
|
11526
|
+
"processed_at": null
|
|
11527
|
+
},
|
|
11528
|
+
"status": 200,
|
|
11529
|
+
"message": ""
|
|
11530
|
+
}
|
|
11531
|
+
```
|
|
11532
|
+
|
|
11533
|
+
##### 400 — `send_at` missing, unreadable, less than an hour or more than 90 days ahead; a document's `expires_at` less than two hours after it; a document already assigned or in a scheduled send pending or being sent; or the request refused as **Estimate envelope cost** refuses it, in `errors`.
|
|
11534
|
+
|
|
11535
|
+
```json
|
|
11536
|
+
{
|
|
11537
|
+
"status": 400,
|
|
11538
|
+
"message": "The scheduled send must be at least one hour ahead."
|
|
11539
|
+
}
|
|
11540
|
+
```
|
|
11541
|
+
|
|
11542
|
+
##### 403 — The workspace's plan lacks the Envelopes feature, or a signer's method or embedded signing the plan lacks (`PlanRestricted`); a free workspace exceeds three signers (`FreePlanSignerLimit`); or an OAuth app's token lacks `documents:write` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.
|
|
11543
|
+
|
|
11544
|
+
```json
|
|
11545
|
+
{
|
|
11546
|
+
"status": 403,
|
|
11547
|
+
"code": "PlanRestricted",
|
|
11548
|
+
"message": "Bad request.",
|
|
11549
|
+
"data": null,
|
|
11550
|
+
"errors": [
|
|
11551
|
+
{
|
|
11552
|
+
"field": "full_name",
|
|
11553
|
+
"code": "Required",
|
|
11554
|
+
"message": "Full Name cannot be blank."
|
|
11555
|
+
}
|
|
11556
|
+
]
|
|
11557
|
+
}
|
|
11558
|
+
```
|
|
11559
|
+
|
|
11560
|
+
##### 404 — The requested resource does not exist.
|
|
11561
|
+
|
|
11562
|
+
```json
|
|
11563
|
+
{
|
|
11564
|
+
"status": 404,
|
|
11565
|
+
"message": "Bad request.",
|
|
11566
|
+
"data": null,
|
|
11567
|
+
"code": "PlanRestricted",
|
|
11568
|
+
"errors": [
|
|
11569
|
+
{
|
|
11570
|
+
"field": "full_name",
|
|
11571
|
+
"code": "Required",
|
|
11572
|
+
"message": "Full Name cannot be blank."
|
|
11573
|
+
}
|
|
11574
|
+
]
|
|
11575
|
+
}
|
|
11576
|
+
```
|
|
11577
|
+
|
|
11578
|
+
##### 401 — Missing or invalid credentials.
|
|
11579
|
+
|
|
11580
|
+
```json
|
|
11581
|
+
{
|
|
11582
|
+
"status": 401,
|
|
11583
|
+
"message": "Bad request.",
|
|
11584
|
+
"data": null,
|
|
11585
|
+
"code": "PlanRestricted",
|
|
11586
|
+
"errors": [
|
|
11587
|
+
{
|
|
11588
|
+
"field": "full_name",
|
|
11589
|
+
"code": "Required",
|
|
11590
|
+
"message": "Full Name cannot be blank."
|
|
11591
|
+
}
|
|
11592
|
+
]
|
|
11593
|
+
}
|
|
11594
|
+
```
|
|
11595
|
+
|
|
11596
|
+
##### 500 — Unexpected server error.
|
|
11597
|
+
|
|
11598
|
+
```json
|
|
11599
|
+
{
|
|
11600
|
+
"status": 500,
|
|
11601
|
+
"message": "Bad request.",
|
|
11602
|
+
"data": null,
|
|
11603
|
+
"code": "PlanRestricted",
|
|
11604
|
+
"errors": [
|
|
11605
|
+
{
|
|
11606
|
+
"field": "full_name",
|
|
11607
|
+
"code": "Required",
|
|
11608
|
+
"message": "Full Name cannot be blank."
|
|
11609
|
+
}
|
|
11610
|
+
]
|
|
11611
|
+
}
|
|
11612
|
+
```
|
|
11613
|
+
|
|
10152
11614
|
## Fields
|
|
10153
11615
|
|
|
10154
11616
|
### List fields
|
|
@@ -10459,7 +11921,7 @@ Fields (`application/json`):
|
|
|
10459
11921
|
|
|
10460
11922
|
- `name` (string)
|
|
10461
11923
|
- `regex` (string | null)
|
|
10462
|
-
- `is_active` (boolean)
|
|
11924
|
+
- `is_active` (boolean) — Whether the field is offered for new placements: the field list leaves an inactive one out unless `include_inactive` is set. Documents and templates already using an inactive field keep working: its values are still validated and signed.
|
|
10463
11925
|
|
|
10464
11926
|
Example:
|
|
10465
11927
|
|
|
@@ -10649,7 +12111,7 @@ Validate an input value against a field definition. Typically called with a sign
|
|
|
10649
12111
|
|
|
10650
12112
|
Fields (`application/json`):
|
|
10651
12113
|
|
|
10652
|
-
- `value` (object, required) — The input value to validate.
|
|
12114
|
+
- `value` (object, required) — The input value to validate. Zero, as a number or as text, is a value; null, `false`, empty text and an empty list are none.
|
|
10653
12115
|
|
|
10654
12116
|
Example:
|
|
10655
12117
|
|
|
@@ -10804,7 +12266,7 @@ Example:
|
|
|
10804
12266
|
```json
|
|
10805
12267
|
[
|
|
10806
12268
|
{
|
|
10807
|
-
"field_id": "
|
|
12269
|
+
"field_id": "example_id_42",
|
|
10808
12270
|
"value": "1111111111111"
|
|
10809
12271
|
}
|
|
10810
12272
|
]
|
|
@@ -10818,7 +12280,7 @@ Example:
|
|
|
10818
12280
|
{
|
|
10819
12281
|
"data": [
|
|
10820
12282
|
{
|
|
10821
|
-
"field_id": "
|
|
12283
|
+
"field_id": "example_id_42",
|
|
10822
12284
|
"type": "cpf",
|
|
10823
12285
|
"success": false,
|
|
10824
12286
|
"error_message": "Invalid CPF."
|
|
@@ -11485,7 +12947,7 @@ Returns the profile of the user owning the access token. Not available to OAuth
|
|
|
11485
12947
|
```json
|
|
11486
12948
|
{
|
|
11487
12949
|
"data": {
|
|
11488
|
-
"id": "
|
|
12950
|
+
"id": "example_id_29",
|
|
11489
12951
|
"name": "John Smith",
|
|
11490
12952
|
"email": "user9@example.com",
|
|
11491
12953
|
"telephone": "+5500000000000",
|
|
@@ -11724,7 +13186,7 @@ Claims about the user who authorized this token. Requires the openid scope; name
|
|
|
11724
13186
|
|
|
11725
13187
|
```json
|
|
11726
13188
|
{
|
|
11727
|
-
"sub": "
|
|
13189
|
+
"sub": "example_id_32",
|
|
11728
13190
|
"name": "Maria Silva",
|
|
11729
13191
|
"email": null,
|
|
11730
13192
|
"email_verified": null
|
|
@@ -11943,7 +13405,7 @@ Retrieve a publicly shared document by ID. Public endpoint.
|
|
|
11943
13405
|
|
|
11944
13406
|
`PUT /v1/public/documents/{documentId}/send-token`
|
|
11945
13407
|
|
|
11946
|
-
|
|
13408
|
+
Sends the signer this document's signature request again, by e-mail, with its existing link, and its verification code when the signer's verification method uses one: nothing is renewed. A `200` means the request was accepted, not that the e-mail was delivered. The document must be pending signature and within its deadline, and `recipient` must be the e-mail address of a signer of the document who has not signed yet and whose turn has come. A signer gets it through this route at most once every two minutes, whoever asks; an envelope's documents share the signer's one interval. A send that failed may still have gone out, so it counts, unless it was refused before sending. Public endpoint.
|
|
11947
13409
|
|
|
11948
13410
|
**Authentication:** none (public endpoint).
|
|
11949
13411
|
|
|
@@ -11958,14 +13420,14 @@ Send a one-time access token to a signer of a public document, so they can view
|
|
|
11958
13420
|
Fields (`application/json`):
|
|
11959
13421
|
|
|
11960
13422
|
- `channel` (string, required) — Where to send the token. Only `email` is supported.
|
|
11961
|
-
- `recipient` (string, required) — The signer's address
|
|
13423
|
+
- `recipient` (string, required) — The signer's e-mail address, as text.
|
|
11962
13424
|
|
|
11963
13425
|
Example:
|
|
11964
13426
|
|
|
11965
13427
|
```json
|
|
11966
13428
|
{
|
|
11967
13429
|
"channel": "email",
|
|
11968
|
-
"recipient": "
|
|
13430
|
+
"recipient": "user2@example.com"
|
|
11969
13431
|
}
|
|
11970
13432
|
```
|
|
11971
13433
|
|
|
@@ -11978,20 +13440,20 @@ Example:
|
|
|
11978
13440
|
"data": {
|
|
11979
13441
|
"document": {
|
|
11980
13442
|
"resource": "document",
|
|
11981
|
-
"id": "
|
|
13443
|
+
"id": "example_id_43",
|
|
11982
13444
|
"name": "Contract.pdf",
|
|
11983
13445
|
"page_count": 3,
|
|
11984
13446
|
"created_by": "Jane Doe"
|
|
11985
13447
|
},
|
|
11986
13448
|
"channel": "email",
|
|
11987
|
-
"recipient": "
|
|
13449
|
+
"recipient": "user2@example.com"
|
|
11988
13450
|
},
|
|
11989
13451
|
"status": 200,
|
|
11990
13452
|
"message": ""
|
|
11991
13453
|
}
|
|
11992
13454
|
```
|
|
11993
13455
|
|
|
11994
|
-
##### 400 —
|
|
13456
|
+
##### 400 — The document is not pending signature, or its deadline has passed; `channel` or `recipient` is missing or not text; `channel` is not `email`; or the signer already signed, their step has not started (sequential signing), or they are not notified by e-mail.
|
|
11995
13457
|
|
|
11996
13458
|
```json
|
|
11997
13459
|
{
|
|
@@ -12009,7 +13471,7 @@ Example:
|
|
|
12009
13471
|
}
|
|
12010
13472
|
```
|
|
12011
13473
|
|
|
12012
|
-
##### 404 — The
|
|
13474
|
+
##### 404 — The document doesn't exist, or `recipient` is not one of its signers.
|
|
12013
13475
|
|
|
12014
13476
|
```json
|
|
12015
13477
|
{
|
|
@@ -12027,6 +13489,24 @@ Example:
|
|
|
12027
13489
|
}
|
|
12028
13490
|
```
|
|
12029
13491
|
|
|
13492
|
+
##### 429 — The signer was sent their invitation through this route less than two minutes ago; `Retry-After` gives the seconds left.
|
|
13493
|
+
|
|
13494
|
+
```json
|
|
13495
|
+
{
|
|
13496
|
+
"status": 429,
|
|
13497
|
+
"message": "Bad request.",
|
|
13498
|
+
"data": null,
|
|
13499
|
+
"code": "PlanRestricted",
|
|
13500
|
+
"errors": [
|
|
13501
|
+
{
|
|
13502
|
+
"field": "full_name",
|
|
13503
|
+
"code": "Required",
|
|
13504
|
+
"message": "Full Name cannot be blank."
|
|
13505
|
+
}
|
|
13506
|
+
]
|
|
13507
|
+
}
|
|
13508
|
+
```
|
|
13509
|
+
|
|
12030
13510
|
##### 500 — Unexpected server error.
|
|
12031
13511
|
|
|
12032
13512
|
```json
|
|
@@ -12083,9 +13563,9 @@ Return the signer identified by the signer access code, including the `has_signa
|
|
|
12083
13563
|
"is_signature_reusable": false,
|
|
12084
13564
|
"verification_method": "Email",
|
|
12085
13565
|
"resource": "signer",
|
|
12086
|
-
"id": "
|
|
13566
|
+
"id": "example_id_10",
|
|
12087
13567
|
"full_name": "Example User",
|
|
12088
|
-
"email": "
|
|
13568
|
+
"email": "user1@example.com",
|
|
12089
13569
|
"whatsapp_phone_number": "+5500000000000",
|
|
12090
13570
|
"government_id": "00000000000",
|
|
12091
13571
|
"has_accepted_terms": false
|
|
@@ -12573,9 +14053,9 @@ Return the document and the signer's assignment items, scoped to the signer acce
|
|
|
12573
14053
|
],
|
|
12574
14054
|
"completed": false,
|
|
12575
14055
|
"resource": "signer",
|
|
12576
|
-
"id": "
|
|
14056
|
+
"id": "example_id_10",
|
|
12577
14057
|
"full_name": "Example User",
|
|
12578
|
-
"email": "
|
|
14058
|
+
"email": "user1@example.com",
|
|
12579
14059
|
"whatsapp_phone_number": "+5500000000000",
|
|
12580
14060
|
"government_id": "00000000000",
|
|
12581
14061
|
"has_accepted_terms": false
|
|
@@ -12705,7 +14185,7 @@ Return the document and the signer's assignment items, scoped to the signer acce
|
|
|
12705
14185
|
|
|
12706
14186
|
`GET /v1/sign`
|
|
12707
14187
|
|
|
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`.
|
|
14188
|
+
Retrieve the document a signer has been invited to sign, using the signer access code. Marks the document as viewed. The assignment carries only this signer's items, and leaves out the other signers, their signing links (`signing_urls`), the copy receivers and the signing `summary`. The response adds `current_signer`: this signer, with their `verification_method`, `notification_methods` and `completed` (whether they have already signed). Returns 409 `DocumentNotReady` while the document is still being prepared (retry with backoff), and 409 `DocumentClosed` once it was declined, cancelled, expired or failed, until the code closes (don't retry). Once the signer is done (signed, or the document was declined, cancelled, expired or failed; for a document of an envelope, with every document of the envelope they are on) for more than 30 minutes, or the workspace was deleted, the code is closed: this returns only `id`, `name`, `status`, `current_signer` and `certified_copy`, with `is_signer_access_closed: true` (and `envelope`, when asked for), and the signer's other endpoints answer `410`. `certified_copy` says whether the signer can ask for the certified copy again (`POST /v1/sign/certified-copy`): `available`, the `notification_method` it goes on and, for WhatsApp, `resends_left`.
|
|
12709
14189
|
|
|
12710
14190
|
**Signers whose verification method is `DigitalCertificate`** must have confirmed their data *and* accepted the terms before this returns the document; otherwise it is `400`. Both are satisfied in one call to `PUT /v1/documents/{documentId}/signers/confirm-data` with `has_accepted_terms: true`, so send that before this endpoint — the `has_accepted_terms` query parameter here is too late to open the gate. `PUT /v1/signers/accept-terms` also works and is never gated.
|
|
12711
14191
|
|
|
@@ -12733,9 +14213,9 @@ Retrieve the document a signer has been invited to sign, using the signer access
|
|
|
12733
14213
|
],
|
|
12734
14214
|
"completed": false,
|
|
12735
14215
|
"resource": "signer",
|
|
12736
|
-
"id": "
|
|
14216
|
+
"id": "example_id_10",
|
|
12737
14217
|
"full_name": "Example User",
|
|
12738
|
-
"email": "
|
|
14218
|
+
"email": "user1@example.com",
|
|
12739
14219
|
"whatsapp_phone_number": "+5500000000000",
|
|
12740
14220
|
"government_id": "00000000000",
|
|
12741
14221
|
"has_accepted_terms": false
|
|
@@ -12789,14 +14269,14 @@ Retrieve the document a signer has been invited to sign, using the signer access
|
|
|
12789
14269
|
}
|
|
12790
14270
|
```
|
|
12791
14271
|
|
|
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.
|
|
14272
|
+
##### 400 — A digital-certificate signer has not yet confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), the signer's step has not started yet (sequential signing), or, with the code of a document of an envelope, `document_id` is no document id.
|
|
12793
14273
|
|
|
12794
14274
|
```json
|
|
12795
14275
|
{
|
|
12796
14276
|
"status": 400,
|
|
12797
14277
|
"message": "Bad request.",
|
|
12798
|
-
"data": null,
|
|
12799
14278
|
"code": "PlanRestricted",
|
|
14279
|
+
"data": null,
|
|
12800
14280
|
"errors": [
|
|
12801
14281
|
{
|
|
12802
14282
|
"field": "full_name",
|
|
@@ -12825,7 +14305,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
|
|
|
12825
14305
|
}
|
|
12826
14306
|
```
|
|
12827
14307
|
|
|
12828
|
-
##### 409 —
|
|
14308
|
+
##### 409 — `DocumentNotReady`: the document is still being prepared, retry with backoff. `DocumentClosed`: it closed (declined, cancelled, expired or failed) and won't open again, don't retry; the message names its status.
|
|
12829
14309
|
|
|
12830
14310
|
```json
|
|
12831
14311
|
{
|
|
@@ -12883,7 +14363,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
|
|
|
12883
14363
|
|
|
12884
14364
|
`POST /v1/documents/{documentId}/assignments/{assignmentId}`
|
|
12885
14365
|
|
|
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.
|
|
14366
|
+
Sign a document with input fields (collect method): submit the signer's item values, completing their items. An item left out is filled when it can be: a read-only field (the signature date) takes its own value and an optional one stays empty; one the signer must give is refused. Signing again after the signer has signed changes nothing and returns `200` with the current assignment, even once that signature closed the document. For **virtual** assignments the signer must first confirm their data via `PUT /v1/documents/{documentId}/signers/confirm-data`, otherwise this returns `400` (Signer data must be confirmed before signing). On a `collect` assignment the signer must have both a `signature` and an `initial` image stored (`POST /v1/signature`), even when the document has no `initial` field; otherwise this returns `400`. Signers whose verification method is `DigitalCertificate` cannot use this endpoint — their signature must be produced through `POST /v1/signers/certificate/start` + `/complete`, and this returns `400`. The request body is a JSON array of item entries; on a `virtual` assignment it is ignored, so send an empty array. Uses the signer access code. With the code of a document of an envelope, it acts on the signer's request on the document the route names, if that document is in the same envelope, carrying the code's e-mail or WhatsApp verification there.
|
|
12887
14367
|
|
|
12888
14368
|
**Authentication:** signer access code (`signer-access-code` query or body parameter).
|
|
12889
14369
|
|
|
@@ -12929,7 +14409,7 @@ Example:
|
|
|
12929
14409
|
}
|
|
12930
14410
|
```
|
|
12931
14411
|
|
|
12932
|
-
##### 200 — Signing result
|
|
14412
|
+
##### 200 — Signing result: the assignment as the signer reads it in their list of documents, with no `signing_urls`, only their own `items`, and the other parties' contact details and ID number null.
|
|
12933
14413
|
|
|
12934
14414
|
```json
|
|
12935
14415
|
{
|
|
@@ -12939,14 +14419,14 @@ Example:
|
|
|
12939
14419
|
}
|
|
12940
14420
|
```
|
|
12941
14421
|
|
|
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.
|
|
14422
|
+
##### 400 — Signer data must be confirmed before signing (virtual assignments; `SignerDataUnconfirmed`), the signer's code was not verified (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not accepted the terms (`TermsNotAccepted`), the signer has no stored `signature` or `initial` image (collect assignments), the signer must sign with a digital certificate through the digital certificate endpoints (`DigitalCertificateRequired`), an entry names a page, field or item that is not one of this signer's, the entries leave out a field the signer must give (named in the message), or the signer's step has not started yet (sequential signing). Nothing is signed when an entry is refused.
|
|
12943
14423
|
|
|
12944
14424
|
```json
|
|
12945
14425
|
{
|
|
12946
14426
|
"status": 400,
|
|
12947
14427
|
"message": "Bad request.",
|
|
12948
|
-
"data": null,
|
|
12949
14428
|
"code": "PlanRestricted",
|
|
14429
|
+
"data": null,
|
|
12950
14430
|
"errors": [
|
|
12951
14431
|
{
|
|
12952
14432
|
"field": "full_name",
|
|
@@ -12975,7 +14455,7 @@ Example:
|
|
|
12975
14455
|
}
|
|
12976
14456
|
```
|
|
12977
14457
|
|
|
12978
|
-
##### 409 —
|
|
14458
|
+
##### 409 — `DocumentNotReady`: the document can't be signed now: still being prepared (retry with backoff), held for an identity review, or being certificated. `DocumentClosed`: it closed (declined, cancelled, expired or failed, or certificated) and won't open again, don't retry; the message names its status.
|
|
12979
14459
|
|
|
12980
14460
|
```json
|
|
12981
14461
|
{
|
|
@@ -13088,7 +14568,7 @@ Example:
|
|
|
13088
14568
|
}
|
|
13089
14569
|
```
|
|
13090
14570
|
|
|
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).
|
|
14571
|
+
##### 400 — `decline_reason` is missing or longer than 2000 characters, the assignment or the document is no longer pending, the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`), or the signer's step has not started yet (sequential signing).
|
|
13092
14572
|
|
|
13093
14573
|
```json
|
|
13094
14574
|
{
|
|
@@ -13179,8 +14659,8 @@ Example:
|
|
|
13179
14659
|
```json
|
|
13180
14660
|
{
|
|
13181
14661
|
"document_ids": [
|
|
13182
|
-
"
|
|
13183
|
-
"
|
|
14662
|
+
"example_id_44",
|
|
14663
|
+
"example_id_45"
|
|
13184
14664
|
]
|
|
13185
14665
|
}
|
|
13186
14666
|
```
|
|
@@ -13215,14 +14695,14 @@ Example:
|
|
|
13215
14695
|
}
|
|
13216
14696
|
```
|
|
13217
14697
|
|
|
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.
|
|
14698
|
+
##### 400 — A listed document is not a virtual document of this signer, is not pending signature, waits for an earlier signing step, or, for the code of a document of an envelope, is not part of that envelope; the signer must first confirm their data (`SignerDataUnconfirmed`); the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`); a digital-certificate signer has not accepted the terms (`TermsNotAccepted`); or the signer signs with a digital certificate (`DigitalCertificateRequired`).
|
|
13219
14699
|
|
|
13220
14700
|
```json
|
|
13221
14701
|
{
|
|
13222
14702
|
"status": 400,
|
|
13223
14703
|
"message": "Bad request.",
|
|
13224
|
-
"data": null,
|
|
13225
14704
|
"code": "PlanRestricted",
|
|
14705
|
+
"data": null,
|
|
13226
14706
|
"errors": [
|
|
13227
14707
|
{
|
|
13228
14708
|
"field": "full_name",
|
|
@@ -13307,8 +14787,8 @@ Example:
|
|
|
13307
14787
|
```json
|
|
13308
14788
|
{
|
|
13309
14789
|
"document_ids": [
|
|
13310
|
-
"
|
|
13311
|
-
"
|
|
14790
|
+
"example_id_44",
|
|
14791
|
+
"example_id_45"
|
|
13312
14792
|
],
|
|
13313
14793
|
"decline_reason": "Unfavorable terms."
|
|
13314
14794
|
}
|
|
@@ -13344,7 +14824,7 @@ Example:
|
|
|
13344
14824
|
}
|
|
13345
14825
|
```
|
|
13346
14826
|
|
|
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.
|
|
14827
|
+
##### 400 — A listed document is not this signer's, is not pending signature, waits for an earlier signing step, or, for the code of a document of an envelope, is not part of that envelope; or the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`). Nothing is declined.
|
|
13348
14828
|
|
|
13349
14829
|
```json
|
|
13350
14830
|
{
|
|
@@ -13544,7 +15024,7 @@ Example:
|
|
|
13544
15024
|
|
|
13545
15025
|
`PUT /v1/documents/{documentId}/signers/confirm-data`
|
|
13546
15026
|
|
|
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.
|
|
15027
|
+
The signer confirms or updates their data before signing. Only `email`, `whatsapp_phone_number` and `has_accepted_terms` are read; other keys are ignored. Uses the signer access code. With the code of a document of an envelope, it acts on the signer's request on the document the route names, if that document is in the same envelope, carrying the code's e-mail or WhatsApp verification there. The code's own document, taken out of its envelope, takes the confirmation too while a document of the envelope still awaits signatures: it signs nothing (that document stays cancelled) and opens the reads a certificate or identity-check signer's method gates, so the signer reaches the documents left.
|
|
13548
15028
|
|
|
13549
15029
|
**Authentication:** signer access code (`signer-access-code` query or body parameter).
|
|
13550
15030
|
|
|
@@ -13620,7 +15100,7 @@ Example:
|
|
|
13620
15100
|
}
|
|
13621
15101
|
```
|
|
13622
15102
|
|
|
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).
|
|
15103
|
+
##### 400 — An e-mail or WhatsApp number the signer's methods need is missing, invalid or not theirs, or the signer's step has not started yet (sequential signing). A newly supplied undeliverable e-mail returns code `InvalidEmail`.
|
|
13624
15104
|
|
|
13625
15105
|
```json
|
|
13626
15106
|
{
|
|
@@ -13708,7 +15188,7 @@ Record that the signer accepted the terms of use. Uses the signer access code.
|
|
|
13708
15188
|
{
|
|
13709
15189
|
"data": {
|
|
13710
15190
|
"full_name": "Example User",
|
|
13711
|
-
"email": "
|
|
15191
|
+
"email": "user1@example.com",
|
|
13712
15192
|
"has_accepted_terms": true
|
|
13713
15193
|
},
|
|
13714
15194
|
"status": 200,
|
|
@@ -13716,14 +15196,14 @@ Record that the signer accepted the terms of use. Uses the signer access code.
|
|
|
13716
15196
|
}
|
|
13717
15197
|
```
|
|
13718
15198
|
|
|
13719
|
-
##### 400 — The signer's
|
|
15199
|
+
##### 400 — The signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`), or the signer's step has not started yet (sequential signing).
|
|
13720
15200
|
|
|
13721
15201
|
```json
|
|
13722
15202
|
{
|
|
13723
15203
|
"status": 400,
|
|
13724
15204
|
"message": "Bad request.",
|
|
13725
|
-
"data": null,
|
|
13726
15205
|
"code": "PlanRestricted",
|
|
15206
|
+
"data": null,
|
|
13727
15207
|
"errors": [
|
|
13728
15208
|
{
|
|
13729
15209
|
"field": "full_name",
|
|
@@ -13774,7 +15254,7 @@ Record that the signer accepted the terms of use. Uses the signer access code.
|
|
|
13774
15254
|
|
|
13775
15255
|
`POST /v1/signature`
|
|
13776
15256
|
|
|
13777
|
-
Upload the signer's signature (or initials) image as the raw request body. Uses the signer access code.
|
|
15257
|
+
Upload the signer's signature (or initials) image as the raw request body, a PNG or JPEG file. Uses the signer access code. The image is stored on the signer, one per `type`, and serves all of their documents: an upload replaces the previous image of its type, and a document is stamped with the image stored when it is certificated, so documents signed earlier and not yet certificated get the new one too. An image larger than 1000 px on a side is scaled down to fit; transparency is kept.
|
|
13778
15258
|
|
|
13779
15259
|
**Authentication:** signer access code (`signer-access-code` query or body parameter).
|
|
13780
15260
|
|
|
@@ -13823,7 +15303,7 @@ Example:
|
|
|
13823
15303
|
}
|
|
13824
15304
|
```
|
|
13825
15305
|
|
|
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).
|
|
15306
|
+
##### 400 — The image is not a PNG or JPEG file (`code` `SignatureImageInvalid`), or it is blank (`SignatureImageBlank`); the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`); or the signer's step has not started yet (sequential signing).
|
|
13827
15307
|
|
|
13828
15308
|
```json
|
|
13829
15309
|
{
|
|
@@ -13989,7 +15469,7 @@ Download the signer's stored signature/initials image. Uses the signer access co
|
|
|
13989
15469
|
|
|
13990
15470
|
`GET /v1/signers/{signerId}/documents`
|
|
13991
15471
|
|
|
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
|
|
15472
|
+
List the documents a signer is party to. Accepts either the signer access code or the account's own credentials (API key or bearer token) — with account credentials, the signer must belong to that account's workspace. With the signer access code, `signerId` must be the code's own signer (otherwise `403`), only documents whose signing step has been reached are listed (for the code of a document of an envelope, only that envelope's documents), and each assignment leaves out `signing_urls`, has only the signer's own `items`, and gives every other signer and copy receiver, in `signers`, `copy_receivers` and `summary.signers`, with `email`, `whatsapp_phone_number` and `government_id` null, `notification_history` empty, and `identity_verification_status` null where present.
|
|
13993
15473
|
|
|
13994
15474
|
**Authentication:** signer access code (`signer-access-code` query or body parameter) or Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
13995
15475
|
|
|
@@ -14108,7 +15588,7 @@ List the documents a signer is party to. Accepts either the signer access code o
|
|
|
14108
15588
|
}
|
|
14109
15589
|
```
|
|
14110
15590
|
|
|
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`.
|
|
15591
|
+
##### 400 — With a signer access code, the signer's step has not started yet (sequential signing), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), or a digital-certificate signer has not yet confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`); or `envelope_id` is not text, an entry of `errors`.
|
|
14112
15592
|
|
|
14113
15593
|
```json
|
|
14114
15594
|
{
|
|
@@ -14275,7 +15755,7 @@ Search the documents a signer is party to (compact representation). Accepts eith
|
|
|
14275
15755
|
}
|
|
14276
15756
|
```
|
|
14277
15757
|
|
|
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`.
|
|
15758
|
+
##### 400 — With a signer access code, the signer's step has not started yet (sequential signing), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), or a digital-certificate signer has not yet confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`); or `envelope_id` is not text, an entry of `errors`.
|
|
14279
15759
|
|
|
14280
15760
|
```json
|
|
14281
15761
|
{
|
|
@@ -14561,7 +16041,7 @@ Example:
|
|
|
14561
16041
|
}
|
|
14562
16042
|
```
|
|
14563
16043
|
|
|
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.
|
|
16044
|
+
##### 400 — The signer's step has not started yet (sequential signing), the signer's code or identity check is not done yet (`EmailVerificationRequired`, `WhatsappVerificationRequired`, `IdentityVerificationRequired`), a digital-certificate signer has not confirmed their data (`SignerDataUnconfirmed`) or accepted the terms (`TermsNotAccepted`), or, with the code of a document of an envelope, `document_id` is no document id.
|
|
14565
16045
|
|
|
14566
16046
|
```json
|
|
14567
16047
|
{
|
|
@@ -14736,9 +16216,9 @@ List the signers of a workspace.
|
|
|
14736
16216
|
"data": [
|
|
14737
16217
|
{
|
|
14738
16218
|
"resource": "signer",
|
|
14739
|
-
"id": "
|
|
16219
|
+
"id": "example_id_10",
|
|
14740
16220
|
"full_name": "Example User",
|
|
14741
|
-
"email": "
|
|
16221
|
+
"email": "user1@example.com",
|
|
14742
16222
|
"whatsapp_phone_number": "+5500000000000",
|
|
14743
16223
|
"government_id": "00000000000",
|
|
14744
16224
|
"has_accepted_terms": false
|
|
@@ -14789,7 +16269,7 @@ List the signers of a workspace.
|
|
|
14789
16269
|
|
|
14790
16270
|
`POST /v1/accounts/{accountId}/signers`
|
|
14791
16271
|
|
|
14792
|
-
Create a signer in the workspace.
|
|
16272
|
+
Create a signer in the workspace. An undeliverable e-mail returns `400` with code `InvalidEmail`.
|
|
14793
16273
|
|
|
14794
16274
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
14795
16275
|
|
|
@@ -14805,7 +16285,7 @@ Fields (`application/json`):
|
|
|
14805
16285
|
|
|
14806
16286
|
- `full_name` (string, required)
|
|
14807
16287
|
- `email` (string)
|
|
14808
|
-
- `whatsapp_phone_number` (string) — E.164; normalized on save.
|
|
16288
|
+
- `whatsapp_phone_number` (string) — E.164; normalized on save. A number written with `+` is read with the country code it names first, and as Brazilian if it isn't valid there; one without `+` is read as a Brazilian area code and number first.
|
|
14809
16289
|
- `government_id` (string) — Signer's CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Formatting is accepted and the value is normalized on save. Required before the signer can use a verification method that identifies them by CPF.
|
|
14810
16290
|
|
|
14811
16291
|
Example:
|
|
@@ -14813,7 +16293,7 @@ Example:
|
|
|
14813
16293
|
```json
|
|
14814
16294
|
{
|
|
14815
16295
|
"full_name": "Example User",
|
|
14816
|
-
"email": "
|
|
16296
|
+
"email": "user1@example.com",
|
|
14817
16297
|
"whatsapp_phone_number": "+5500000000000",
|
|
14818
16298
|
"government_id": "00000000000"
|
|
14819
16299
|
}
|
|
@@ -14827,9 +16307,9 @@ Example:
|
|
|
14827
16307
|
{
|
|
14828
16308
|
"data": {
|
|
14829
16309
|
"resource": "signer",
|
|
14830
|
-
"id": "
|
|
16310
|
+
"id": "example_id_10",
|
|
14831
16311
|
"full_name": "Example User",
|
|
14832
|
-
"email": "
|
|
16312
|
+
"email": "user1@example.com",
|
|
14833
16313
|
"whatsapp_phone_number": "+5500000000000",
|
|
14834
16314
|
"government_id": "00000000000",
|
|
14835
16315
|
"has_accepted_terms": false
|
|
@@ -14916,9 +16396,9 @@ Retrieve a signer's information.
|
|
|
14916
16396
|
{
|
|
14917
16397
|
"data": {
|
|
14918
16398
|
"resource": "signer",
|
|
14919
|
-
"id": "
|
|
16399
|
+
"id": "example_id_10",
|
|
14920
16400
|
"full_name": "Example User",
|
|
14921
|
-
"email": "
|
|
16401
|
+
"email": "user1@example.com",
|
|
14922
16402
|
"whatsapp_phone_number": "+5500000000000",
|
|
14923
16403
|
"government_id": "00000000000",
|
|
14924
16404
|
"has_accepted_terms": false
|
|
@@ -14986,7 +16466,7 @@ Retrieve a signer's information.
|
|
|
14986
16466
|
|
|
14987
16467
|
`PUT /v1/accounts/{accountId}/signers/{signerId}`
|
|
14988
16468
|
|
|
14989
|
-
Update a signer's information. Only the fields sent change; send just the ones you are changing.
|
|
16469
|
+
Update a signer's information. Only the fields sent change; send just the ones you are changing. An undeliverable new e-mail returns `400` with code `InvalidEmail`.
|
|
14990
16470
|
|
|
14991
16471
|
**Clearing a field:** `null` or `"` clears `email`, `whatsapp_phone_number` and `government_id` (`whatsapp_phone_number` is stored as `null` either way; the other two keep the value sent). `full_name` cannot be cleared.
|
|
14992
16472
|
|
|
@@ -15007,7 +16487,7 @@ Fields (`application/json`):
|
|
|
15007
16487
|
|
|
15008
16488
|
- `full_name` (string)
|
|
15009
16489
|
- `email` (string) — Can't be changed or cleared while the signer has verified it on an in-flight document, or on a document of an envelope while another of their documents of it is in flight (`400`).
|
|
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`).
|
|
16490
|
+
- `whatsapp_phone_number` (string) — E.164; normalized on save, and compared after normalizing, so the same number in another format is not a change. A number written with `+` is read with the country code it names first, and as Brazilian if it isn't valid there; one without `+` is read as a Brazilian area code and number first. Can't be changed or cleared while the signer has verified it on an in-flight document, or on a document of an envelope while another of their documents of it is in flight (`400`).
|
|
15011
16491
|
- `government_id` (string) — Signer's CPF (11 digits) or CNPJ (14 characters; may be alphanumeric). Formatting is accepted and the value is normalized on save.
|
|
15012
16492
|
|
|
15013
16493
|
Example:
|
|
@@ -15015,7 +16495,7 @@ Example:
|
|
|
15015
16495
|
```json
|
|
15016
16496
|
{
|
|
15017
16497
|
"full_name": "Example User",
|
|
15018
|
-
"email": "
|
|
16498
|
+
"email": "user1@example.com",
|
|
15019
16499
|
"whatsapp_phone_number": "+5500000000000",
|
|
15020
16500
|
"government_id": "00000000000"
|
|
15021
16501
|
}
|
|
@@ -15029,9 +16509,9 @@ Example:
|
|
|
15029
16509
|
{
|
|
15030
16510
|
"data": {
|
|
15031
16511
|
"resource": "signer",
|
|
15032
|
-
"id": "
|
|
16512
|
+
"id": "example_id_10",
|
|
15033
16513
|
"full_name": "Example User",
|
|
15034
|
-
"email": "
|
|
16514
|
+
"email": "user1@example.com",
|
|
15035
16515
|
"whatsapp_phone_number": "+5500000000000",
|
|
15036
16516
|
"government_id": "00000000000",
|
|
15037
16517
|
"has_accepted_terms": false
|
|
@@ -15651,7 +17131,7 @@ The `status` field of a template is one of:
|
|
|
15651
17131
|
"data": [
|
|
15652
17132
|
{
|
|
15653
17133
|
"resource": "template",
|
|
15654
|
-
"id": "
|
|
17134
|
+
"id": "example_id_46",
|
|
15655
17135
|
"name": "template.pdf",
|
|
15656
17136
|
"document_name": null,
|
|
15657
17137
|
"message": null,
|
|
@@ -16095,14 +17575,14 @@ Retrieve the delivery history for webhooks sent to the account's endpoints — u
|
|
|
16095
17575
|
"data": [
|
|
16096
17576
|
{
|
|
16097
17577
|
"resource": "activity_dispatching_history",
|
|
16098
|
-
"id": "
|
|
17578
|
+
"id": "example_id_47",
|
|
16099
17579
|
"event": "document_ready",
|
|
16100
17580
|
"activity_id": 456,
|
|
16101
|
-
"endpoint_id": "
|
|
17581
|
+
"endpoint_id": "example_id_48",
|
|
16102
17582
|
"endpoint": "https://example.com/example-url-21",
|
|
16103
17583
|
"payload": null,
|
|
16104
17584
|
"delivered": true,
|
|
16105
|
-
"webhook_id": "
|
|
17585
|
+
"webhook_id": "example_id_49",
|
|
16106
17586
|
"attempt": 2,
|
|
16107
17587
|
"kind": "scheduled",
|
|
16108
17588
|
"will_retry": true,
|
|
@@ -16178,14 +17658,14 @@ Sends the entry's event to the entry's endpoint once, now, even while the endpoi
|
|
|
16178
17658
|
{
|
|
16179
17659
|
"data": {
|
|
16180
17660
|
"resource": "activity_dispatching_history",
|
|
16181
|
-
"id": "
|
|
17661
|
+
"id": "example_id_47",
|
|
16182
17662
|
"event": "document_ready",
|
|
16183
17663
|
"activity_id": 456,
|
|
16184
|
-
"endpoint_id": "
|
|
17664
|
+
"endpoint_id": "example_id_48",
|
|
16185
17665
|
"endpoint": "https://example.com/example-url-21",
|
|
16186
17666
|
"payload": null,
|
|
16187
17667
|
"delivered": true,
|
|
16188
|
-
"webhook_id": "
|
|
17668
|
+
"webhook_id": "example_id_49",
|
|
16189
17669
|
"attempt": 2,
|
|
16190
17670
|
"kind": "scheduled",
|
|
16191
17671
|
"will_retry": true,
|
|
@@ -16297,7 +17777,7 @@ List the account's webhook endpoints, oldest first. Requires the `account:read`
|
|
|
16297
17777
|
"data": [
|
|
16298
17778
|
{
|
|
16299
17779
|
"resource": "activity_event_subscription",
|
|
16300
|
-
"id": "
|
|
17780
|
+
"id": "example_id_48",
|
|
16301
17781
|
"name": "ERP",
|
|
16302
17782
|
"url": "https://example.com/example-url-22",
|
|
16303
17783
|
"email": "user13@example.com",
|
|
@@ -16404,7 +17884,7 @@ Example:
|
|
|
16404
17884
|
"data": {
|
|
16405
17885
|
"secret": "example_secret",
|
|
16406
17886
|
"resource": "activity_event_subscription",
|
|
16407
|
-
"id": "
|
|
17887
|
+
"id": "example_id_48",
|
|
16408
17888
|
"name": "ERP",
|
|
16409
17889
|
"url": "https://example.com/example-url-22",
|
|
16410
17890
|
"email": "user13@example.com",
|
|
@@ -16618,7 +18098,7 @@ Retrieve one webhook endpoint. Requires the `account:read` OAuth scope.
|
|
|
16618
18098
|
{
|
|
16619
18099
|
"data": {
|
|
16620
18100
|
"resource": "activity_event_subscription",
|
|
16621
|
-
"id": "
|
|
18101
|
+
"id": "example_id_48",
|
|
16622
18102
|
"name": "ERP",
|
|
16623
18103
|
"url": "https://example.com/example-url-22",
|
|
16624
18104
|
"email": "user13@example.com",
|
|
@@ -16742,7 +18222,7 @@ Example:
|
|
|
16742
18222
|
"data": {
|
|
16743
18223
|
"secret": "example_secret",
|
|
16744
18224
|
"resource": "activity_event_subscription",
|
|
16745
|
-
"id": "
|
|
18225
|
+
"id": "example_id_48",
|
|
16746
18226
|
"name": "ERP",
|
|
16747
18227
|
"url": "https://example.com/example-url-22",
|
|
16748
18228
|
"email": "user13@example.com",
|
|
@@ -17155,14 +18635,14 @@ Sends the endpoint one `webhook_test` event now, signed and sent like any delive
|
|
|
17155
18635
|
{
|
|
17156
18636
|
"data": {
|
|
17157
18637
|
"resource": "activity_dispatching_history",
|
|
17158
|
-
"id": "
|
|
18638
|
+
"id": "example_id_47",
|
|
17159
18639
|
"event": "document_ready",
|
|
17160
18640
|
"activity_id": 456,
|
|
17161
|
-
"endpoint_id": "
|
|
18641
|
+
"endpoint_id": "example_id_48",
|
|
17162
18642
|
"endpoint": "https://example.com/example-url-21",
|
|
17163
18643
|
"payload": null,
|
|
17164
18644
|
"delivered": true,
|
|
17165
|
-
"webhook_id": "
|
|
18645
|
+
"webhook_id": "example_id_49",
|
|
17166
18646
|
"attempt": 2,
|
|
17167
18647
|
"kind": "scheduled",
|
|
17168
18648
|
"will_retry": true,
|