APIDocuments
Read a document
GET /documents/{id}
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.
In: header
Scope: connector:read
Path Parameters
idstring
Document ID (UUID), as returned by GET /documents.
Format
uuidQuery Parameters
organizationId?string
Clerk organization ID (org_…). Scopes the request to that team workspace instead of the personal workspace.
Response Body
curl -X GET "https://app.chatprd.ai/api/connectors/v1/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08?organizationId=string"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"contentMarkdown": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"threadId": "string",
"project": {
"id": "string",
"name": "string"
},
"url": "http://example.com"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}