Skip to main content
POST
/
organisations
/
{orgId}
/
workspaces
/
{workspaceId}
/
knowledge
Create a new piece of knowledge
curl --request POST \
  --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/knowledge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Best practices for AI in healthcare",
  "description": "A collection of best practices for AI in healthcare",
  "content": "A collection of best practices for AI in healthcare",
  "id": "7b9e5d2c-f314-48a9-be56-9843a2f6c019"
}
'
{
  "data": {
    "id": "7b9e5d2c-f314-48a9-be56-9843a2f6c019",
    "state": "initial",
    "title": "Best practices for AI in healthcare",
    "description": "A collection of best practices for AI in healthcare",
    "createdAt": "2023-01-01T00:00:00.000Z",
    "updatedAt": "2023-01-01T00:00:00.000Z",
    "source": "text",
    "providedBy": "NotionPage",
    "pdfFileUrl": "https://example.com/document.pdf",
    "txtFileUrl": "/knowledge/7b9e5d2c-f314-48a9-be56-9843a2f6c019",
    "url": "https://example.com/document.pdf",
    "content": "A collection of best practices for AI in healthcare"
  }
}

Authorizations

Authorization
string
header
required

JWT authentication for organization-scoped endpoints.

Path Parameters

orgId
string
required

Organization ID

workspaceId
string
required

Workspace ID

Body

application/json

Request schema for creating knowledge

title
string
required

Knowledge title

Example:

"Best practices for AI in healthcare"

description
string
required

Knowledge description - a short summary of the knowledge

Example:

"A collection of best practices for AI in healthcare"

content
string
required

Knowledge content - the full content of the knowledge

Example:

"A collection of best practices for AI in healthcare"

id
string<uuid>

An optional Knowledge ID must be a uuid

Example:

"7b9e5d2c-f314-48a9-be56-9843a2f6c019"

Response

Success

Response containing a single knowledge

data
object
required

Response containing a single knowledge