Request an upload URL
const url = 'https://shareout.site/v1/data/example/blobs/upload';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"filename":"example","mimeType":"example","size":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/data/example/blobs/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "filename": "example", "mimeType": "example", "size": 1 }'Step 1 of an upload. Returns an uploadUrl; PUT the raw file bytes to it within 15 minutes. When direct is true (presigned storage URL, non-browser callers only), POST confirmUrl afterwards to record the blob; when false the PUT itself records it and returns the Blob (201). Limits: 50MB per file, 500MB and 1000 blobs per artifact.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Request Bodyrequired
Section titled “Request Bodyrequired”object
Image/, video/, audio/*, application/pdf, text/plain, text/csv, text/markdown.
Bytes. Optional, enables early quota checks.
Examplegenerated
{ "filename": "example", "mimeType": "example", "size": 1}Responses
Section titled “Responses”Upload URL issued
object
object
Present only when direct is true.
Examplegenerated
{ "success": true, "data": { "uploadUrl": "https://example.com", "confirmUrl": "example", "tokenId": "example", "direct": true, "expiresAt": "2026-04-15T12:00:00Z", "maxSize": 1 }}Invalid request
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}File too large or storage full
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}