APIDocuments
Create a document
POST /documents
POST
apiKey connector:writeheader
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:write
application/json- body
title*stringLength
1 <= length <= 200contentMarkdown*stringComplete document body as Markdown. Must contain non-whitespace text.
Match
\SLength
1 <= lengthprojectId?stringProject to create the document in.
organizationId?stringOrganization workspace to create the document in.
The created document.
application/json- response
id*stringFormat
uuidtitle*stringthreadId*string|nullurl*stringFormat
uriExample Request
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..."}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "title": "string", "threadId": "string", "url": "http://example.com"}