POST
/
v1
/
namespace
/
{namespaceId}
/
ingest-jobs
Create an ingest job
curl --request POST \
  --url https://api.agentset.ai/v1/namespace/{namespaceId}/ingest-jobs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "payload": {
    "type": "<string>",
    "text": "<string>",
    "fileName": "<string>"
  },
  "config": {
    "chunkSize": 123,
    "maxChunkSize": 123,
    "chunkOverlap": 123,
    "metadata": {},
    "chunkingStrategy": "basic",
    "strategy": "auto"
  }
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "namespaceId": "<string>",
    "tenantId": "<string>",
    "status": "BACKLOG",
    "error": "<string>",
    "payload": {
      "type": "<string>",
      "text": "<string>",
      "fileName": "<string>"
    },
    "config": {
      "chunkSize": 123,
      "maxChunkSize": 123,
      "chunkOverlap": 123,
      "metadata": {},
      "chunkingStrategy": "basic",
      "strategy": "auto"
    },
    "createdAt": "<string>",
    "queuedAt": "<string>",
    "preProcessingAt": "<string>",
    "processingAt": "<string>",
    "completedAt": "<string>",
    "failedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Headers

x-tenant-id
string

The tenant id to use for the request. If not provided, the default tenant will be used.

Path Parameters

namespaceId
string
required

The id of the namespace to create the ingest job for.

Body

application/json
payload
object
required

The ingest job payload.

name
string | null

The name of the ingest job.

config
object

The ingest job config.

Response

The created ingest job

success
boolean
required
data
object
required