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

  • idstringRequired

    Object id (UUIDv7)

Query parameters

Returns

200 with a FieldList object.

GET/api/v1/envelopes/{id}/fields

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",
)
Response200
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.read
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Headers

  • Up to 255 printable ASCII characters; a replay within 24 hours returns the first response.

    at most 255 characters

Request body

Content type application/json · required

FieldCreate

Returns

201 with a FieldList object.

POST/api/v1/envelopes/{id}/fields

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",
        ],
    },
)
Response201
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.write
404CS-API-0002No such object, or one of another account (answered alike)
409CS-API-0004The idempotency key was used with a different body (CS-API-0011 while the first is still running)
413CS-API-0006The request body is over its limit
415CS-API-0007The body is not application/json
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

  • fstringRequired

    Field id

Returns

200 with a Field object.

GET/api/v1/envelopes/{id}/fields/{f}

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",
)
Response200
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.read
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

  • fstringRequired

    Field id

Headers

  • If-MatchstringRequired

    The envelope's ETag as read ("v<version>"); a stale one is 412 CS-WF-0002, none is 428 CS-API-0008.

Request body

Content type application/json · required

Object

Returns

200 with a Field object.

PATCH/api/v1/envelopes/{id}/fields/{f}

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={},
)
Response200
{
  "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
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.write
404CS-API-0002No such object, or one of another account (answered alike)
412CS-WF-0002The If-Match version is stale: read the object again
428CS-API-0008If-Match is required and absent
413CS-API-0006The request body is over its limit
415CS-API-0007The body is not application/json
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

  • fstringRequired

    Field id

Headers

  • If-MatchstringRequired

    The envelope's ETag as read ("v<version>"); a stale one is 412 CS-WF-0002, none is 428 CS-API-0008.

Returns

204 Done with no body.

DELETE/api/v1/envelopes/{id}/fields/{f}

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\"",
)
Response204

No body.

Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.write
404CS-API-0002No such object, or one of another account (answered alike)
412CS-WF-0002The If-Match version is stale: read the object again
428CS-API-0008If-Match is required and absent
429CS-API-0003Rate 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

  • idstringRequired

    Object id (UUIDv7)

Returns

200 with a Object object.

GET/api/v1/envelopes/{id}/form-data

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",
)
Response200
{}
Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.read
404CS-API-0002No such object, or one of another account (answered alike)
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.