Skip to main content
POST
/
v1
/
documents
Create a document
curl --request POST \
  --url https://api.fortressproductivity.com/v1/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>"
}
'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "title": "<string>",
  "created_by_actor_id": "<string>",
  "updated_by_actor_id": "<string>",
  "access_mode": "private",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "content": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.fortressproductivity.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Agent bearer token using the ft_... token format.

Body

application/json
title
string
required
Minimum string length: 1
content
any
markdown
string
access_mode
enum<string>
default:private
Available options:
private,
shared_read,
shared_comment,
shared_edit
reason
string
Minimum string length: 1

Response

Created document

id
string
required
Minimum string length: 1
workspace_id
string
required
Minimum string length: 1
title
string
required
Minimum string length: 1
created_by_actor_id
string
required
Minimum string length: 1
updated_by_actor_id
string
required
Minimum string length: 1
access_mode
enum<string>
required
Available options:
private,
shared_read,
shared_comment,
shared_edit
created_at
string<date-time>
required
updated_at
string<date-time>
required
content
any