Pigeon // E-Sign
  1. Document Generation
Pigeon // E-Sign
  • Introduction
  • Authentication
  • Integrations
  • Documents
    • List Documents
      GET
    • Create Document
      POST
    • Get Document Status
      GET
    • Delete Document
      DELETE
    • Update Document
      PATCH
    • Update Document Status
      PATCH
    • Move Document to Draft
      POST
    • Get Document Details
      GET
    • Send Document
      POST
    • Create Document Session
      POST
    • Download Document
      GET
    • Download Protected Document
      GET
    • Update Document Ownership
      PATCH
    • Transfer Documents Ownership
      PATCH
  • Document Attachments
    • Document Attachment List
      GET
    • Document Attachment Create
      POST
    • Document Attachment Details
      GET
    • Document Attachment Delete
      DELETE
    • Document Attachment Download
      GET
  • Document Generation
    • List Document Fields
      GET
    • Create Document Fields
      POST
  • Document Recipients
    • Add Document Recipient
      POST
    • Edit Document Recipient
      PATCH
    • Delete Document Recipient
      DELETE
    • Reassign Document Recipient
      POST
  • Bulk Send
    • Trigger Bulk Send
    • Create Bulk Send List
    • Get Bulk Send List
    • Get Bulk Send Lists
    • Update Bulk Send List
    • Delete Bulk Send List
  • Templates
    • List Templates
    • Create Template
    • Template Details
    • Delete Template
  • Cloud Storage
    • List Cloud Storage Providers
    • Connect Cloud Storage Providers
    • Disconnect Cloud Storage Provider
  • Webhooks
    • Get all webhook subscriptions
    • Create webhook subscription
    • Get webhook subscription by uuid
    • Update webhook subscription
    • Delete webhook subscription
  • Branding
    • Get Organization Branding
    • Update Organization Branding
  • Confirmation Page
    • Enable/Disable Signature Confirmation Page
  1. Document Generation

Create Document Fields

POST
/documents/{id}/fields
Creates fields for a particular document

Request

Path Params

Body Params application/json

Example
{
    "fields": [
        {
            "field_id": "string",
            "type": "text",
            "placeholder": "string",
            "assigned_to": "string",
            "layout": {
                "page": 0,
                "position": {
                    "offset_x": 0,
                    "offset_y": 0,
                    "anchor_point": "topleft"
                },
                "style": {
                    "width": 0,
                    "height": 0
                }
            }
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/documents/BhVzRcxH9Z2LgfPPGXFUBa/fields' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fields": [
        {
            "field_id": "string",
            "type": "text",
            "placeholder": "string",
            "assigned_to": "string",
            "layout": {
                "page": 0,
                "position": {
                    "offset_x": 0,
                    "offset_y": 0,
                    "anchor_point": "topleft"
                },
                "style": {
                    "width": 0,
                    "height": 0
                }
            }
        }
    ]
}'

Responses

🟢200OK
application/json
OK
Body

Example
{
    "fields": [
        {}
    ]
}
🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🟠429429
Modified at 2024-09-17 17:05:10
Previous
List Document Fields
Next
Add Document Recipient