Populate fields inside a DOCX template using SuperDoc annotations. Supports text, images, dates, and numbers. Can target individual fields by ID or multiple fields by group.
curl --request POST \
--url https://api.case.dev/superdoc/v1/annotate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document": {
"url": "<string>",
"base64": "<string>"
},
"fields": [
{
"type": "text",
"value": "<string>",
"id": "<string>",
"group": "<string>",
"options": {
"width": 123,
"height": 123
}
}
],
"output_format": "docx"
}
'"<string>"API key starting with sk_case_
Annotated document
The response is of type file.
Was this page helpful?
curl --request POST \
--url https://api.case.dev/superdoc/v1/annotate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document": {
"url": "<string>",
"base64": "<string>"
},
"fields": [
{
"type": "text",
"value": "<string>",
"id": "<string>",
"group": "<string>",
"options": {
"width": 123,
"height": 123
}
}
],
"output_format": "docx"
}
'"<string>"