Presigned Url

Generate a presigned URL for uploading a document securely

POST /api/v1/presigned-url

Body application/json
fileType string · optional

The type of the file for which the presigned URL is being generated (e.g., ‘jpeg’).

Responses

200 A presigned URL and additional fields for the upload
presignedUrl string · optional

The URL to which the file should be uploaded.

fields object · optional

Additional fields required by the storage service to accompany the upload request.

fileType string · optional

Echoes back the type of the file that was specified in the request.

key string · optional

A unique identifier for the uploaded file in the storage system.

400 Bad request – typically means the fileType was not provided or is unsupported.

No content

401 Unauthorized – API key missing or invalid.

No content

500 Internal server error – something went wrong on the server side.

No content

POST /api/v1/presigned-url
POST /api/v1/presigned-url HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "fileType": "text"
}
{
  "presignedUrl": "text",
  "fields": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "fileType": "text",
  "key": "text"
}
No content
No content
No content