Get Signed Upload URL
Documents
Get Upload URL
Get a presigned URL for direct file upload to cloud storage.
POST
Get Signed Upload URL
Authentication & Scope
Requires authentication. No specific ability required.Overview
Before uploading documents to Raydocs, you need to obtain a signed URL that allows direct upload to cloud storage. This two-step process:- Get signed URL - This endpoint returns a presigned S3 URL
- Upload file - PUT your file directly to the URL (no auth header needed)
Request
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
content_type | string | Yes | MIME type of the file (application/pdf, image/png, image/jpeg) |
visibility | string | No | Storage visibility (default: private) |
Supported File Types
| Type | Content-Type |
|---|---|
application/pdf | |
| PNG | image/png |
| JPEG | image/jpeg |
Response
200 OK – Signed URL details.
Response Fields
| Field | Type | Description |
|---|---|---|
url | string | Presigned S3 URL for file upload |
key | string | File key to use in subsequent API calls |
headers | object | Additional headers to include in upload request |
Upload the File
After receiving the signed URL, upload your file directly:Complete Example
Next Steps
After uploading files, use the file keys to create sessions:Batch Create Sessions
Create sessions with auto-extract from uploaded files
API Cookbook
Complete end-to-end example
Authorizations
Body
application/json
