APIDocuments
List or search documents
GET /documents
GET
apiKey connector:readheader
AuthorizationBearer <token>ChatPRD API key from Settings → API Keys, sent as Authorization: Bearer <key>. Read-only keys carry the connector:read scope; read/write keys also carry connector:write. Requires a Pro, Team or Enterprise plan.
Scope: connector:read
q?stringFull-text search over document titles and content (1–200 characters).
Length
1 <= length <= 200organizationId?stringClerk organization ID (org_…). Scopes the request to that team workspace instead of the personal workspace.
projectId?stringProject ID, as returned by GET /projects.
limit?integerMaximum number of items to return (1–100). Defaults to 20.
Range
1 <= value <= 100Default
20Matching documents, newest first.
application/json- response
documents*array<>count*integerExample Request
curl -X GET 'https://app.chatprd.ai/api/connectors/v1/documents'Example Response
{ "documents": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "title": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "threadId": "string", "url": "http://example.com" } ], "count": 0}