Skip to main content
POST
/
v1
/
voice-agents
/
knowledge-base
/
{id}
/
url
Add URL to Knowledge Base URL Item.
curl --request POST \
  --url https://api.tryhamsa.com/v1/voice-agents/knowledge-base/{id}/url \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://example.com/page"
}
'
{
  "success": true,
  "message": "URL added successfully to knowledge base item",
  "messageKey": "URL_ADDED_SUCCESSFULLY"
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Path Parameters

id
string<uuid>
required

UUID of the knowledge base item.

Example:

"d949f13f-40d2-4e48-ac86-b66633070603"

Body

application/json
url
string<uri>
required

The URL to be added to the knowledge base item.

Example:

"https://example.com/page"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"URL added successfully to knowledge base item"

messageKey
string
Example:

"URL_ADDED_SUCCESSFULLY"