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": null
  },
  "config": {
    "chunkSize": 123,
    "chunkOverlap": 123,
    "metadata": {}
  }
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "namespaceId": "<string>",
    "tenantId": null,
    "status": "BACKLOG",
    "error": null,
    "payload": {
      "type": "TEXT",
      "text": "<string>",
      "name": null
    },
    "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
payload
object
required

The ingest job payload.

config
object

The ingest job config.

Response

201
application/json
The created ingest job
success
boolean
required
data
object
required