Create a new document.
cURL
curl --request POST \ --url https://api.example.com/api/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "title": "<string>", "content": {}, "folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "tags": [ "<string>" ] } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "title": "<string>", "tags": [ "<string>" ], "source_type": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "content": {}, "folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request schema for creating a document.
Successful Response
Response schema for a document.