- Introduction
- Authentication
- Integrations
- Webhooks
- Guides
- Requests
- Create RequestPOST
- List RequestsGET
- Get RequestGET
- Delete RequestDELETE
- Update RequestPATCH
- Verify RequestPOST
- Close RequestPOST
- Duplicate RequestPOST
- Reject Request (Request Changes)POST
- Send Request ReminderPOST
- List Request RemindersGET
- Get Request Activity LogGET
- List Organization RequestsGET
- Update RequestPATCH
- Delete RequestDELETE
- Request Items
- Templates
- Webhooks
- Files
- Request Attachments
- File Sharing
- E-Signature / Document Forms
- Users
- Cloud Storage
- Branding
- Confirmation Page
- Organization
- RequestItems
- Documents
Create New E-Signature Document
POST
/contracts
Request
Body Params application/octet-stream
Uploaded File
Request 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 '/contracts' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@cmMtdXBsb2FkLTE3Mjc3ODY5MDU2NDgtOA==/dummy.pdf'
Responses
🟢201Created
application/json
Body
document
object (File)Â
required
id
stringÂ
required
name
stringÂ
required
mime
stringÂ
required
annotationUrl
string <uri>
required
annotations
array[object (ContractAnnotation) {4}]Â
optional
id
stringÂ
optional
type
enum<string>Â
required
Allowed values:
stringnumberdate
defaultValue
stringÂ
optional
layout
object (ContractItemLayout)Â
optional
fields
array[object (ContractFields) {5}]Â
optional
id
stringÂ
optional
type
enum<string>Â
required
Allowed values:
textsignaturecheckboxradioinitialsdate
placeholder
stringÂ
optional
assigned_to
object (Assignee)Â
optional
layout
object (ContractItemLayout)Â
optional
Example
{
"document": {
"id": "f16992a7-ff87-4b00-ae64-a999f13d1403",
"name": "SignMe.pdf",
"mime": "application/pdf"
},
"annotationUrl": "https://app.pigeondocuments.com/doc/xzvcxjdsf2341masf134kadsf",
"annotations": [
{
"type": "string",
"defaultValue": "velit",
"layout": {
"page": 0,
"position": {
"offset_x": -60539841.60988639,
"offset_y": 3963177.9090092033,
"anchor_point": "TOP_LEFT"
},
"style": {
"width": -66756283,
"height": 81656173
}
}
},
{
"type": "date",
"defaultValue": "irure",
"layout": {
"page": 0,
"position": {
"offset_x": -14777911.942147434,
"offset_y": 10951335.703829646,
"anchor_point": "BOTTOM_RIGHT"
},
"style": {
"width": 70890502,
"height": 67779062
}
}
},
{
"type": "number",
"defaultValue": "in sunt mollit et",
"layout": {
"page": 0,
"position": {
"offset_x": -36367758.28152019,
"offset_y": 18781084.66245605,
"anchor_point": "BOTTOM_RIGHT"
},
"style": {
"width": -84969928,
"height": 55919615
}
}
}
],
"fields": [
{
"type": "initials",
"placeholder": "veniam Lorem cillum Excepteur",
"assigned_to": {
"email": "Skyla.Mann86@gmail.com",
"firstName": "Elnora",
"lastName": "Cummings"
},
"layout": {
"page": 0,
"position": {
"offset_x": 83148902.07392943,
"offset_y": -6317848.638096988,
"anchor_point": "BOTTOM_LEFT"
},
"style": {
"width": -25387274,
"height": 22069880
}
}
},
{
"type": "initials",
"placeholder": "consequat culpa",
"assigned_to": {
"email": "Hans57@hotmail.com",
"firstName": "Camren",
"lastName": "Denesik"
},
"layout": {
"page": 0,
"position": {
"offset_x": -43086032.99965745,
"offset_y": 82797232.86581287,
"anchor_point": "BOTTOM_LEFT"
},
"style": {
"width": -58515984,
"height": -27609452
}
}
}
]
}
🟠400Bad Request
Modified at 2024-10-29 16:11:39