Skip to main content
POST
cURL
Indexing starts on its own after the upload: an active source indexes and bills immediately, a draft source runs a credit estimate instead (see Retrieve estimate). Poll List files until each file’s status is indexed.Files the upload policy refuses (unsupported type, too large, empty) are returned in rejected with a 201; the request is a 400 no_files_accepted only when every file was refused.

Authorizations

Authorization
string
header
required

A personal API key or an OAuth 2.0 access token. Personal API keys also require the x-auth-key header with your user ID.

Path Parameters

source_id
string
required

The source id.

Body

multipart/form-data
files
file[]
required

One part per file. The part's filename becomes the file's name in the source.

Maximum array length: 25

Response

At least one file was stored.

files
object[]
required

Files that were stored, in uploaded status.

rejected
object[]
required

Files the upload policy refused.

sync_run_id
string | null

The indexing (or estimate) run this upload started, when one could be queued.