Skip to content
Seal
Esc
navigateopen⌘Jpreview

Generate upload URL

Returns a short-lived upload URL for uploading a PDF to Seal’s storage. Upload the file with a POST request using Content-Type: application/pdf, then pass the returned storage_id to POST /documents.

POST/uploads/generate-url
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.

Responses
200

Upload URL generated

upload_urlstring<uri>required

Pre-signed URL — expires in 60 seconds

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

Try it
Server
Authorization
Request
curl -X POST "https://api.seal.nyc/api/v1/uploads/generate-url" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "upload_url": "http://example.com"
}