cURL
curl --request POST \ --url http://localhost:8080/api/workspaces/{id}/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "title": "<string>", "content": "", "visibility": "agent-visible", "injection": "none" } '
{ "id": "<string>", "workspace_id": "<string>", "title": "<string>", "content": "<string>", "visibility": "human-only", "injection": "none", "created_at": "<string>", "updated_at": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
human-only
agent-visible
none
reference
inline
must-read
Successful Response