curl --request GET \
--url https://api.tryhamsa.com/v1/voice-agents/web-tool/list \
--header 'Authorization: <api-key>'{
"success": false,
"message": "success",
"data": {
"total": 100,
"filtered": 100,
"items": [
{
"id": "d949f13f-40d2-4e48-ac86-b66633070603",
"persistentId": "cmjx8qzw0000004kz3jek1ktu",
"version": 1,
"name": "Weather API Tool",
"type": "FUNCTION",
"userId": "550e8400-e29b-41d4-a716-446655440000",
"projectId": "d949f13f-40d2-4e48-ac86-b66633070603",
"isActive": true,
"async": true,
"description": "A tool that fetches current weather information for a given location.",
"collectionId": "550e8400-e29b-41d4-a716-446655440000",
"toolSettings": {
"serverUrl": "https://api.example.com/webhook",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "Bearer token"
},
"pathParameters": {
"userId": "12345"
},
"timeout": 5000,
"authToken": "bearer_token_12345",
"methodType": "POST"
},
"params": {
"location": {
"type": "string",
"description": "The location to get weather for"
}
},
"messages": [
{
"type": "system",
"content": "You are a helpful weather assistant."
}
]
}
]
}
}curl --request GET \
--url https://api.tryhamsa.com/v1/voice-agents/web-tool/list \
--header 'Authorization: <api-key>'{
"success": false,
"message": "success",
"data": {
"total": 100,
"filtered": 100,
"items": [
{
"id": "d949f13f-40d2-4e48-ac86-b66633070603",
"persistentId": "cmjx8qzw0000004kz3jek1ktu",
"version": 1,
"name": "Weather API Tool",
"type": "FUNCTION",
"userId": "550e8400-e29b-41d4-a716-446655440000",
"projectId": "d949f13f-40d2-4e48-ac86-b66633070603",
"isActive": true,
"async": true,
"description": "A tool that fetches current weather information for a given location.",
"collectionId": "550e8400-e29b-41d4-a716-446655440000",
"toolSettings": {
"serverUrl": "https://api.example.com/webhook",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "Bearer token"
},
"pathParameters": {
"userId": "12345"
},
"timeout": 5000,
"authToken": "bearer_token_12345",
"methodType": "POST"
},
"params": {
"location": {
"type": "string",
"description": "The location to get weather for"
}
},
"messages": [
{
"type": "system",
"content": "You are a helpful weather assistant."
}
]
}
]
}
}Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token
Optional UUID of the voice agent to filter associated web tools.
"d949f13f-40d2-4e48-ac86-b66633070603"
Optional boolean indicating whether to fetch active web tools or not.
true
Page number for pagination. Defaults to '1'.
"1"
Number of items to take for pagination. Defaults to '10'.
"10"
The type of the web tool to filter.
MCP, FUNCTION, WEB_TOOL "MCP"
A search query to filter web tools.
"Get callee info"
Was this page helpful?