Create an upload URL
Get a pre-signed URL to upload one file. The URL accepts a single PUTand expires after 1 hour.
Endpoint
POST/s3-url-signing
Body
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Upload type, see Upload types. |
filename | string | Yes | Original file name. |
contentType | string | No | MIME type. Default application/octet-stream. |
| record ID | integer | Depends on type | e.g. conversation_id for conversation-file, product_id for product-media. |
Unknown fields are rejected with 400 Bad Request.
Request
Response
json
| Field | Description |
|---|---|
signedUrl | URL to PUT the file to. |
s3Path | Full s3://bucket/key path. Save it where the target resource asks for s3_path. |
s3PathWithoutBucket | Storage key. Save it where the target resource asks for s3_key. |
headers | Headers to send with the upload. |
Upload the file
Errors
| Status | When |
|---|---|
400 Bad Request | type or filename missing, an unknown field, or the record ID the type needs is missing or not found. |
Report an issue with this documentation
Please log in to report issues with our documentation.