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.
/Agent/voice-toolsRegisters 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
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
agentId | integer · int32 | No | — | — |
toolId | string | No | — | 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
| Status | Description | Response body |
|---|---|---|
200 | Successfully referenced voice tool | application/json · AgentVoiceToolDto |
Example response (200):
{
"id": "string",
"name": "string",
"description": "string",
"isTenantReference": true
}
Data models
AgentVoiceToolDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | No | — | nullable |
name | string | No | — | nullable |
description | string | No | — | nullable |
isTenantReference | boolean | No | — | — |
AgentVoiceToolReferenceDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
agentId | integer · int32 | No | — | — |
toolId | string | No | — | nullable |