Blob
Upload a blob
Changed onpost/blob
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Query parameters
pathnamestring
Path where the blob will be stored
content_typestring
Content type of the blob (optional, will be guessed from extension)
add_random_suffixboolean
Add random suffix to pathname to prevent collisions
project_idinteger
Project ID (required for API key/session auth, optional for deployment tokens)
Request body application/octet-stream
string required
Response
Blob uploaded successfully
Example response
{
"contentType": "image/png",
"pathname": "images/avatar-abc123.png",
"size": 12345,
"uploadedAt": "2025-01-03T12:00:00Z",
"url": "/api/blob/123/images/avatar-abc123.png"
}Changes
- breaking
removed the required property
extensionsfrom the response with the status - breaking
removed the required property
extensionsfrom the response with the status - breaking
removed the required property
extensionsfrom the response with the status
- breaking