Skip to main content
POST
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
_knowledge_base
Create Knowledge Base
curl --request POST \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_knowledge_base \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "urls": "<string>",
  "files": "<string>"
}
'
{
  "ctx_id": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Request Body

JSON: KnowledgeBaseRequest (see OpenAPI spec)
name
string
required
Knowledge base display name
urls
string
Knowledge base purpose
files
string
Knowledge base purpose

Response

201 Created - Knowledge base created successfully
ctx_id
string
Request context ID
data
object
id
string
Knowledge base ID
name
string
Knowledge base name
400 Bad Request - Invalid input

Example

{
  "name": "Product Documentation",
  "description": "Technical docs and FAQs"
}