Skip to main content
GET
/
v0
/
documents
/
chunked
List document chunks
curl --request GET \
  --url https://api.avidoai.com/v0/documents/chunked \
  --header 'x-api-key: <api-key>' \
  --header 'x-application-id: <api-key>'
{
  "data": [
    {
      "documentId": "123e4567-e89b-12d3-a456-426614174000",
      "versionId": "321e4567-e89b-12d3-a456-426614174001",
      "documentName": "API Documentation",
      "chunkIndex": 0,
      "title": "API Documentation",
      "content": "This document describes the API endpoints...",
      "embedding": [
        0.1,
        0.2,
        0.3
      ]
    }
  ],
  "pagination": {
    "skip": 0,
    "limit": 25,
    "total": 100,
    "totalPages": 4
  }
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

x-application-id
string
header
required

Your unique Avido Application ID

Query Parameters

skip
integer
default:0

Number of items to skip before starting to collect the result set.

Required range: x >= 0
Example:

0

limit
integer
default:25

Number of items to include in the result set.

Required range: 1 <= x <= 100
Example:

25

orderBy
string
default:createdAt

Field to order by in the result set.

Example:

"createdAt"

orderDir
enum<string>
default:desc

Order direction.

Available options:
asc,
desc
Example:

"desc"

status
enum<string>

Filter by document version status Status of the document. Valid options: DRAFT, REVIEW, APPROVED, ARCHIVED.

Available options:
DRAFT,
REVIEW,
APPROVED,
ARCHIVED
Example:

"APPROVED"

documentId
string<uuid>

Filter by document ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

versionId
string<uuid>

Filter by specific document version ID

Example:

"321e4567-e89b-12d3-a456-426614174001"

Response

Successfully retrieved documents

Paginated response containing document chunks

data
object[]
required
pagination
object
required

Pagination metadata returned in a paginated response.