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

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

Response

201
application/json

The created ingest job

The response is of type object.