Skip to main content
POST
/
api
/
ingest
/
upload
Upload File
curl --request POST \
  --url https://api.example.com/api/ingest/upload \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'destination_project_id=<string>' \
  --form destination_type=library \
  --form namespace=global \
  --form 'taxonomy_labels=<string>'
{
  "content_type": "youtube",
  "created_at": "2023-11-07T05:31:56Z",
  "job_id": "<string>",
  "status": "queued",
  "chunks_created": 1,
  "completed_at": "2023-11-07T05:31:56Z",
  "current_step": "<string>",
  "destination_project_id": "<string>",
  "destination_type": "library",
  "error": "<string>",
  "progress": 0,
  "title": "<string>"
}

Body

multipart/form-data
file
file
required
destination_project_id
string | null
destination_type
string
default:library
namespace
string
default:global
Minimum string length: 1
taxonomy_labels
string | null

Response

Successful Response

Status of an ingestion job.

content_type
enum<string>
required

Type of content being ingested.

Available options:
youtube,
article,
pdf,
markdown,
text
created_at
string<date-time>
required
job_id
string
required
status
enum<string>
required

Status of an ingestion job.

Available options:
queued,
processing,
completed,
failed
chunks_created
integer | null
Required range: x >= 0
completed_at
string<date-time> | null
current_step
string | null
destination_project_id
string | null
destination_type
enum<string>
default:library
Available options:
library,
project
error
string | null
progress
integer
default:0
Required range: 0 <= x <= 100
title
string | null