Core resources
Fields
What each recipient fills: signatures, initials, dates, text, check boxes and the other field types, placed by page coordinates or by anchor text. Values are read back as form data.
List fields
GET/api/v1/envelopes/{id}/fields
Fields, optionally of one recipient or document
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Query parameters
recipient_idstringdocument_idstring
Returns
200 with a FieldList object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/fields \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.listFields({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.list_fields(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
){
"items": [
{
"id": "0193c0d2-856b-774d-80df-05b9d4456b17",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"recipient_id": "0193665d-0698-7dbc-88fb-95afc25c3a4d",
"type": "signature",
"shared_with": [
"example"
],
"placement": {
"page": 1,
"x": "72",
"y": "600",
"width": "180",
"height": "40"
}
}
]
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.read |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Add fields
POST/api/v1/envelopes/{id}/fields
Add one field, or {items: [...]}
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Headers
Idempotency-KeystringUp to 255 printable ASCII characters; a replay within 24 hours returns the first response.
Request body
Content type application/json · required
Returns
201 with a FieldList object.
curl
curl -X POST https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/fields \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"anchor": {
"text": "Example text"
},
"shared_with": [
"example"
]
}'TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.addFields({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
idempotencyKey: "order-1042",
body: {
"anchor": {
"text": "Example text"
},
"shared_with": [
"example"
]
},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.add_fields(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
idempotency_key="order-1042",
body={
"anchor": {
"text": "Example text",
},
"shared_with": [
"example",
],
},
){
"items": [
{
"id": "0193c0d2-856b-774d-80df-05b9d4456b17",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"recipient_id": "0193665d-0698-7dbc-88fb-95afc25c3a4d",
"type": "signature",
"shared_with": [
"example"
],
"placement": {
"page": 1,
"x": "72",
"y": "600",
"width": "180",
"height": "40"
}
}
]
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 409 | CS-API-0004 | The idempotency key was used with a different body (CS-API-0011 while the first is still running) |
| 413 | CS-API-0006 | The request body is over its limit |
| 415 | CS-API-0007 | The body is not application/json |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Get field
GET/api/v1/envelopes/{id}/fields/{f}
A field
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Field id
Returns
200 with a Field object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/fields/0193c0d2-856b-774d-80df-05b9d4456b17 \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.getField({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
f: "0193c0d2-856b-774d-80df-05b9d4456b17",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_field(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
f="0193c0d2-856b-774d-80df-05b9d4456b17",
){
"id": "0193c0d2-856b-774d-80df-05b9d4456b17",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"recipient_id": "0193665d-0698-7dbc-88fb-95afc25c3a4d",
"type": "signature",
"shared_with": [
"example"
],
"placement": {
"page": 1,
"x": "72",
"y": "600",
"width": "180",
"height": "40"
}
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.read |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Update field
PATCH/api/v1/envelopes/{id}/fields/{f}
Merge into a field (If-Match required)
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Field id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Request body
Content type application/json · required
Returns
200 with a Field object.
curl
curl -X PATCH https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/fields/0193c0d2-856b-774d-80df-05b9d4456b17 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"' \
-H "Content-Type: application/json" \
-d '{}'TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.patchField({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
f: "0193c0d2-856b-774d-80df-05b9d4456b17",
ifMatch: '"v3"',
body: {},
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.patch_field(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
f="0193c0d2-856b-774d-80df-05b9d4456b17",
if_match="\"v3\"",
body={},
){
"id": "0193c0d2-856b-774d-80df-05b9d4456b17",
"document_id": "019343cc-23fa-752b-887b-4cc1d02b5b11",
"recipient_id": "0193665d-0698-7dbc-88fb-95afc25c3a4d",
"type": "signature",
"shared_with": [
"example"
],
"placement": {
"page": 1,
"x": "72",
"y": "600",
"width": "180",
"height": "40"
}
}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 413 | CS-API-0006 | The request body is over its limit |
| 415 | CS-API-0007 | The body is not application/json |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Delete field
DELETE/api/v1/envelopes/{id}/fields/{f}
Remove a field (If-Match required)
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.write · OAuth scope envelopes:write
Path parameters
Object id (UUIDv7)
Field id
Headers
The envelope's
ETagas read ("v<version>"); a stale one is412 CS-WF-0002, none is428 CS-API-0008.
Returns
204 Done with no body.
curl
curl -X DELETE https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/fields/0193c0d2-856b-774d-80df-05b9d4456b17 \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-H 'If-Match: "v3"'TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.deleteField({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
f: "0193c0d2-856b-774d-80df-05b9d4456b17",
ifMatch: '"v3"',
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.delete_field(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
f="0193c0d2-856b-774d-80df-05b9d4456b17",
if_match="\"v3\"",
)No body.
Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.write |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 412 | CS-WF-0002 | The If-Match version is stale: read the object again |
| 428 | CS-API-0008 | If-Match is required and absent |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.
Get form data
GET/api/v1/envelopes/{id}/form-data
Every labelled field's value by data label
AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session
Permissionenvelopes.read · OAuth scope envelopes:read
Path parameters
Object id (UUIDv7)
Returns
200 with a Object object.
curl
curl https://sign.example.com/api/v1/envelopes/01934c50-3ca6-7776-81e5-c4aaecfe9962/form-data \
-H "Authorization: Bearer $OPENSEAL_API_KEY"TypeScript
import { OpenSeal } from "@openseal/sdk";
const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const data = await os.getFormData({
id: "01934c50-3ca6-7776-81e5-c4aaecfe9962",
});Python
import os
from openseal import OpenSeal
client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
data = client.get_form_data(
id="01934c50-3ca6-7776-81e5-c4aaecfe9962",
){}Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.read |
| 404 | CS-API-0002 | No such object, or one of another account (answered alike) |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.