GuidesAPI ReferenceProcessor Changelog
GuidesAPI ReferenceProcessor Changelog
    • Getting Started
    • API Versioning
    • SDKs
  • Processor Endpoints
    • POSTRun Processor
    • GETList Processor Runs
    • GETGet Processor Run
    • POSTCancel Processor Run
    • DELDelete Processor Run
    • GETGet Batch Processor Run
    • POSTCreate Processor
    • POSTUpdate Processor
    • POSTPublish Processor Version
    • GETGet Processor Version
    • GETList Processor Versions
  • 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
  • Parse Endpoints
    • POSTParse File
    • POSTParse File Async
    • GETGet Parser Run
    • DELDelete Parser Run
  • File Endpoints
    • POSTUpload File
    • GETGet File
    • DELDelete File
    • GETList Files
    • POSTCreate File
  • Evaluation Set Endpoints
    • GETGet Evaluation Set
    • GETList Evaluation Sets
    • POSTCreate Evaluation Set
    • GETList Evaluation Set Items
    • POSTCreate Evaluation Set Item
    • POSTUpdate Evaluation Set Item
    • POSTBulk Create Evaluation Set Items
LogoLogo
Evaluation Set Endpoints

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

Create Evaluation Set Item

Next
Built with
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.
List Evaluation Set Items

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"OptionalDefaults to 2025-04-21
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](/developers/api-versioning) for more details.

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="`

Response

Successfully retrieved evaluation set items
successboolean
evaluationSetItemslist of objects
nextPageTokenstring or null
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

maxPageSizeintegerOptional>=1<=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.
Sorts the evaluation set items by the given field.
Sorts the evaluation set items in ascending or descending order. Ascending order means the earliest evaluation set is returned first.
Successfully retrieved evaluation set items

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

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.

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.

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="

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="

The ID of the evaluation set to retrieve items for.

Example: "ev_2LcgeY_mp2T5yPaEuq5Lw"