APIDocuments
Create a document
POST /documents
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:write
titlestring
Length
1 <= length <= 200contentMarkdownstring
Complete document body as Markdown. Must contain non-whitespace text.
Match
\SLength
1 <= lengthprojectId?string
Project to create the document in.
organizationId?string
Organization workspace to create the document in.
Response Body
curl -X POST "https://app.chatprd.ai/api/connectors/v1/documents" \ -H "Content-Type: application/json" \ -d '{ "title": "Mobile onboarding PRD", "contentMarkdown": "# Mobile onboarding PRD\n\n## Problem\n\nNew users drop off before..." }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"threadId": "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."
}
}