Skip to main content
POST
/
api
/
content
/
collections
Create collection
curl --request POST \
  --url https://api.tedro.io/api/content/collections \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token= \
  --data '
{
  "name": "FAQ",
  "description": "Top 20 customer questions"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tedro.io/llms.txt

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

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Body

application/json

Create a content collection (grouping of articles/files).

name
string
required
Required string length: 1 - 100
description
string
Maximum string length: 500

Response

Collection created

id
string<uuid>
required
name
string
required
description
string | null
required
workspaceId
string<uuid>
required
createdAt
string
required
updatedAt
string
required
{key}
any