GET
/
v0
/
documents
/
chunked
curl --request GET \
  --url https://api.avidoai.com/v0/documents/chunked \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "documentId": "123e4567-e89b-12d3-a456-426614174000",
      "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

Query Parameters

documentId
string
required

Filter by document ID

Example:

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

skip
integer
default:0

Number of items to skip

Required range: x >= 0
Example:

0

limit
integer
default:25

Number of items per page

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

25

orderBy
string

Field to order by

Example:

"createdAt"

orderDir
enum<string>
default:desc

Order direction

Available options:
asc,
desc
Example:

"desc"

status
enum<string>

Filter by document status

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

"APPROVED"

Response

200
application/json

Successfully retrieved documents

Paginated response containing document chunks