Skip to content
Seal
Esc
↑↓navigate↵open⌘Jpreview

Upload a document file

Upload file bytes to the URL from POST /uploads/generate-url (pass the token as a query param). PDFs are stored as-is. DOCX/XLSX/PPTX/CSV are converted to PDF via the convert worker; originals are kept. Requires a valid upload token (not a normal API key on this path).

POST/uploads
Authorization
AuthorizationBearer token · headerrequired

Pass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.

Query parameters
tokenstringrequired
Request body
requiredapplication/pdf
string<binary>
Responses
200

Stored (PDF bytes available at storageId)

storageIdstringrequired
400

Invalid request parameters

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

401

Missing or invalid API key

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

502

Conversion failed

Try it
Server
Authorization
Parameters
Bodyapplication/pdf
Request
curl -X POST "https://api.seal.nyc/api/v1/uploads?token=string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/pdf" \
  -d '"string"'
Response
{
  "storageId": "string"
}