Error
A valid request URL is required to generate request examples{
"createdAt": "2023-11-07T05:31:56Z",
"deduplicated": true,
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileSize": 123,
"height": 2,
"mimeType": "<string>",
"originalName": "<string>",
"url": "<string>",
"width": 2
}{
"errors": [
{
"debug": {
"allowedExtensions": [
".pdf",
".docx",
".pptx",
".csv",
".txt"
]
},
"errorType": "InvalidTypeError",
"field": "file",
"message": "This file type or format isn't supported. Accepted: .pdf, .docx, .pptx, .csv, .txt"
}
]
}{
"errors": [
{
"errorType": "MaxSizeFieldError",
"field": "file",
"message": "File too large"
}
]
}{
"errors": [
{
"debug": {
"limit": 50,
"retryAfter": 3600
},
"errorType": "FileUploadRateLimitedError",
"message": "Daily file upload limit reached. Try again later."
}
]
}{
"errors": [
{
"debug": {
"retryAfter": 5
},
"errorType": "ServiceUnavailableError",
"message": "File uploads are temporarily unavailable. Try again."
}
]
}file-upload
Upload image
Upload an image file (multipart/form-data). Allowed: JPEG, PNG, GIF, WebP; max 10 MB. With kind=file, stores a hosted document instead and answers its resource, normally in state scanning until the malware scan finishes; read it again with GET /api/file-upload/{fileId}.
POST
/
api
/
file-upload
Error
A valid request URL is required to generate request examples{
"createdAt": "2023-11-07T05:31:56Z",
"deduplicated": true,
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileSize": 123,
"height": 2,
"mimeType": "<string>",
"originalName": "<string>",
"url": "<string>",
"width": 2
}{
"errors": [
{
"debug": {
"allowedExtensions": [
".pdf",
".docx",
".pptx",
".csv",
".txt"
]
},
"errorType": "InvalidTypeError",
"field": "file",
"message": "This file type or format isn't supported. Accepted: .pdf, .docx, .pptx, .csv, .txt"
}
]
}{
"errors": [
{
"errorType": "MaxSizeFieldError",
"field": "file",
"message": "File too large"
}
]
}{
"errors": [
{
"debug": {
"limit": 50,
"retryAfter": 3600
},
"errorType": "FileUploadRateLimitedError",
"message": "Daily file upload limit reached. Try again later."
}
]
}{
"errors": [
{
"debug": {
"retryAfter": 5
},
"errorType": "ServiceUnavailableError",
"message": "File uploads are temporarily unavailable. Try again."
}
]
}Query Parameters
Set to file for a hosted document (.pdf, .docx, .pptx, .csv, .txt, at most 10 MB) used by the Benchmark email editor's file links. kind=file is for the email editor only: requests authenticated with an API key receive 403. With kind=file, source and dedupe are rejected on upload, and fileType, source, includeImported and sort on the list. Omit it for the image library.
Available options:
file Response
Image stored, or (with dedupe=true) an identical existing image returned
- Option 1
- Option 2