Reference a voice tool

Registers a tenant reference to an existing custom ElevenLabs tool. ToolId must match tool_ followed by letters or digits, and the tool must exist in the configured ElevenLabs account. System tools cannot be referenced. This operation does not create or execute the external tool and does not duplicate an existing reference.

POST /Agent/voice-tools

Registers a tenant reference to an existing custom ElevenLabs tool. ToolId must match tool_ followed by letters or digits, and the tool must exist in the configured ElevenLabs account. System tools cannot be referenced. This operation does not create or execute the external tool and does not duplicate an existing reference.

Authentication

Authentication required. Send your user API key in the X-API-Key header.

Parameters

This operation has no path, query, or header parameters.

Request body

Content type: application/json · Schema: AgentVoiceToolReferenceDto

PropertyTypeRequiredDescriptionConstraints
agentIdinteger · int32No——
toolIdstringNo—nullable

Example request

curl --request POST \
  --url 'https://api.zild.ai/Agent/voice-tools' \
  --header 'X-API-Key: YOUR_USER_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "agentId": 0,
  "toolId": "string"
}'

Responses

StatusDescriptionResponse body
200Successfully referenced voice toolapplication/json · AgentVoiceToolDto

Example response (200):

{
  "id": "string",
  "name": "string",
  "description": "string",
  "isTenantReference": true
}

Data models

AgentVoiceToolDto
PropertyTypeRequiredDescriptionConstraints
idstringNo—nullable
namestringNo—nullable
descriptionstringNo—nullable
isTenantReferencebooleanNo——
AgentVoiceToolReferenceDto
PropertyTypeRequiredDescriptionConstraints
agentIdinteger · int32No——
toolIdstringNo—nullable