Reference a voice tool
References a voice tool for the current tenant
POST
/Agent/voice-toolsReferences a voice tool for the current tenant
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 |