A Client ID for your org.
Params
Query Params
The number of documents to fetch. Defaults to 10.
The page number to fetch. Defaults to 1.
Response
If set, Image URL for the document
If set, Text for the document
The created at date of the document
The metadata of the document
The last object id seen in the result set. This can be used for deep pagination.
curl --location --request GET 'https://api.getmetal.io/v1/indexes/{indexId}/documents' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
{
"data": [
{
"id": "1",
"text": "My text 1",
"createdAt": "2023-07-03T14:27:02.413Z",
"metadata": {}
},
{
"id": "2",
"text": "My text 2",
"createdAt": "2023-07-03T14:27:02.418Z",
"metadata": {}
}
],
"lastSeenObjectId": "64d529f3bd43b75ce5e020f9"
}