Snakk AI - Voice Agent Platform API
  1. Calls
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. Calls

Start outbound call from database agent

POST
/api/calls/outbound
Start an outbound call using an existing agent from your database.
NEW: Dynamic Variables 🆕
Personalize agent messages with custom data:
Use {{variableName}} in agent instructions, greeting, recording prompt
Pass variables in dynamicVariables object
Default variables always available: {{now}}, {{date}}, {{time}}, {{customer.number}}
Example with variables:
Agent instructions: "Du ringer {{name}} for å minne om avtale {{appointmentDate}}"
API call includes: { "dynamicVariables": { "name": "Ola", "appointmentDate": "15. januar" } }

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Call started successfully
Body

🟠403403
🟠404404
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://snakk-backend-production.up.railway.app/api/calls/outbound' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "agentId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "toNumber": "+4712345678"
}'
Response Response Example
{
    "success": true,
    "call": {
        "id": "string",
        "room_name": "string",
        "status": "string"
    },
    "room": "string",
    "sipCallId": "string"
}
Modified at 2025-11-30 23:12:05
Previous
Add tool/webhook to agent
Next
Start outbound call with ad-hoc agent config (JSON)
Built with