Skip to Content
Folders

Create a folder

POST
/folders

Creates a folder. Omit id to have one generated; pass documentIds to move documents into it in the same step.

Authorization

headerAuthorizationBearer <token>

Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.

Scope: documents:write

Request Body

application/json
  1. body
id?string
Match^[a-zA-Z0-9-]{1,100}$
name*string
Length1 <= length
documentIds?array<>
Itemsitems <= 200

Response Body

Created folder.

application/json
  1. response
id*string
Match^[a-zA-Z0-9-]{1,100}$
name*string
position*integer
createdAt*number
updatedAt*number
Example Request
curl -X POST 'https://reader.example/api/v1/folders' \  -H 'Content-Type: application/json' \  -d '{  "name": "Research",  "documentIds": [    "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"  ]}'
Example Response
{  "id": "string",  "name": "string",  "position": 0,  "createdAt": 0,  "updatedAt": 0}