For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GuidesAPI ReferenceChangelogModel Versioning
GuidesAPI ReferenceChangelogModel Versioning
    • Getting Started
    • Authentication
    • API Versioning
    • SDKs
    • Deployments
  • Processor Endpoints
    • POSTRun Processor
    • GETGet Processor Run
    • GETList Processor Runs
    • POSTCancel Processor Run
    • DELDelete Processor Run
    • GETGet Batch Processor Run
    • GETList Processors
    • POSTCreate Processor
    • POSTUpdate Processor
    • POSTPublish Processor Version
    • GETGet Processor Version
    • GETList Processor Versions
  • Parse Endpoints
    • POSTParse File
    • POSTParse File Async
    • GETGet Parser Run
    • DELDelete Parser Run
  • Workflow Endpoints
    • POSTRun Workflow
    • GETGet Workflow Run
    • GETList Workflow Runs
    • POSTUpdate Workflow Run
    • POSTCancel Workflow Run
    • DELDelete Workflow Run
    • POSTCreate Workflow
    • POSTBatch Run Workflow
    • POSTCorrect Workflow Run Outputs
  • File Endpoints
    • POSTUpload File
    • GETGet File
    • DELDelete File
    • GETList Files
    • POSTCreate File
  • Edit Endpoints
    • POSTEdit File
    • POSTEdit File Async
    • POSTGenerate Edit Schema
    • GETGet Edit Run
    • DELDelete Edit Run
    • GETGet Edit Template
  • Evaluation Set Endpoints
    • GETGet Evaluation Set
    • GETList Evaluation Sets
    • POSTCreate Evaluation Set
    • GETList Evaluation Set Items
    • POSTCreate Evaluation Set Item
    • POSTUpdate Evaluation Set Item
    • DELDelete Evaluation Set Item
    • POSTBulk Create Evaluation Set Items
LogoLogo
Evaluation Set Endpoints

List Evaluation Set Items

GET
https://api.extend.ai/evaluation_sets/:id/items
GET
/evaluation_sets/:id/items
$curl -G https://api.extend.ai/evaluation_sets/evaluation_set_id_here/items \
> -H "x-extend-api-version: 2025-04-21" \
> -H "Authorization: Bearer <token>" \
> -d sortBy=createdAt \
> -d sortDir=desc
1{
2 "success": true,
3 "evaluationSetItems": [
4 {
5 "object": "evaluation_set_item",
6 "id": "evi_kR9mNP12Qw4yTv8BdR3H",
7 "evaluationSetId": "ev_2LcgeY_mp2T5yPaEuq5Lw",
8 "fileId": "file_xK9mLPqRtN3vS8wF5hB2cQ",
9 "expectedOutput": {
10 "vendor_name": {
11 "id": "vendor_name",
12 "type": "string",
13 "value": "Acme Corporation",
14 "confidence": 1
15 },
16 "invoice_number": {
17 "id": "invoice_number",
18 "type": "string",
19 "value": "INV-2024-001",
20 "confidence": 1
21 },
22 "total_amount": {
23 "id": "total_amount",
24 "type": "currency",
25 "value": {
26 "amount": 1250,
27 "iso_4217_currency_code": "USD"
28 },
29 "confidence": 1
30 },
31 "line_items": {
32 "id": "line_items",
33 "type": "array",
34 "value": [
35 {
36 "description": "Office Supplies",
37 "quantity": 5,
38 "unit_price": 25,
39 "total": 125
40 },
41 {
42 "description": "Software License",
43 "quantity": 1,
44 "unit_price": 1125,
45 "total": 1125
46 }
47 ],
48 "confidence": 1
49 }
50 }
51 },
52 {
53 "object": "evaluation_set_item",
54 "id": "evi_7mXp9Rq3nW2vY1kT6fH4bZ",
55 "evaluationSetId": "ev_2LcgeY_mp2T5yPaEuq5Lw",
56 "fileId": "file_3nL8mKpR5qW9vT2fG7hY1",
57 "expectedOutput": {
58 "vendor_name": {
59 "id": "vendor_name",
60 "type": "string",
61 "value": "Global Tech Solutions",
62 "confidence": 1
63 },
64 "invoice_number": {
65 "id": "invoice_number",
66 "type": "string",
67 "value": "GTS-2024-156",
68 "confidence": 1
69 },
70 "total_amount": {
71 "id": "total_amount",
72 "type": "currency",
73 "value": {
74 "amount": 875.5,
75 "iso_4217_currency_code": "USD"
76 },
77 "confidence": 1
78 },
79 "line_items": {
80 "id": "line_items",
81 "type": "array",
82 "value": [
83 {
84 "description": "Cloud Storage",
85 "quantity": 12,
86 "unit_price": 45,
87 "total": 540
88 },
89 {
90 "description": "API Usage",
91 "quantity": 1,
92 "unit_price": 335.5,
93 "total": 335.5
94 }
95 ],
96 "confidence": 1
97 }
98 }
99 },
100 {
101 "object": "evaluation_set_item",
102 "id": "evi_5kN7pQ9mR2wV8xT3fG1bY",
103 "evaluationSetId": "ev_2LcgeY_mp2T5yPaEuq5Lw",
104 "fileId": "file_9sL2mPrQ6tW4vX8kF5hG3",
105 "expectedOutput": {
106 "vendor_name": {
107 "id": "vendor_name",
108 "type": "string",
109 "value": "Office Plus Ltd",
110 "confidence": 1
111 },
112 "invoice_number": {
113 "id": "invoice_number",
114 "type": "string",
115 "value": "OP-2024-789",
116 "confidence": 1
117 },
118 "total_amount": {
119 "id": "total_amount",
120 "type": "currency",
121 "value": {
122 "amount": 342.75,
123 "iso_4217_currency_code": "USD"
124 },
125 "confidence": 1
126 },
127 "line_items": {
128 "id": "line_items",
129 "type": "array",
130 "value": [
131 {
132 "description": "Printer Paper",
133 "quantity": 10,
134 "unit_price": 12.5,
135 "total": 125
136 },
137 {
138 "description": "Ink Cartridges",
139 "quantity": 3,
140 "unit_price": 72.58,
141 "total": 217.75
142 }
143 ],
144 "confidence": 1
145 }
146 }
147 }
148 ],
149 "nextPageToken": "mK9pLPqRtN3vS8wF5hB2cQ==:yWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
150}

List all items in a specific evaluation set. Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given processor in Extend.

This endpoint returns a paginated response. You can use the nextPageToken to fetch subsequent results.

Was this page helpful?
Previous

Create Evaluation Set Item

Next
Built with

Authentication

AuthorizationBearer

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

Path parameters

idstringRequired

The ID of the evaluation set to retrieve items for.

Example: "ev_2LcgeY_mp2T5yPaEuq5Lw"

Headers

x-extend-api-version"2025-04-21"Optional
API version to use for the request. If you do not specify a version, you will either receive a `400 Bad Request` or be set to a previous legacy version. See [API Versioning](https://docs.extend.ai/2025-04-21/developers/api-versioning) for more details.
x-extend-workspace-idstringOptional
The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2025-04-21/developers/authentication) for details on API key scopes.

Query parameters

sortByenumOptionalDefaults to updatedAt
Sorts the evaluation set items by the given field.
Allowed values:
sortDirenumOptionalDefaults to desc
Sorts the evaluation set items in ascending or descending order. Ascending order means the earliest evaluation set is returned first.
Allowed values:
nextPageTokenstringOptional
The token used to fetch the page of results from a previous request. We use cursor based pagination and will return a `nextPageToken` in the response if there are more results. Note that if other parameters are changed in subsequent requests, you may receive inconsistent data. example: `"xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="`
maxPageSizeintegerOptional1-1000Defaults to 10
The maximum number of results to return in the response. You may receive less than this number if there are fewer results than the maximum.

Response

Successfully retrieved evaluation set items
successboolean
evaluationSetItemslist of objects
nextPageTokenstring

The token used to fetch the page of results from a previous request. We use cursor based pagination and will return a nextPageToken in the response if there are more results.

Note that if other parameters are changed in subsequent requests, you may receive inconsistent data.

example: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error

API version to use for the request. If you do not specify a version, you will either receive a 400 Bad Request or be set to a previous legacy version. See API Versioning for more details.

The workspace ID to target. Required when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See Authentication for details on API key scopes.

The token used to fetch the page of results from a previous request. We use cursor based pagination and will return a nextPageToken in the response if there are more results.

Note that if other parameters are changed in subsequent requests, you may receive inconsistent data.

example: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="