Skip to main content
POST
/
superdoc
/
v1
/
annotate
cURL
curl -X POST "https://api.case.dev/superdoc/v1/annotate" \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "document": {
    "url": "<string>",
    "base64": "<string>"
  },
  "fields": [
    {
      "type": "text",
      "value": "<string>"
    }
  ]
}'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
document
object
required

Document source - provide either URL or base64

fields
object[]
required

Fields to populate in the template

output_format
enum<string>
default:docx

Output format for the annotated document

Available options:
docx,
pdf

Response

Annotated document

The response is of type file.