Skip to main content
POST
/
v1
/
agents
/
ingest_and_create
Create Agent With Ingestion
curl --request POST \
  --url https://api.clarm.com/v1/agents/ingest_and_create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'agent_json=<string>' \
  --form files.items='@example-file'
{
  "id": 123,
  "name": "<string>",
  "description": "<string>",
  "steps": [
    "<string>"
  ],
  "instructions": "<string>",
  "collections": [
    123
  ]
}
Create an agent with data ingestion in a single API call. This endpoint combines data ingestion, indexing, and agent creation into one streamlined process.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
agent_json
string
required

JSON string containing agent and sources configuration

files
file[]

Response

Successful Response

Response model for agent retrieval

id
integer
required
name
string
required
description
string
required
steps
string[] | null
required
instructions
string | null
required
collections
integer[]
required