Add Agent Run
curl --request POST \
  --url https://agents-api.kolena.com/api/v1/client/agents/{agent_id}/runs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form files=@example-file \
  --form 'user_defined_id=<string>'
{
  "agent_id": 1,
  "created": "2025-01-01T00:00:00",
  "data": {
    "prompt_1": {
      "end_time": "2025-01-05T03:05:10.000102",
      "metadata": {
        "citations": [
          {
            "file": "demo1.pdf",
            "pages": [
              2,
              5
            ]
          }
        ],
        "confidence": 1,
        "reasoning": "Looking at file demo1.pdf, ..."
      },
      "start_time": "2025-01-05T03:05:05.000057",
      "status": "success",
      "value": "foo"
    },
    "prompt_2": {
      "end_time": "2025-01-05T03:13:59.000013",
      "metadata": {
        "citations": [
          {
            "file": "demo2.csv"
          }
        ],
        "confidence": 0.9,
        "reasoning": "The order amount is listed in demo2.csv"
      },
      "start_time": "2025-01-05T03:13:45.000051",
      "status": "success",
      "value": 123
    }
  },
  "files": [
    "demo1.pdf",
    "demo2.csv"
  ],
  "order": [
    "prompt_1",
    "prompt_2"
  ],
  "run_id": 1,
  "run_url": "https://agents.kolena.com/my_org/agents/1/runs/1",
  "status": "success",
  "updated": "2025-01-05T00:00:00"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>. The <token> represents your API key, which must be acquired from the Kolena platform.

Path Parameters

agent_id
integer
required

Body

multipart/form-data

Response

200
application/json

Successful Response

The response is of type object.