Getting StartedQuick Start

Quick Start

Make your first outbound call in 3 steps.

This guide assumes you have a Twenty2 account and at least one published assistant.


Step 1 — Get Your API Key

Generate your API key from the Twenty2 dashboard.

  1. Go to Profile → Integrations → Build with Twenty2 API

  2. Click API Keys → Create New

  3. Copy and save your key securely

Store your API Key in an environment variable like TWENTY2_API_KEY — never hardcode it in your source code.


Step 2 — Publish an Assistant

Build and publish an assistant inside the Twenty2 dashboard before making API calls.

  1. Go to the Assistants section in your dashboard

  2. Build your assistant — set its voice, language, and call script

  3. Click Publish

  4. Copy the assistant_id from the assistant detail page — you'll need it in the next step


Step 3 — Trigger Your First Call

Use the POST /calls endpoint to trigger an outbound call.

curl -X POST "https://api.twentytwo.in/api/agent/trigger-outbound-call" \
  -H "Content-Type: application/json" \
  -H "x-workspace-id: 69b671241b2dacf0c0f15885" \
  -H "Authorization: Basic YOUR_CREDENTIALS" \
  -d '{
  "agent_id": "69de483c68b23495c853b43a",
  "callee_phone": "9999999999",
  "caller_phone": "9999999999",
  "input_parameters": {
    "agentName": "Rohit"
  }
}'


What You'll Get Back

If the call is queued successfully, you'll receive this response:

{
  "success": true,
  "call_id": "call_9c4d7e12ab",
  "status": "initiated",
  "message": "Call queued successfully."
}

Calls are non-blocking. The API returns immediately once the call is queued. Use the call_id to track the outcome via GET /history/calls/{call_id} or listen for the call.completed webhook event.


Next Steps