Skip to content

Request an upload URL

POST
/v1/data/{artifactId}/blobs/upload
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.

artifactId
required
string

Artifact ID (e.g. art_abc123).

Media typeapplication/json
object
filename
required
string
mimeType
required

Image/, video/, audio/*, application/pdf, text/plain, text/csv, text/markdown.

string
size

Bytes. Optional, enables early quota checks.

integer
Examplegenerated
{
"filename": "example",
"mimeType": "example",
"size": 1
}

Upload URL issued

Media typeapplication/json
object
success
boolean
data
object
uploadUrl
string format: uri
confirmUrl

Present only when direct is true.

string
tokenId
string
direct
boolean
expiresAt
string format: date-time
maxSize
integer
Examplegenerated
{
"success": true,
"data": {
"uploadUrl": "https://example.com",
"confirmUrl": "example",
"tokenId": "example",
"direct": true,
"expiresAt": "2026-04-15T12:00:00Z",
"maxSize": 1
}
}

Invalid request

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>
Example
{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

File too large or storage full

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>
Example
{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}