Skip to main content
GET
/
api
/
agents
/
{id}
/
config
List knowledge items
curl --request GET \
  --url https://agent-evalserver-production.up.railway.app/api/agents/{id}/config \
  --header 'x-api-key: <api-key>'
[
  {
    "id": 12,
    "label": "Refund policy",
    "description": "Customers can request a refund within 30 days of purchase.",
    "type": "knowledge",
    "node_count": 3,
    "created_at": "2026-06-02T15:08:00Z",
    "updated_at": "2026-06-02T15:08:00Z"
  }
]

List Knowledge Items

View the source knowledge attached to an evaluation agent. Use this before editing or deleting knowledge so you can inspect the current source facts and answers connected to the agent.

Endpoint

GET /api/agents/{id}/config

Authentication

Send your platform API key in the x-api-key header.

Path Parameters

NameTypeDescription
idstring<uuid>Evaluation agent ID.

Query Parameters

NameTypeDescription
typestringUse knowledge to list evaluation knowledge items.

Success Response

Returns 200 OK with an array of knowledge items.

Authorizations

x-api-key
string
header
required

Platform API key for authenticated account-level API access

Path Parameters

id
string<uuid>
required

Evaluation agent ID.

Query Parameters

type
enum<string>
default:knowledge

Filter to knowledge items.

Available options:
knowledge

Response

Knowledge items

id
integer

Knowledge item identifier.

Example:

12

label
string

Question, title, or short label for the knowledge item.

Example:

"Refund policy"

description
string

Answer or source content used during evaluation.

Example:

"Customers can request a refund within 30 days of purchase."

type
enum<string>

Public evaluation workflows should use knowledge.

Available options:
knowledge
Example:

"knowledge"

node_count
integer | null

Number of graph nodes created from this item, when available.

Example:

3

created_at
string<date-time>

Creation timestamp.

Example:

"2026-06-02T15:08:00Z"

updated_at
string<date-time>

Last update timestamp.

Example:

"2026-06-02T15:08:00Z"