v2-api
v2-api-sources

Get PDF upload URL

Changed on

Generate a signed URL for direct PDF upload. Use the returned gcs_path in POST /v2/sources.

post/sources/upload-url

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

filenamestring required

Original filename (used for storage object naming)

content_typestring

MIME type for upload (PDF, CSV, TSV, XLS, XLSX)

Response

Successful Response

upload_urlstring required

Signed URL for direct upload (HTTP PUT)

gcs_pathstring required

GCS path to pass to create-source payload

expires_in_secondsinteger required

Signed URL expiration in seconds

Changes