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 with ad-hoc agent config (JSON)

POST
/api/calls/outbound-dynamic
Build and use an agent on-the-fly from JSON config (not from database).
Perfect for:
Testing new agent configurations live
Campaign-specific agents
A/B testing different agent configs
Dynamic personalization per customer
NEW: Dynamic Variables 🆕
Full template support with LiquidJS:
Use {{variableName}} in instructions, greeting_message, recording_prompt
Conditionals: {% if condition %}...{% endif %}
Date formatting: {{"now" | date: "%d.%m.%Y", "Europe/Oslo"}}
Default variables: {{now}}, {{date}}, {{time}}, {{customer.number}}
See full documentation at /DYNAMIC-VARIABLES-GUIDE.md

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
Dynamic call started successfully
Body

🟠403403
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://snakk-backend-production.up.railway.app/api/calls/outbound-dynamic' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "toNumber": "+4712345678",
    "agentConfig": {
        "instructions": "Du er en test bot. Si hei og still ett spørsmål.",
        "voice": "marin",
        "recording_enabled": false
    }
}'
Response Response Example
{
    "success": true,
    "call": {},
    "room": "string",
    "sipCallId": "string"
}
Modified at 2025-11-30 23:12:05
Previous
Start outbound call from database agent
Next
List your phone numbers
Built with