APIDocuments

Create a document

POST /documents

POST
/documents

Authorization

apiKey connector:write
headerAuthorizationBearer <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

Request Body

application/json
  1. body
title*string
Length1 <= length <= 200
contentMarkdown*string

Complete document body as Markdown. Must contain non-whitespace text.

Match\S
Length1 <= length
projectId?string

Project to create the document in.

organizationId?string

Organization workspace to create the document in.

Response Body

The created document.

application/json
  1. response
id*string
Formatuuid
title*string
threadId*string|null
url*string
Formaturi
Example 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"}