Skip to main content
DELETE
/
v1
/
voice-agents
/
knowledge-base
/
{id}
/
url
Delete URL from Knowledge Base URL Item.
curl --request DELETE \
  --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 deleted successfully from knowledge base item",
  "messageKey": "URL_DELETED_SUCCESSFULLY"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tryhamsa.com/llms.txt

Use this file to discover all available pages before exploring further.

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 deleted from the knowledge base item.

Example:

"https://example.com/page"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"URL deleted successfully from knowledge base item"

messageKey
string
Example:

"URL_DELETED_SUCCESSFULLY"