Skip to content

Set an agent's knowledge-base tags

PUT
/api/v2/aura/agents/{id}/kb
curl --request PUT \
--url https://api.sipstack.com/api/v2/aura/agents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/kb \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "tags": [ "Billing", "billing", "onboarding " ] }'

Replaces the agent’s knowledge-base tag-set. Tags are normalized exactly as in Switchboard (trimmed, lower-cased, de-duplicated, empties dropped), so the API and GUI can never disagree on what a tag-set means. Requires aura:write — an aura:read-only key gets 403 (checked before any existence lookup, so it can’t be used to probe for agent ids). The response echoes the stored tag-set.

id
required
string format: uuid
Media type application/json

Replaces the agent’s KB tag-set. Tags are normalized to match the Switchboard GUI: trimmed, lower-cased, de-duplicated, empties dropped.

object
tags
required
Array<string>
Example
[
"Billing",
"billing",
"onboarding "
]

The updated KB tag-set.

Media type application/json
object
success
boolean
data

A voice agent’s knowledge-base tag-set. In-call retrieval only surfaces documents whose tags intersect this set.

object
tags
Array<string>
Example
{
"data": {
"tags": [
"billing",
"onboarding"
]
}
}

tags was missing or not an array of strings.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

Missing or invalid API key.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

The key is missing the aura:write scope.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

Voice agent not found in your organization.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}