Tools
Create Tool
Creates a new tool
POST
/
api
/
tools
cURL
curl --request POST \
--url https://api.ultravox.ai/api/tools \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"definition": {
"modelToolName": "<string>",
"description": "<string>",
"dynamicParameters": [
{
"name": "<string>",
"schema": {},
"required": true
}
],
"staticParameters": [
{
"name": "<string>",
"value": "<unknown>"
}
],
"automaticParameters": [
{
"name": "<string>"
}
],
"requirements": {
"httpSecurityOptions": {
"options": [
{
"requirements": {},
"ultravoxCallTokenRequirement": {
"scopes": [
"<string>"
]
}
}
]
},
"requiredParameterOverrides": [
"<string>"
]
},
"timeout": "<string>",
"precomputable": true,
"http": {
"baseUrlPattern": "<string>",
"httpMethod": "<string>"
},
"client": {},
"dataConnection": {},
"staticResponse": {
"responseText": "<string>"
}
}
}
'{
"toolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created": "2023-11-07T05:31:56Z",
"definition": {
"modelToolName": "<string>",
"description": "<string>",
"dynamicParameters": [
{
"name": "<string>",
"schema": {},
"required": true
}
],
"staticParameters": [
{
"name": "<string>",
"value": "<unknown>"
}
],
"automaticParameters": [
{
"name": "<string>"
}
],
"requirements": {
"httpSecurityOptions": {
"options": [
{
"requirements": {},
"ultravoxCallTokenRequirement": {
"scopes": [
"<string>"
]
}
}
]
},
"requiredParameterOverrides": [
"<string>"
]
},
"timeout": "<string>",
"precomputable": true,
"http": {
"baseUrlPattern": "<string>",
"httpMethod": "<string>"
},
"client": {},
"dataConnection": {},
"staticResponse": {
"responseText": "<string>"
}
}
}Authorizations
API key
Body
application/jsonmultipart/form-data
Response
201 - application/json
Maximum string length:
40The base definition of a tool that can be used during a call. Exactly one implementation (http or client) should be set.
Show child attributes
Show child attributes
Available options:
public, private ⌘I
cURL
curl --request POST \
--url https://api.ultravox.ai/api/tools \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"definition": {
"modelToolName": "<string>",
"description": "<string>",
"dynamicParameters": [
{
"name": "<string>",
"schema": {},
"required": true
}
],
"staticParameters": [
{
"name": "<string>",
"value": "<unknown>"
}
],
"automaticParameters": [
{
"name": "<string>"
}
],
"requirements": {
"httpSecurityOptions": {
"options": [
{
"requirements": {},
"ultravoxCallTokenRequirement": {
"scopes": [
"<string>"
]
}
}
]
},
"requiredParameterOverrides": [
"<string>"
]
},
"timeout": "<string>",
"precomputable": true,
"http": {
"baseUrlPattern": "<string>",
"httpMethod": "<string>"
},
"client": {},
"dataConnection": {},
"staticResponse": {
"responseText": "<string>"
}
}
}
'{
"toolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created": "2023-11-07T05:31:56Z",
"definition": {
"modelToolName": "<string>",
"description": "<string>",
"dynamicParameters": [
{
"name": "<string>",
"schema": {},
"required": true
}
],
"staticParameters": [
{
"name": "<string>",
"value": "<unknown>"
}
],
"automaticParameters": [
{
"name": "<string>"
}
],
"requirements": {
"httpSecurityOptions": {
"options": [
{
"requirements": {},
"ultravoxCallTokenRequirement": {
"scopes": [
"<string>"
]
}
}
]
},
"requiredParameterOverrides": [
"<string>"
]
},
"timeout": "<string>",
"precomputable": true,
"http": {
"baseUrlPattern": "<string>",
"httpMethod": "<string>"
},
"client": {},
"dataConnection": {},
"staticResponse": {
"responseText": "<string>"
}
}
}