API Documentation
MCP
Contract
PDF and Word
Placeholder
Template
Placeholder
Create placeholder
Add a placeholder to a contract.
Copy
curl -X POST 'https://api.sendforsign.com/api/placeholder' \
-H 'Authorization: Bearer 123456789' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"action": "create",
"contractKey": "CONTRACT_KEY",
"placeholder": {
"name": "Placeholder name",
"value": "Placeholder value"
}
}
}'
Copy
{
"placeholder": {
"id": "3",
"createTime": "2024-11-22T11:11:24.000Z",
"changeTime": "2024-11-22T11:11:24.000Z",
"name": "1",
"value": "hello",
"type": "1",
"placeholderKey": "PLACEHOLER_KEY",
"position": "3"
},
"code": 201,
"message": "Placeholder created"
}
One way to add placeholders to a contract is when you create a new contract. See this page to learn more.
If a contract already exists, use the request below.
Body parameters
Action type.
ID of the contract.
Response
The code of the answer.
The message of the answer.
Copy
curl -X POST 'https://api.sendforsign.com/api/placeholder' \
-H 'Authorization: Bearer 123456789' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"action": "create",
"contractKey": "CONTRACT_KEY",
"placeholder": {
"name": "Placeholder name",
"value": "Placeholder value"
}
}
}'
Copy
{
"placeholder": {
"id": "3",
"createTime": "2024-11-22T11:11:24.000Z",
"changeTime": "2024-11-22T11:11:24.000Z",
"name": "1",
"value": "hello",
"type": "1",
"placeholderKey": "PLACEHOLER_KEY",
"position": "3"
},
"code": 201,
"message": "Placeholder created"
}
Copy
curl -X POST 'https://api.sendforsign.com/api/placeholder' \
-H 'Authorization: Bearer 123456789' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"action": "create",
"contractKey": "CONTRACT_KEY",
"placeholder": {
"name": "Placeholder name",
"value": "Placeholder value"
}
}
}'
Copy
{
"placeholder": {
"id": "3",
"createTime": "2024-11-22T11:11:24.000Z",
"changeTime": "2024-11-22T11:11:24.000Z",
"name": "1",
"value": "hello",
"type": "1",
"placeholderKey": "PLACEHOLER_KEY",
"position": "3"
},
"code": 201,
"message": "Placeholder created"
}
Assistant
Responses are generated using AI and may contain mistakes.