POST /v1/documents
Create a new document by sending a JSON request body.
POST /v1/documents creates a new document.
Authentication
Send an organization API key in x-api-key or
Authorization: Bearer <key>.
Request Body
All fields are optional. With an empty body, Blueputto creates an untitled document in no folder. A template supplies its default content, metadata, labels, and author.
| Name | Type | Description |
|---|---|---|
folderId | string (uuid) or null | Folder that will contain the document. Use null for no folder. |
templateId | string (uuid) | Active template to use as the starting point. |
title | string | Initial document title, from 1 to 255 characters. |
Example
curl -X POST "https://api.blueputto.com/v1/documents" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"folderId":"FOLDER_ID","title":"Condition report"}'Success Response
201 Created
{
"data": {}
}Error Responses
400 Bad Request401 Unauthorized404 Not Found429 Too Many Requests