Skip to main content
POST
/
api
/
knowledge
/
documents
Upload Knowledge Document
curl --request POST \
  --url https://evalgate.com/api/knowledge/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "content": "<string>",
  "sourceUrl": "<string>",
  "metadata": {}
}
'
{
  "error": {
    "message": "<string>",
    "details": "<unknown>",
    "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
title
string
required
content
string
required
sourceUrl
string<uri>
metadata
object

Response

Document uploaded