Snakk AI - Voice Agent Platform API
  1. Tools
Snakk AI - Voice Agent Platform API
  • System
    • Simple health check
      GET
    • Detailed health check with dependency status
      GET
  • Tenants
    • Create new tenant (signup)
      POST
  • Agents
    • List all agents for tenant
      GET
    • Create new agent
      POST
    • Get agent details
      GET
    • Delete agent
      DELETE
  • Tools
    • List tools/webhooks for agent
      GET
    • Add tool/webhook to agent
      POST
  • Calls
    • Start outbound call from database agent
      POST
    • Start outbound call with ad-hoc agent config (JSON)
      POST
  • Phone Numbers
    • List your phone numbers
      GET
    • Available numbers to claim
      GET
    • Claim a number from pool
      POST
    • Assign number to agent
      POST
    • Unassign number from agent
      POST
    • Release number (return to pool)
      POST
  • Statistics
    • Dashboard overview
      GET
    • Daily usage statistics
      GET
    • Monthly usage statistics
      GET
  • Subscription
    • Current subscription
      GET
    • Available plans
      GET
    • Request plan upgrade
      POST
  • Web Access
    • Generate web widget token
  • AI Tools
    • AI Prompt Generator
  • Account
    • Your account info
    • Regenerate API key
  • Platform Admin
    • Platform-wide overview (admin only)
  • Schemas
    • Tenant
    • Agent
    • Call
  1. Tools

Add tool/webhook to agent

POST
/api/agents/{agentId}/tools
Add a custom tool that calls a webhook (e.g., Make.com) during conversation. Agent can invoke this based on user request.

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢201Success
application/json
Tool added successfully
Body

Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://snakk-backend-production.up.railway.app/api/agents//tools' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "lookupCustomer",
    "display_name": "Customer Lookup",
    "description": "Hent kundeinformasjon fra CRM",
    "type": "webhook",
    "webhook_url": "https://hook.eu2.make.com/abc123",
    "webhook_method": "POST",
    "parameters": {
        "customerId": {
            "type": "string",
            "description": "Kunde ID eller telefonnummer"
        }
    },
    "enabled": true
}'
Response Response Example
{
    "tool": {
        "id": "tool-uuid",
        "agent_id": "agent-uuid",
        "name": "checkWeather",
        "webhook_url": "https://hook.eu2.make.com/xxx",
        "enabled": true
    }
}
Modified at 2025-11-30 23:12:05
Previous
List tools/webhooks for agent
Next
Start outbound call from database agent
Built with