@assinafy/cli 2.0.2 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +54 -0
- package/CONTRIBUTING.md +29 -0
- package/README.en.md +559 -0
- package/README.md +314 -180
- package/SECURITY.md +10 -0
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/api.cjs +453 -74
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +451 -74
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +1278 -228
- package/dist/types/api/client.d.ts +7 -0
- package/dist/types/api/client.d.ts.map +1 -1
- package/dist/types/api/errors.d.ts +42 -1
- package/dist/types/api/errors.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/resources/assignments.d.ts +3 -1
- package/dist/types/api/resources/assignments.d.ts.map +1 -1
- package/dist/types/api/resources/documents.d.ts +3 -3
- package/dist/types/api/resources/documents.d.ts.map +1 -1
- package/dist/types/api/resources/fields.d.ts.map +1 -1
- package/dist/types/api/resources/oauth.d.ts +20 -0
- package/dist/types/api/resources/oauth.d.ts.map +1 -0
- package/dist/types/api/resources/signer-documents.d.ts +9 -5
- package/dist/types/api/resources/signer-documents.d.ts.map +1 -1
- package/dist/types/api/resources/signers.d.ts.map +1 -1
- package/dist/types/api/resources/webhooks.d.ts.map +1 -1
- package/dist/types/api/support/webhook-verifier.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +146 -56
- package/dist/types/api/types.d.ts.map +1 -1
- package/dist/types/api/utils.d.ts +18 -0
- package/dist/types/api/utils.d.ts.map +1 -1
- package/docs/README.md +4 -2
- package/docs/api-operations.json +33 -1
- package/docs/api-reference.md +323 -79
- package/docs/assignments.md +3 -3
- package/docs/documents.md +8 -8
- package/docs/fields.md +4 -4
- package/docs/migration-v2.md +6 -2
- package/docs/oauth-guide.md +343 -0
- package/docs/oauth.md +162 -0
- package/docs/releasing.md +16 -6
- package/docs/sdk-reference.md +121 -24
- package/docs/signer.md +3 -2
- package/install.ps1 +9 -2
- package/install.sh +5 -5
- package/package.json +8 -5
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.0.0
|
|
8
8
|
- API document version: 1.0.0
|
|
9
|
-
- Operations:
|
|
10
|
-
- Contract SHA-256: `
|
|
9
|
+
- Operations: 93
|
|
10
|
+
- Contract SHA-256: `6b55ce24462cd0f9393061a075f2c296fbe742fae493c9ba81c7def402618456`
|
|
11
11
|
|
|
12
12
|
## Accounts
|
|
13
13
|
|
|
@@ -473,6 +473,8 @@ Remove the account logo image.
|
|
|
473
473
|
|
|
474
474
|
List the workspace accounts the authenticated user belongs to.
|
|
475
475
|
|
|
476
|
+
Called with an OAuth application token, this returns exactly one workspace: the one the user chose when they authorized the application. Use its `id` as the `{accountId}` segment of every other endpoint — a token is bound to a single workspace, and any request naming a different one is refused. This endpoint needs no particular scope.
|
|
477
|
+
|
|
476
478
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
477
479
|
|
|
478
480
|
#### Responses
|
|
@@ -627,8 +629,13 @@ Precomputed per-account document-funnel KPIs. `granularity=monthly` (default) re
|
|
|
627
629
|
"documents_uploaded": 42,
|
|
628
630
|
"documents_sent": 37,
|
|
629
631
|
"signature_requests": 61,
|
|
630
|
-
"
|
|
631
|
-
"
|
|
632
|
+
"signature_requests_notification_email": 55,
|
|
633
|
+
"signature_requests_notification_whatsapp": 18,
|
|
634
|
+
"signature_requests_notification_bypass": 3,
|
|
635
|
+
"signature_requests_verification_email": 48,
|
|
636
|
+
"signature_requests_verification_whatsapp": 6,
|
|
637
|
+
"signature_requests_verification_bypass": 3,
|
|
638
|
+
"signature_requests_verification_digital_certificate": 4,
|
|
632
639
|
"signature_requests_viewed": 44,
|
|
633
640
|
"signature_requests_completed": 52,
|
|
634
641
|
"documents_certified": 30
|
|
@@ -780,7 +787,7 @@ List documents of the workspace.
|
|
|
780
787
|
"assignment": {
|
|
781
788
|
"resource": "assignment",
|
|
782
789
|
"id": "example_id_6",
|
|
783
|
-
"sender_email": "
|
|
790
|
+
"sender_email": "user1@example.com",
|
|
784
791
|
"method": "virtual",
|
|
785
792
|
"expires_at": null,
|
|
786
793
|
"message": "string",
|
|
@@ -806,7 +813,7 @@ List documents of the workspace.
|
|
|
806
813
|
"resource": "signer",
|
|
807
814
|
"id": "example_id_7",
|
|
808
815
|
"full_name": "Example User",
|
|
809
|
-
"email": "
|
|
816
|
+
"email": "user2@example.com",
|
|
810
817
|
"whatsapp_phone_number": "+5500000000000",
|
|
811
818
|
"has_accepted_terms": false
|
|
812
819
|
}
|
|
@@ -934,7 +941,7 @@ Example:
|
|
|
934
941
|
"assignment": {
|
|
935
942
|
"resource": "assignment",
|
|
936
943
|
"id": "example_id_6",
|
|
937
|
-
"sender_email": "
|
|
944
|
+
"sender_email": "user1@example.com",
|
|
938
945
|
"method": "virtual",
|
|
939
946
|
"expires_at": null,
|
|
940
947
|
"message": "string",
|
|
@@ -960,7 +967,7 @@ Example:
|
|
|
960
967
|
"resource": "signer",
|
|
961
968
|
"id": "example_id_7",
|
|
962
969
|
"full_name": "Example User",
|
|
963
|
-
"email": "
|
|
970
|
+
"email": "user2@example.com",
|
|
964
971
|
"whatsapp_phone_number": "+5500000000000",
|
|
965
972
|
"has_accepted_terms": false
|
|
966
973
|
}
|
|
@@ -1088,7 +1095,7 @@ Search documents of the workspace, returning a compact representation (no expand
|
|
|
1088
1095
|
"assignment": {
|
|
1089
1096
|
"resource": "assignment",
|
|
1090
1097
|
"id": "example_id_6",
|
|
1091
|
-
"sender_email": "
|
|
1098
|
+
"sender_email": "user1@example.com",
|
|
1092
1099
|
"method": "virtual",
|
|
1093
1100
|
"expires_at": null,
|
|
1094
1101
|
"message": "string",
|
|
@@ -1114,7 +1121,7 @@ Search documents of the workspace, returning a compact representation (no expand
|
|
|
1114
1121
|
"resource": "signer",
|
|
1115
1122
|
"id": "example_id_7",
|
|
1116
1123
|
"full_name": "Example User",
|
|
1117
|
-
"email": "
|
|
1124
|
+
"email": "user2@example.com",
|
|
1118
1125
|
"whatsapp_phone_number": "+5500000000000",
|
|
1119
1126
|
"has_accepted_terms": false
|
|
1120
1127
|
}
|
|
@@ -1287,7 +1294,7 @@ Get a document by its ID. `decline_reason` is only present when the access token
|
|
|
1287
1294
|
"assignment": {
|
|
1288
1295
|
"resource": "assignment",
|
|
1289
1296
|
"id": "example_id_6",
|
|
1290
|
-
"sender_email": "
|
|
1297
|
+
"sender_email": "user1@example.com",
|
|
1291
1298
|
"method": "virtual",
|
|
1292
1299
|
"expires_at": null,
|
|
1293
1300
|
"message": "string",
|
|
@@ -1313,7 +1320,7 @@ Get a document by its ID. `decline_reason` is only present when the access token
|
|
|
1313
1320
|
"resource": "signer",
|
|
1314
1321
|
"id": "example_id_7",
|
|
1315
1322
|
"full_name": "Example User",
|
|
1316
|
-
"email": "
|
|
1323
|
+
"email": "user2@example.com",
|
|
1317
1324
|
"whatsapp_phone_number": "+5500000000000",
|
|
1318
1325
|
"has_accepted_terms": false
|
|
1319
1326
|
}
|
|
@@ -1506,7 +1513,7 @@ Example:
|
|
|
1506
1513
|
"assignment": {
|
|
1507
1514
|
"resource": "assignment",
|
|
1508
1515
|
"id": "example_id_6",
|
|
1509
|
-
"sender_email": "
|
|
1516
|
+
"sender_email": "user1@example.com",
|
|
1510
1517
|
"method": "virtual",
|
|
1511
1518
|
"expires_at": null,
|
|
1512
1519
|
"message": "string",
|
|
@@ -1532,7 +1539,7 @@ Example:
|
|
|
1532
1539
|
"resource": "signer",
|
|
1533
1540
|
"id": "example_id_7",
|
|
1534
1541
|
"full_name": "Example User",
|
|
1535
|
-
"email": "
|
|
1542
|
+
"email": "user2@example.com",
|
|
1536
1543
|
"whatsapp_phone_number": "+5500000000000",
|
|
1537
1544
|
"has_accepted_terms": false
|
|
1538
1545
|
}
|
|
@@ -2150,7 +2157,7 @@ Example:
|
|
|
2150
2157
|
"assignment": {
|
|
2151
2158
|
"resource": "assignment",
|
|
2152
2159
|
"id": "example_id_6",
|
|
2153
|
-
"sender_email": "
|
|
2160
|
+
"sender_email": "user1@example.com",
|
|
2154
2161
|
"method": "virtual",
|
|
2155
2162
|
"expires_at": null,
|
|
2156
2163
|
"message": "string",
|
|
@@ -2176,7 +2183,7 @@ Example:
|
|
|
2176
2183
|
"resource": "signer",
|
|
2177
2184
|
"id": "example_id_7",
|
|
2178
2185
|
"full_name": "Example User",
|
|
2179
|
-
"email": "
|
|
2186
|
+
"email": "user2@example.com",
|
|
2180
2187
|
"whatsapp_phone_number": "+5500000000000",
|
|
2181
2188
|
"has_accepted_terms": false
|
|
2182
2189
|
}
|
|
@@ -2372,7 +2379,7 @@ List the assignments belonging to the authenticated user's current account.
|
|
|
2372
2379
|
{
|
|
2373
2380
|
"resource": "assignment",
|
|
2374
2381
|
"id": "example_id_6",
|
|
2375
|
-
"sender_email": "
|
|
2382
|
+
"sender_email": "user1@example.com",
|
|
2376
2383
|
"method": "virtual",
|
|
2377
2384
|
"expires_at": null,
|
|
2378
2385
|
"message": "string",
|
|
@@ -2398,7 +2405,7 @@ List the assignments belonging to the authenticated user's current account.
|
|
|
2398
2405
|
"resource": "signer",
|
|
2399
2406
|
"id": "example_id_7",
|
|
2400
2407
|
"full_name": "Example User",
|
|
2401
|
-
"email": "
|
|
2408
|
+
"email": "user2@example.com",
|
|
2402
2409
|
"whatsapp_phone_number": "+5500000000000",
|
|
2403
2410
|
"has_accepted_terms": false
|
|
2404
2411
|
}
|
|
@@ -2657,7 +2664,7 @@ Example — Create with input fields (method: collect):
|
|
|
2657
2664
|
"data": {
|
|
2658
2665
|
"resource": "assignment",
|
|
2659
2666
|
"id": "example_id_21",
|
|
2660
|
-
"sender_email": "
|
|
2667
|
+
"sender_email": "user1@example.com",
|
|
2661
2668
|
"method": "virtual",
|
|
2662
2669
|
"expires_at": "2021-09-30T21:00:00Z",
|
|
2663
2670
|
"message": null,
|
|
@@ -2665,7 +2672,7 @@ Example — Create with input fields (method: collect):
|
|
|
2665
2672
|
{
|
|
2666
2673
|
"id": "example_id_15",
|
|
2667
2674
|
"full_name": "Example User",
|
|
2668
|
-
"email": "
|
|
2675
|
+
"email": "user3@example.com",
|
|
2669
2676
|
"verification_method": "Email",
|
|
2670
2677
|
"notification_methods": [
|
|
2671
2678
|
"Email"
|
|
@@ -2677,7 +2684,7 @@ Example — Create with input fields (method: collect):
|
|
|
2677
2684
|
{
|
|
2678
2685
|
"id": "example_id_16",
|
|
2679
2686
|
"full_name": "Example User",
|
|
2680
|
-
"email": "
|
|
2687
|
+
"email": "user4@example.com",
|
|
2681
2688
|
"verification_method": "Whatsapp",
|
|
2682
2689
|
"notification_methods": [
|
|
2683
2690
|
"Whatsapp"
|
|
@@ -2695,7 +2702,7 @@ Example — Create with input fields (method: collect):
|
|
|
2695
2702
|
"signer": {
|
|
2696
2703
|
"id": "example_id_15",
|
|
2697
2704
|
"full_name": "Example User",
|
|
2698
|
-
"email": "
|
|
2705
|
+
"email": "user3@example.com"
|
|
2699
2706
|
},
|
|
2700
2707
|
"field": {
|
|
2701
2708
|
"id": "example_id_23",
|
|
@@ -2714,13 +2721,13 @@ Example — Create with input fields (method: collect):
|
|
|
2714
2721
|
{
|
|
2715
2722
|
"id": "example_id_15",
|
|
2716
2723
|
"full_name": "Example User",
|
|
2717
|
-
"email": "
|
|
2724
|
+
"email": "user3@example.com",
|
|
2718
2725
|
"completed": false
|
|
2719
2726
|
},
|
|
2720
2727
|
{
|
|
2721
2728
|
"id": "example_id_16",
|
|
2722
2729
|
"full_name": "Example User",
|
|
2723
|
-
"email": "
|
|
2730
|
+
"email": "user4@example.com",
|
|
2724
2731
|
"completed": false
|
|
2725
2732
|
}
|
|
2726
2733
|
]
|
|
@@ -2748,7 +2755,7 @@ Example — Create with input fields (method: collect):
|
|
|
2748
2755
|
"data": {
|
|
2749
2756
|
"resource": "assignment",
|
|
2750
2757
|
"id": "example_id_6",
|
|
2751
|
-
"sender_email": "
|
|
2758
|
+
"sender_email": "user1@example.com",
|
|
2752
2759
|
"method": "collect",
|
|
2753
2760
|
"expires_at": "2021-09-30T21:00:00Z",
|
|
2754
2761
|
"message": null,
|
|
@@ -2756,7 +2763,7 @@ Example — Create with input fields (method: collect):
|
|
|
2756
2763
|
{
|
|
2757
2764
|
"id": "example_id_17",
|
|
2758
2765
|
"full_name": "Example User",
|
|
2759
|
-
"email": "
|
|
2766
|
+
"email": "user5@example.com",
|
|
2760
2767
|
"verification_method": "Email",
|
|
2761
2768
|
"notification_methods": [
|
|
2762
2769
|
"Email"
|
|
@@ -2768,7 +2775,7 @@ Example — Create with input fields (method: collect):
|
|
|
2768
2775
|
{
|
|
2769
2776
|
"id": "example_id_18",
|
|
2770
2777
|
"full_name": "Example User",
|
|
2771
|
-
"email": "
|
|
2778
|
+
"email": "user6@example.com",
|
|
2772
2779
|
"verification_method": "Whatsapp",
|
|
2773
2780
|
"notification_methods": [
|
|
2774
2781
|
"Whatsapp"
|
|
@@ -2792,7 +2799,7 @@ Example — Create with input fields (method: collect):
|
|
|
2792
2799
|
"signer": {
|
|
2793
2800
|
"id": "example_id_17",
|
|
2794
2801
|
"full_name": "Example User",
|
|
2795
|
-
"email": "
|
|
2802
|
+
"email": "user5@example.com"
|
|
2796
2803
|
},
|
|
2797
2804
|
"field": {
|
|
2798
2805
|
"id": "example_id_20",
|
|
@@ -2823,7 +2830,7 @@ Example — Create with input fields (method: collect):
|
|
|
2823
2830
|
"signer": {
|
|
2824
2831
|
"id": "example_id_18",
|
|
2825
2832
|
"full_name": "Example User",
|
|
2826
|
-
"email": "
|
|
2833
|
+
"email": "user6@example.com"
|
|
2827
2834
|
},
|
|
2828
2835
|
"field": {
|
|
2829
2836
|
"id": "example_id_20",
|
|
@@ -2850,13 +2857,13 @@ Example — Create with input fields (method: collect):
|
|
|
2850
2857
|
{
|
|
2851
2858
|
"id": "example_id_17",
|
|
2852
2859
|
"full_name": "Example User",
|
|
2853
|
-
"email": "
|
|
2860
|
+
"email": "user5@example.com",
|
|
2854
2861
|
"completed": false
|
|
2855
2862
|
},
|
|
2856
2863
|
{
|
|
2857
2864
|
"id": "example_id_18",
|
|
2858
2865
|
"full_name": "Example User",
|
|
2859
|
-
"email": "
|
|
2866
|
+
"email": "user6@example.com",
|
|
2860
2867
|
"completed": false
|
|
2861
2868
|
}
|
|
2862
2869
|
]
|
|
@@ -2922,7 +2929,7 @@ Per-unit costs (in credits) used to build the estimate:
|
|
|
2922
2929
|
| WhatsApp notification | 0.45 credits |
|
|
2923
2930
|
| Digital certificate signature (per signer) | 2 credits |
|
|
2924
2931
|
|
|
2925
|
-
A `DigitalCertificate` signer adds the digital-certificate signature cost **on top of** its notification cost; it appears in the `breakdown` under the `SignatureDigitalCertificate` code.
|
|
2932
|
+
Verification methods are not priced separately — every line in the `breakdown` is a notification or a signature. A `Whatsapp`-verified signer therefore shows up as a WhatsApp notification, because that channel is mandatory for that verification method. A `DigitalCertificate` signer adds the digital-certificate signature cost **on top of** its notification cost; it appears in the `breakdown` under the `SignatureDigitalCertificate` code.
|
|
2926
2933
|
|
|
2927
2934
|
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
2928
2935
|
|
|
@@ -3179,7 +3186,7 @@ Example:
|
|
|
3179
3186
|
"data": {
|
|
3180
3187
|
"resource": "assignment",
|
|
3181
3188
|
"id": "example_id_6",
|
|
3182
|
-
"sender_email": "
|
|
3189
|
+
"sender_email": "user1@example.com",
|
|
3183
3190
|
"method": "virtual",
|
|
3184
3191
|
"expires_at": null,
|
|
3185
3192
|
"message": "string",
|
|
@@ -3205,7 +3212,7 @@ Example:
|
|
|
3205
3212
|
"resource": "signer",
|
|
3206
3213
|
"id": "example_id_7",
|
|
3207
3214
|
"full_name": "Example User",
|
|
3208
|
-
"email": "
|
|
3215
|
+
"email": "user2@example.com",
|
|
3209
3216
|
"whatsapp_phone_number": "+5500000000000",
|
|
3210
3217
|
"has_accepted_terms": false
|
|
3211
3218
|
}
|
|
@@ -3364,7 +3371,7 @@ Example:
|
|
|
3364
3371
|
|
|
3365
3372
|
```json
|
|
3366
3373
|
{
|
|
3367
|
-
"email": "
|
|
3374
|
+
"email": "user7@example.com",
|
|
3368
3375
|
"password": "example_secret"
|
|
3369
3376
|
}
|
|
3370
3377
|
```
|
|
@@ -3380,7 +3387,7 @@ Example:
|
|
|
3380
3387
|
"user": {
|
|
3381
3388
|
"id": "example_id_27",
|
|
3382
3389
|
"name": "John Smith",
|
|
3383
|
-
"email": "
|
|
3390
|
+
"email": "user8@example.com",
|
|
3384
3391
|
"telephone": "+5500000000000",
|
|
3385
3392
|
"government_id": "00000000000",
|
|
3386
3393
|
"is_email_verified": false,
|
|
@@ -3443,7 +3450,7 @@ Example:
|
|
|
3443
3450
|
|
|
3444
3451
|
```json
|
|
3445
3452
|
{
|
|
3446
|
-
"email": "
|
|
3453
|
+
"email": "user7@example.com"
|
|
3447
3454
|
}
|
|
3448
3455
|
```
|
|
3449
3456
|
|
|
@@ -3454,7 +3461,7 @@ Example:
|
|
|
3454
3461
|
```json
|
|
3455
3462
|
{
|
|
3456
3463
|
"data": {
|
|
3457
|
-
"email": "
|
|
3464
|
+
"email": "user7@example.com"
|
|
3458
3465
|
},
|
|
3459
3466
|
"status": 200,
|
|
3460
3467
|
"message": ""
|
|
@@ -3491,7 +3498,7 @@ Example:
|
|
|
3491
3498
|
|
|
3492
3499
|
```json
|
|
3493
3500
|
{
|
|
3494
|
-
"email": "
|
|
3501
|
+
"email": "user7@example.com",
|
|
3495
3502
|
"token": "example_secret",
|
|
3496
3503
|
"new_password": "example_secret"
|
|
3497
3504
|
}
|
|
@@ -3504,7 +3511,7 @@ Example:
|
|
|
3504
3511
|
```json
|
|
3505
3512
|
{
|
|
3506
3513
|
"data": {
|
|
3507
|
-
"email": "
|
|
3514
|
+
"email": "user7@example.com"
|
|
3508
3515
|
},
|
|
3509
3516
|
"status": 200,
|
|
3510
3517
|
"message": ""
|
|
@@ -3551,7 +3558,7 @@ Example:
|
|
|
3551
3558
|
|
|
3552
3559
|
```json
|
|
3553
3560
|
{
|
|
3554
|
-
"email": "
|
|
3561
|
+
"email": "user7@example.com",
|
|
3555
3562
|
"password": "example_secret",
|
|
3556
3563
|
"new_password": "example_secret"
|
|
3557
3564
|
}
|
|
@@ -3564,7 +3571,7 @@ Example:
|
|
|
3564
3571
|
```json
|
|
3565
3572
|
{
|
|
3566
3573
|
"data": {
|
|
3567
|
-
"email": "
|
|
3574
|
+
"email": "user7@example.com"
|
|
3568
3575
|
},
|
|
3569
3576
|
"status": 200,
|
|
3570
3577
|
"message": ""
|
|
@@ -3638,7 +3645,7 @@ Example:
|
|
|
3638
3645
|
"user": {
|
|
3639
3646
|
"id": "example_id_27",
|
|
3640
3647
|
"name": "John Smith",
|
|
3641
|
-
"email": "
|
|
3648
|
+
"email": "user8@example.com",
|
|
3642
3649
|
"telephone": "+5500000000000",
|
|
3643
3650
|
"government_id": "00000000000",
|
|
3644
3651
|
"is_email_verified": false,
|
|
@@ -4598,8 +4605,13 @@ The authenticated user's document-funnel KPIs summed across all accounts they cu
|
|
|
4598
4605
|
"documents_uploaded": 42,
|
|
4599
4606
|
"documents_sent": 37,
|
|
4600
4607
|
"signature_requests": 61,
|
|
4601
|
-
"
|
|
4602
|
-
"
|
|
4608
|
+
"signature_requests_notification_email": 55,
|
|
4609
|
+
"signature_requests_notification_whatsapp": 18,
|
|
4610
|
+
"signature_requests_notification_bypass": 3,
|
|
4611
|
+
"signature_requests_verification_email": 48,
|
|
4612
|
+
"signature_requests_verification_whatsapp": 6,
|
|
4613
|
+
"signature_requests_verification_bypass": 3,
|
|
4614
|
+
"signature_requests_verification_digital_certificate": 4,
|
|
4603
4615
|
"signature_requests_viewed": 44,
|
|
4604
4616
|
"signature_requests_completed": 52,
|
|
4605
4617
|
"documents_certified": 30
|
|
@@ -4657,7 +4669,7 @@ Returns the profile of the user owning the access token.
|
|
|
4657
4669
|
"data": {
|
|
4658
4670
|
"id": "example_id_27",
|
|
4659
4671
|
"name": "John Smith",
|
|
4660
|
-
"email": "
|
|
4672
|
+
"email": "user8@example.com",
|
|
4661
4673
|
"telephone": "+5500000000000",
|
|
4662
4674
|
"government_id": "00000000000",
|
|
4663
4675
|
"is_email_verified": false,
|
|
@@ -4690,6 +4702,238 @@ Returns the profile of the user owning the access token.
|
|
|
4690
4702
|
}
|
|
4691
4703
|
```
|
|
4692
4704
|
|
|
4705
|
+
## OAuth
|
|
4706
|
+
|
|
4707
|
+
### Exchange a code or refresh token for an access token
|
|
4708
|
+
|
|
4709
|
+
`POST /v1/oauth/token`
|
|
4710
|
+
|
|
4711
|
+
Implements the RFC 6749 §5.1/§5.2 token-endpoint body contract in
|
|
4712
|
+
* both directions: a successful exchange returns a flat JSON object with
|
|
4713
|
+
* `access_token` at the top level, and a failure returns a flat
|
|
4714
|
+
* `{error, error_description}` object — neither is wrapped in this API's
|
|
4715
|
+
* usual response envelope, since no standard OAuth client library (or MCP
|
|
4716
|
+
* connector) would find `access_token` or `error` inside a `data` key.
|
|
4717
|
+
|
|
4718
|
+
**Authentication:** none (public endpoint).
|
|
4719
|
+
|
|
4720
|
+
#### Request Body (required)
|
|
4721
|
+
|
|
4722
|
+
Fields (`application/json`):
|
|
4723
|
+
|
|
4724
|
+
- `grant_type` (string, required)
|
|
4725
|
+
- `code` (string)
|
|
4726
|
+
- `redirect_uri` (string)
|
|
4727
|
+
- `code_verifier` (string) — RFC 7636: 43-128 characters from [A-Za-z0-9-._~]. Shorter values are rejected with `invalid_grant`.
|
|
4728
|
+
- `refresh_token` (string)
|
|
4729
|
+
- `client_id` (string, required)
|
|
4730
|
+
- `client_secret` (string) — Confidential clients only. Public clients authenticate with PKCE and are never issued a secret.
|
|
4731
|
+
- `resource` (string) — RFC 8707 resource indicator. Optional; when present it must be the `resource` value published by /.well-known/oauth-protected-resource and must match the one sent to /authorize, otherwise `invalid_target`.
|
|
4732
|
+
|
|
4733
|
+
Example:
|
|
4734
|
+
|
|
4735
|
+
```json
|
|
4736
|
+
{
|
|
4737
|
+
"grant_type": "authorization_code",
|
|
4738
|
+
"code": "string",
|
|
4739
|
+
"redirect_uri": "https://example.com/example-url-11",
|
|
4740
|
+
"code_verifier": "string",
|
|
4741
|
+
"refresh_token": "example_secret",
|
|
4742
|
+
"client_id": "example_id_5",
|
|
4743
|
+
"client_secret": "example_secret",
|
|
4744
|
+
"resource": "string"
|
|
4745
|
+
}
|
|
4746
|
+
```
|
|
4747
|
+
|
|
4748
|
+
#### Responses
|
|
4749
|
+
|
|
4750
|
+
##### 200 — The token response
|
|
4751
|
+
|
|
4752
|
+
```json
|
|
4753
|
+
{
|
|
4754
|
+
"access_token": "example_credential",
|
|
4755
|
+
"token_type": "Bearer",
|
|
4756
|
+
"expires_in": 3600,
|
|
4757
|
+
"refresh_token": "example_secret",
|
|
4758
|
+
"scope": "documents:read",
|
|
4759
|
+
"id_token": "example_secret"
|
|
4760
|
+
}
|
|
4761
|
+
```
|
|
4762
|
+
|
|
4763
|
+
##### 400 — `invalid_grant` (bad, expired, replayed, or wrong-client authorization code; a `code_verifier` outside the RFC 7636 grammar of 43-128 unreserved characters; redirect_uri mismatch; a refresh token whose authorization no longer includes `offline_access`), `invalid_target` (a `resource` this server does not issue tokens for, or one disagreeing with the authorized value), or `unsupported_grant_type`
|
|
4764
|
+
|
|
4765
|
+
```json
|
|
4766
|
+
{
|
|
4767
|
+
"error": "invalid_grant",
|
|
4768
|
+
"error_description": "string"
|
|
4769
|
+
}
|
|
4770
|
+
```
|
|
4771
|
+
|
|
4772
|
+
##### 401 — `invalid_client` — unknown/disabled client or failed client authentication. The description never reveals whether client_id exists.
|
|
4773
|
+
|
|
4774
|
+
```json
|
|
4775
|
+
{
|
|
4776
|
+
"error": "invalid_client",
|
|
4777
|
+
"error_description": "Client authentication failed."
|
|
4778
|
+
}
|
|
4779
|
+
```
|
|
4780
|
+
|
|
4781
|
+
##### 500 — Unexpected server error.
|
|
4782
|
+
|
|
4783
|
+
```json
|
|
4784
|
+
{
|
|
4785
|
+
"status": 500,
|
|
4786
|
+
"message": "Bad request.",
|
|
4787
|
+
"data": null
|
|
4788
|
+
}
|
|
4789
|
+
```
|
|
4790
|
+
|
|
4791
|
+
### Revoke a token
|
|
4792
|
+
|
|
4793
|
+
`POST /v1/oauth/revoke`
|
|
4794
|
+
|
|
4795
|
+
Revokes an access or refresh token. Every token outcome always returns 200 — including a token that does not exist, is already revoked, or is malformed — so the endpoint can never be used to probe whether a token exists. The one exception is failed client authentication, which returns 401.
|
|
4796
|
+
|
|
4797
|
+
**Authentication:** none (public endpoint).
|
|
4798
|
+
|
|
4799
|
+
#### Request Body (required)
|
|
4800
|
+
|
|
4801
|
+
Fields (`application/json`):
|
|
4802
|
+
|
|
4803
|
+
- `token` (string, required)
|
|
4804
|
+
- `token_type_hint` (string)
|
|
4805
|
+
- `client_id` (string, required)
|
|
4806
|
+
- `client_secret` (string)
|
|
4807
|
+
|
|
4808
|
+
Example:
|
|
4809
|
+
|
|
4810
|
+
```json
|
|
4811
|
+
{
|
|
4812
|
+
"token": "example_secret",
|
|
4813
|
+
"token_type_hint": "access_token",
|
|
4814
|
+
"client_id": "example_id_5",
|
|
4815
|
+
"client_secret": "example_secret"
|
|
4816
|
+
}
|
|
4817
|
+
```
|
|
4818
|
+
|
|
4819
|
+
#### Responses
|
|
4820
|
+
|
|
4821
|
+
##### 200 — Revoked
|
|
4822
|
+
|
|
4823
|
+
##### 401 — `invalid_client` — the only case that is not reported as success. Every token outcome (revoked, already revoked, unknown, malformed) always returns 200; only failed client authentication returns 401.
|
|
4824
|
+
|
|
4825
|
+
```json
|
|
4826
|
+
{
|
|
4827
|
+
"error": "invalid_client",
|
|
4828
|
+
"error_description": "Client authentication failed."
|
|
4829
|
+
}
|
|
4830
|
+
```
|
|
4831
|
+
|
|
4832
|
+
##### 500 — Unexpected server error.
|
|
4833
|
+
|
|
4834
|
+
```json
|
|
4835
|
+
{
|
|
4836
|
+
"status": 500,
|
|
4837
|
+
"message": "Bad request.",
|
|
4838
|
+
"data": null
|
|
4839
|
+
}
|
|
4840
|
+
```
|
|
4841
|
+
|
|
4842
|
+
### OpenID Connect userinfo
|
|
4843
|
+
|
|
4844
|
+
`GET /v1/oauth/userinfo`
|
|
4845
|
+
|
|
4846
|
+
Claims about the user who authorized this token. Requires the openid scope; name requires profile and email requires email. Per OIDC Core §5.3.2, the response is a flat JSON object of claims — never this API's usual `{status, data, message}` envelope.
|
|
4847
|
+
|
|
4848
|
+
**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).
|
|
4849
|
+
|
|
4850
|
+
#### Responses
|
|
4851
|
+
|
|
4852
|
+
##### 200 — The user's claims
|
|
4853
|
+
|
|
4854
|
+
```json
|
|
4855
|
+
{
|
|
4856
|
+
"sub": "example_id_29",
|
|
4857
|
+
"name": "Maria Silva",
|
|
4858
|
+
"email": "user9@example.com",
|
|
4859
|
+
"email_verified": true
|
|
4860
|
+
}
|
|
4861
|
+
```
|
|
4862
|
+
|
|
4863
|
+
##### 403 — Authenticated but not allowed to perform this action.
|
|
4864
|
+
|
|
4865
|
+
```json
|
|
4866
|
+
{
|
|
4867
|
+
"status": 403,
|
|
4868
|
+
"message": "Bad request.",
|
|
4869
|
+
"data": null
|
|
4870
|
+
}
|
|
4871
|
+
```
|
|
4872
|
+
|
|
4873
|
+
##### 401 — Missing or invalid credentials.
|
|
4874
|
+
|
|
4875
|
+
```json
|
|
4876
|
+
{
|
|
4877
|
+
"status": 401,
|
|
4878
|
+
"message": "Bad request.",
|
|
4879
|
+
"data": null
|
|
4880
|
+
}
|
|
4881
|
+
```
|
|
4882
|
+
|
|
4883
|
+
##### 500 — Unexpected server error.
|
|
4884
|
+
|
|
4885
|
+
```json
|
|
4886
|
+
{
|
|
4887
|
+
"status": 500,
|
|
4888
|
+
"message": "Bad request.",
|
|
4889
|
+
"data": null
|
|
4890
|
+
}
|
|
4891
|
+
```
|
|
4892
|
+
|
|
4893
|
+
### OAuth 2.0 protected resource metadata
|
|
4894
|
+
|
|
4895
|
+
`GET /.well-known/oauth-protected-resource`
|
|
4896
|
+
|
|
4897
|
+
RFC 9728. Identifies this API as a protected resource, the
|
|
4898
|
+
* authorization server(s) that can issue tokens for it, and the scopes it
|
|
4899
|
+
* accepts. `scopes_supported` deliberately excludes `offline_access` — per the
|
|
4900
|
+
* MCP specification, requesting a refresh token is a client concern, not
|
|
4901
|
+
* something a resource is protected by. Also referenced from the
|
|
4902
|
+
* `WWW-Authenticate: Bearer resource_metadata="..."` challenge on a 401/403.
|
|
4903
|
+
* Per RFC 8615, the response is the bare metadata object itself — never this
|
|
4904
|
+
* API's usual `{status, data, message}` envelope. The `authorization_servers` entry names the host that owns the browser-facing flow — start every integration by fetching `{authorization_servers[0]}/.well-known/oauth-authorization-server` (RFC 8414) from there, not from this API.
|
|
4905
|
+
|
|
4906
|
+
**Authentication:** none (public endpoint).
|
|
4907
|
+
|
|
4908
|
+
#### Responses
|
|
4909
|
+
|
|
4910
|
+
##### 200 — The protected resource metadata
|
|
4911
|
+
|
|
4912
|
+
```json
|
|
4913
|
+
{
|
|
4914
|
+
"resource": "string",
|
|
4915
|
+
"authorization_servers": [
|
|
4916
|
+
"string"
|
|
4917
|
+
],
|
|
4918
|
+
"scopes_supported": [
|
|
4919
|
+
"string"
|
|
4920
|
+
],
|
|
4921
|
+
"bearer_methods_supported": [
|
|
4922
|
+
"header"
|
|
4923
|
+
]
|
|
4924
|
+
}
|
|
4925
|
+
```
|
|
4926
|
+
|
|
4927
|
+
##### 500 — Unexpected server error.
|
|
4928
|
+
|
|
4929
|
+
```json
|
|
4930
|
+
{
|
|
4931
|
+
"status": 500,
|
|
4932
|
+
"message": "Bad request.",
|
|
4933
|
+
"data": null
|
|
4934
|
+
}
|
|
4935
|
+
```
|
|
4936
|
+
|
|
4693
4937
|
## Signing
|
|
4694
4938
|
|
|
4695
4939
|
### View public document
|
|
@@ -4735,7 +4979,7 @@ Retrieve a publicly shared document by ID. Public endpoint.
|
|
|
4735
4979
|
"assignment": {
|
|
4736
4980
|
"resource": "assignment",
|
|
4737
4981
|
"id": "example_id_6",
|
|
4738
|
-
"sender_email": "
|
|
4982
|
+
"sender_email": "user1@example.com",
|
|
4739
4983
|
"method": "virtual",
|
|
4740
4984
|
"expires_at": null,
|
|
4741
4985
|
"message": "string",
|
|
@@ -4761,7 +5005,7 @@ Retrieve a publicly shared document by ID. Public endpoint.
|
|
|
4761
5005
|
"resource": "signer",
|
|
4762
5006
|
"id": "example_id_7",
|
|
4763
5007
|
"full_name": "Example User",
|
|
4764
|
-
"email": "
|
|
5008
|
+
"email": "user2@example.com",
|
|
4765
5009
|
"whatsapp_phone_number": "+5500000000000",
|
|
4766
5010
|
"has_accepted_terms": false
|
|
4767
5011
|
}
|
|
@@ -4855,7 +5099,7 @@ Example:
|
|
|
4855
5099
|
|
|
4856
5100
|
```json
|
|
4857
5101
|
{
|
|
4858
|
-
"email": "
|
|
5102
|
+
"email": "user9@example.com"
|
|
4859
5103
|
}
|
|
4860
5104
|
```
|
|
4861
5105
|
|
|
@@ -4901,7 +5145,7 @@ Return the signer identified by the signer access code, including the `has_signa
|
|
|
4901
5145
|
"resource": "signer",
|
|
4902
5146
|
"id": "example_id_7",
|
|
4903
5147
|
"full_name": "Example User",
|
|
4904
|
-
"email": "
|
|
5148
|
+
"email": "user2@example.com",
|
|
4905
5149
|
"whatsapp_phone_number": "+5500000000000",
|
|
4906
5150
|
"has_accepted_terms": false
|
|
4907
5151
|
},
|
|
@@ -4973,7 +5217,7 @@ Return the document and the signer's assignment items, scoped to the signer acce
|
|
|
4973
5217
|
"assignment": {
|
|
4974
5218
|
"resource": "assignment",
|
|
4975
5219
|
"id": "example_id_6",
|
|
4976
|
-
"sender_email": "
|
|
5220
|
+
"sender_email": "user1@example.com",
|
|
4977
5221
|
"method": "virtual",
|
|
4978
5222
|
"expires_at": null,
|
|
4979
5223
|
"message": "string",
|
|
@@ -4999,7 +5243,7 @@ Return the document and the signer's assignment items, scoped to the signer acce
|
|
|
4999
5243
|
"resource": "signer",
|
|
5000
5244
|
"id": "example_id_7",
|
|
5001
5245
|
"full_name": "Example User",
|
|
5002
|
-
"email": "
|
|
5246
|
+
"email": "user2@example.com",
|
|
5003
5247
|
"whatsapp_phone_number": "+5500000000000",
|
|
5004
5248
|
"has_accepted_terms": false
|
|
5005
5249
|
}
|
|
@@ -5124,7 +5368,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
|
|
|
5124
5368
|
"assignment": {
|
|
5125
5369
|
"resource": "assignment",
|
|
5126
5370
|
"id": "example_id_6",
|
|
5127
|
-
"sender_email": "
|
|
5371
|
+
"sender_email": "user1@example.com",
|
|
5128
5372
|
"method": "virtual",
|
|
5129
5373
|
"expires_at": null,
|
|
5130
5374
|
"message": "string",
|
|
@@ -5150,7 +5394,7 @@ Retrieve the document a signer has been invited to sign, using the signer access
|
|
|
5150
5394
|
"resource": "signer",
|
|
5151
5395
|
"id": "example_id_7",
|
|
5152
5396
|
"full_name": "Example User",
|
|
5153
|
-
"email": "
|
|
5397
|
+
"email": "user2@example.com",
|
|
5154
5398
|
"whatsapp_phone_number": "+5500000000000",
|
|
5155
5399
|
"has_accepted_terms": false
|
|
5156
5400
|
}
|
|
@@ -5309,7 +5553,7 @@ The signer declines to sign the document, giving a reason. Uses the signer acces
|
|
|
5309
5553
|
|
|
5310
5554
|
Fields (`application/json`):
|
|
5311
5555
|
|
|
5312
|
-
- `decline_reason` (string, required) — Descriptive reason for declining.
|
|
5556
|
+
- `decline_reason` (string, required) — Descriptive reason for declining. Up to 2000 characters; longer values return 400.
|
|
5313
5557
|
|
|
5314
5558
|
Example:
|
|
5315
5559
|
|
|
@@ -5370,8 +5614,8 @@ Example:
|
|
|
5370
5614
|
```json
|
|
5371
5615
|
{
|
|
5372
5616
|
"document_ids": [
|
|
5373
|
-
"
|
|
5374
|
-
"
|
|
5617
|
+
"example_id_30",
|
|
5618
|
+
"example_id_31"
|
|
5375
5619
|
]
|
|
5376
5620
|
}
|
|
5377
5621
|
```
|
|
@@ -5421,15 +5665,15 @@ Decline several documents in one request. Uses the signer access code.
|
|
|
5421
5665
|
Fields (`application/json`):
|
|
5422
5666
|
|
|
5423
5667
|
- `document_ids` (array, required) — IDs of the documents to decline.
|
|
5424
|
-
- `decline_reason` (string, required) — Reason for declining.
|
|
5668
|
+
- `decline_reason` (string, required) — Reason for declining. Up to 2000 characters; longer values return 400.
|
|
5425
5669
|
|
|
5426
5670
|
Example:
|
|
5427
5671
|
|
|
5428
5672
|
```json
|
|
5429
5673
|
{
|
|
5430
5674
|
"document_ids": [
|
|
5431
|
-
"
|
|
5432
|
-
"
|
|
5675
|
+
"example_id_30",
|
|
5676
|
+
"example_id_31"
|
|
5433
5677
|
],
|
|
5434
5678
|
"decline_reason": "Unfavorable terms."
|
|
5435
5679
|
}
|
|
@@ -5557,7 +5801,7 @@ Example:
|
|
|
5557
5801
|
```json
|
|
5558
5802
|
{
|
|
5559
5803
|
"full_name": "Example User",
|
|
5560
|
-
"email": "
|
|
5804
|
+
"email": "user9@example.com",
|
|
5561
5805
|
"government_id": "00000000000"
|
|
5562
5806
|
}
|
|
5563
5807
|
```
|
|
@@ -5572,7 +5816,7 @@ Example:
|
|
|
5572
5816
|
"resource": "signer",
|
|
5573
5817
|
"id": "example_id_7",
|
|
5574
5818
|
"full_name": "Example User",
|
|
5575
|
-
"email": "
|
|
5819
|
+
"email": "user2@example.com",
|
|
5576
5820
|
"whatsapp_phone_number": "+5500000000000",
|
|
5577
5821
|
"has_accepted_terms": false
|
|
5578
5822
|
},
|
|
@@ -5788,7 +6032,7 @@ List the documents a signer is party to. Uses the signer access code.
|
|
|
5788
6032
|
"assignment": {
|
|
5789
6033
|
"resource": "assignment",
|
|
5790
6034
|
"id": "example_id_6",
|
|
5791
|
-
"sender_email": "
|
|
6035
|
+
"sender_email": "user1@example.com",
|
|
5792
6036
|
"method": "virtual",
|
|
5793
6037
|
"expires_at": null,
|
|
5794
6038
|
"message": "string",
|
|
@@ -5814,7 +6058,7 @@ List the documents a signer is party to. Uses the signer access code.
|
|
|
5814
6058
|
"resource": "signer",
|
|
5815
6059
|
"id": "example_id_7",
|
|
5816
6060
|
"full_name": "Example User",
|
|
5817
|
-
"email": "
|
|
6061
|
+
"email": "user2@example.com",
|
|
5818
6062
|
"whatsapp_phone_number": "+5500000000000",
|
|
5819
6063
|
"has_accepted_terms": false
|
|
5820
6064
|
}
|
|
@@ -5930,7 +6174,7 @@ Search the documents a signer is party to (compact representation). Uses the sig
|
|
|
5930
6174
|
"assignment": {
|
|
5931
6175
|
"resource": "assignment",
|
|
5932
6176
|
"id": "example_id_6",
|
|
5933
|
-
"sender_email": "
|
|
6177
|
+
"sender_email": "user1@example.com",
|
|
5934
6178
|
"method": "virtual",
|
|
5935
6179
|
"expires_at": null,
|
|
5936
6180
|
"message": "string",
|
|
@@ -5956,7 +6200,7 @@ Search the documents a signer is party to (compact representation). Uses the sig
|
|
|
5956
6200
|
"resource": "signer",
|
|
5957
6201
|
"id": "example_id_7",
|
|
5958
6202
|
"full_name": "Example User",
|
|
5959
|
-
"email": "
|
|
6203
|
+
"email": "user2@example.com",
|
|
5960
6204
|
"whatsapp_phone_number": "+5500000000000",
|
|
5961
6205
|
"has_accepted_terms": false
|
|
5962
6206
|
}
|
|
@@ -6097,7 +6341,7 @@ List the signers of a workspace.
|
|
|
6097
6341
|
"resource": "signer",
|
|
6098
6342
|
"id": "example_id_7",
|
|
6099
6343
|
"full_name": "Example User",
|
|
6100
|
-
"email": "
|
|
6344
|
+
"email": "user2@example.com",
|
|
6101
6345
|
"whatsapp_phone_number": "+5500000000000",
|
|
6102
6346
|
"has_accepted_terms": false
|
|
6103
6347
|
}
|
|
@@ -6154,7 +6398,7 @@ Example:
|
|
|
6154
6398
|
```json
|
|
6155
6399
|
{
|
|
6156
6400
|
"full_name": "Example User",
|
|
6157
|
-
"email": "
|
|
6401
|
+
"email": "user2@example.com",
|
|
6158
6402
|
"whatsapp_phone_number": "+5500000000000"
|
|
6159
6403
|
}
|
|
6160
6404
|
```
|
|
@@ -6169,7 +6413,7 @@ Example:
|
|
|
6169
6413
|
"resource": "signer",
|
|
6170
6414
|
"id": "example_id_7",
|
|
6171
6415
|
"full_name": "Example User",
|
|
6172
|
-
"email": "
|
|
6416
|
+
"email": "user2@example.com",
|
|
6173
6417
|
"whatsapp_phone_number": "+5500000000000",
|
|
6174
6418
|
"has_accepted_terms": false
|
|
6175
6419
|
},
|
|
@@ -6233,7 +6477,7 @@ Retrieve a signer's information.
|
|
|
6233
6477
|
"resource": "signer",
|
|
6234
6478
|
"id": "example_id_7",
|
|
6235
6479
|
"full_name": "Example User",
|
|
6236
|
-
"email": "
|
|
6480
|
+
"email": "user2@example.com",
|
|
6237
6481
|
"whatsapp_phone_number": "+5500000000000",
|
|
6238
6482
|
"has_accepted_terms": false
|
|
6239
6483
|
},
|
|
@@ -6303,7 +6547,7 @@ Example:
|
|
|
6303
6547
|
```json
|
|
6304
6548
|
{
|
|
6305
6549
|
"full_name": "Example User",
|
|
6306
|
-
"email": "
|
|
6550
|
+
"email": "user2@example.com",
|
|
6307
6551
|
"whatsapp_phone_number": "+5500000000000",
|
|
6308
6552
|
"government_id": "00000000000"
|
|
6309
6553
|
}
|
|
@@ -6319,7 +6563,7 @@ Example:
|
|
|
6319
6563
|
"resource": "signer",
|
|
6320
6564
|
"id": "example_id_7",
|
|
6321
6565
|
"full_name": "Example User",
|
|
6322
|
-
"email": "
|
|
6566
|
+
"email": "user2@example.com",
|
|
6323
6567
|
"whatsapp_phone_number": "+5500000000000",
|
|
6324
6568
|
"has_accepted_terms": false
|
|
6325
6569
|
},
|
|
@@ -6760,7 +7004,7 @@ The `status` field of a template is one of:
|
|
|
6760
7004
|
"data": [
|
|
6761
7005
|
{
|
|
6762
7006
|
"resource": "template",
|
|
6763
|
-
"id": "
|
|
7007
|
+
"id": "example_id_32",
|
|
6764
7008
|
"name": "template.pdf",
|
|
6765
7009
|
"document_name": "string",
|
|
6766
7010
|
"message": "string",
|
|
@@ -6864,7 +7108,7 @@ Retrieve the current webhook subscription for the account — which events it is
|
|
|
6864
7108
|
],
|
|
6865
7109
|
"is_active": true,
|
|
6866
7110
|
"url": "https://example.com/example-url-12",
|
|
6867
|
-
"email": "
|
|
7111
|
+
"email": "user10@example.com",
|
|
6868
7112
|
"updated_at": "2023-05-10T14:58:24Z"
|
|
6869
7113
|
},
|
|
6870
7114
|
"status": 200,
|
|
@@ -6925,7 +7169,7 @@ Example:
|
|
|
6925
7169
|
],
|
|
6926
7170
|
"is_active": true,
|
|
6927
7171
|
"url": "https://example.com/example-url-12",
|
|
6928
|
-
"email": "
|
|
7172
|
+
"email": "user10@example.com"
|
|
6929
7173
|
}
|
|
6930
7174
|
```
|
|
6931
7175
|
|
|
@@ -6942,7 +7186,7 @@ Example:
|
|
|
6942
7186
|
],
|
|
6943
7187
|
"is_active": true,
|
|
6944
7188
|
"url": "https://example.com/example-url-12",
|
|
6945
|
-
"email": "
|
|
7189
|
+
"email": "user10@example.com",
|
|
6946
7190
|
"updated_at": "2023-05-10T14:58:24Z"
|
|
6947
7191
|
},
|
|
6948
7192
|
"status": 200,
|
|
@@ -7007,7 +7251,7 @@ Deactivate the webhook integration for the account. While inactive, no events ar
|
|
|
7007
7251
|
],
|
|
7008
7252
|
"is_active": true,
|
|
7009
7253
|
"url": "https://example.com/example-url-12",
|
|
7010
|
-
"email": "
|
|
7254
|
+
"email": "user10@example.com",
|
|
7011
7255
|
"updated_at": "2023-05-10T14:58:24Z"
|
|
7012
7256
|
},
|
|
7013
7257
|
"status": 200,
|
|
@@ -7109,7 +7353,7 @@ Retrieve the delivery history for webhooks sent to the account's configured endp
|
|
|
7109
7353
|
"data": [
|
|
7110
7354
|
{
|
|
7111
7355
|
"resource": "activity_dispatching_history",
|
|
7112
|
-
"id": "
|
|
7356
|
+
"id": "example_id_33",
|
|
7113
7357
|
"event": "document_ready",
|
|
7114
7358
|
"activity_id": 456,
|
|
7115
7359
|
"endpoint": "https://example.com/example-url-13",
|
|
@@ -7170,7 +7414,7 @@ Manually retry a webhook delivery for a specific entry, without waiting for auto
|
|
|
7170
7414
|
{
|
|
7171
7415
|
"data": {
|
|
7172
7416
|
"resource": "activity_dispatching_history",
|
|
7173
|
-
"id": "
|
|
7417
|
+
"id": "example_id_33",
|
|
7174
7418
|
"event": "document_ready",
|
|
7175
7419
|
"activity_id": 456,
|
|
7176
7420
|
"endpoint": "https://example.com/example-url-13",
|