Connecting to Kolena
API Reference
SDK Reference
Webook Connection
client
Sample Results
Copy
curl --request GET \
--url https://agents-api.kolena.com/api/v1/client/agents/{agent_id}/sample \
--header 'Authorization: Bearer <token>'
Copy
[
{
"agent_id": 1,
"created": "2025-01-01T00:00:00",
"data": {
"column_1": {
"metadata": {
"citations": [
{
"file": "demo1.pdf",
"pages": [
2,
5
]
}
],
"confidence": 1,
"reasoning": "Looking at file demo1.pdf, ..."
},
"value": "foo"
},
"column_2": {
"metadata": {
"citations": [
{
"file": "demo2.csv"
}
],
"confidence": 0.9,
"reasoning": "The order amount is listed in demo2.csv"
},
"value": 123
}
},
"files": [
"demo1.pdf",
"demo2.csv"
],
"order": [
"column_1",
"column_2"
],
"run_id": 1,
"run_url": "https://agents.kolena.com/my_org/agents/1/runs/1",
"updated": "2025-01-05T00:00:00"
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
. The <token>
represents your API key, which must be acquired from the Kolena platform.
Path Parameters
Query Parameters
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request GET \
--url https://agents-api.kolena.com/api/v1/client/agents/{agent_id}/sample \
--header 'Authorization: Bearer <token>'
Copy
[
{
"agent_id": 1,
"created": "2025-01-01T00:00:00",
"data": {
"column_1": {
"metadata": {
"citations": [
{
"file": "demo1.pdf",
"pages": [
2,
5
]
}
],
"confidence": 1,
"reasoning": "Looking at file demo1.pdf, ..."
},
"value": "foo"
},
"column_2": {
"metadata": {
"citations": [
{
"file": "demo2.csv"
}
],
"confidence": 0.9,
"reasoning": "The order amount is listed in demo2.csv"
},
"value": 123
}
},
"files": [
"demo1.pdf",
"demo2.csv"
],
"order": [
"column_1",
"column_2"
],
"run_id": 1,
"run_url": "https://agents.kolena.com/my_org/agents/1/runs/1",
"updated": "2025-01-05T00:00:00"
}
]
Assistant
Responses are generated using AI and may contain mistakes.