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)
- URL: /api/blob
- Auth: HTTP 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)
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
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning