Skip to main content
GET
/
kbs
/
{kbId}
/
docs
List documents in a KB
curl --request GET \
  --url https://app.autoposting.ai/api-proxy/kbs/{kbId}/docs \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "documents": [
      {
        "id": "doc_01HXYZ",
        "name": "Pricing Guide 2024.pdf",
        "status": "indexed",
        "chunkCount": 24,
        "createdAt": "2024-01-01T00:00:00Z"
      }
    ],
    "total": 1
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

kbId
string
required

Knowledge base ID.

Query Parameters

limit
integer
default:50

Items per page.

offset
integer
default:0

Items to skip.

Response

Success.

success
boolean
required
data
object
required