Skip to main content
POST
/
v1
/
ingest
/
sources
/
{source_key}
/
uploads
Initiate a hosted upload
curl --request POST \
  --url https://api.withsplendor.com/v1/ingest/sources/{source_key}/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-splendor-tenant-id: <x-splendor-tenant-id>' \
  --data '
{
  "content_type": "<string>",
  "object_size_bytes": 1,
  "filename": "<string>"
}
'
{
  "bucket": "acme-uploads",
  "expires_at": "2026-01-15T09:30:00Z",
  "key": "uploads/ups_01H8Z3/data.jsonl",
  "part_size_bytes": 8388608,
  "required_headers": {},
  "upload_id": "mpu_1",
  "upload_mode": "multipart",
  "upload_session_id": "ups_01H8Z3",
  "upload_url": null
}

Authorizations

Authorization
string
header
required

API token issued from the Splendor console.

Headers

x-splendor-tenant-id
string
required

Selects the tenant (workspace) the request acts within.

Path Parameters

source_key
string
required

Body

application/json
content_type
string
required
Required string length: 1 - 255
object_size_bytes
integer
required
Required range: x >= 0
filename
string | null
Maximum string length: 1024

Response

Successful Response

bucket
string
required
expires_at
string<date-time>
required
key
string
required
part_size_bytes
integer | null
required
required_headers
Required Headers · object
required
upload_id
string | null
required
upload_mode
enum<string>
required
Available options:
single,
multipart
upload_session_id
string
required
upload_url
string | null
required