RESTful API
API
Powerful document extraction API with structured data output and direct links to source citations. Built for developers who need reliable, auditable results and a modern developer experience.
Minimal API Quickstart
Follow these steps to post a document to a Sea.dev form:
- First, get your API keys from https://app.sea.dev/settings/keys.
- Then, find a form ID at https://app.sea.dev/workflows.
- Run the cURL snippets below in order, replacing the sample placeholders with your values. Uploading is two calls: open a submission, then post the files to it.
# 1. Open a submission against a form (JSON — no files at this step)
curl https://api.sea.dev/v2/submissions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"formId":"YOUR_FORM_ID","dealRefId":"YOUR-DEAL-123"}'
# 2. Upload the document(s) to that submission (multipart)
curl https://api.sea.dev/v2/submissions/SUBMISSION_ID/extractions \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files=@YOURPDF.pdf" \
-F "model=general"
# 3. Poll until done, then read the structured data
curl https://api.sea.dev/v2/submissions/SUBMISSION_ID/status \
-H "Authorization: Bearer YOUR_API_KEY"
curl https://api.sea.dev/v2/submissions/SUBMISSION_ID/data \
-H "Authorization: Bearer YOUR_API_KEY"Interactive API Reference
Explore every endpoint without leaving this page. Use the embedded reference below or open the docs in a new tab.
Loading interactive documentation…