Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
knowledge-base
Add Knowledge Base Entry
curl --request POST \
  --url https://api.migma.ai/v1/projects/{projectId}/knowledge-base \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "content": "<string>"
}
'
{
  "status": "success",
  "data": {
    "id": "<string>",
    "title": "<string>",
    "content": "<string>",
    "date": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.

Path Parameters

projectId
string
required

Project ID (MongoDB ObjectId)

Pattern: ^[0-9a-fA-F]{24}$

Body

application/json
title
string
required

Title of the knowledge base entry

Required string length: 1 - 500
content
string
required

Content of the knowledge base entry

Required string length: 1 - 50000

Response

Knowledge base entry added

status
enum<string>
Available options:
success
data
object
message
string