Initiate Agent Call

Initiate a PSTN call between your team member and a customer through DoubleTick.

Initiates an outgoing PSTN call handled by a human agent on your team — not the AI bot. It dials your agent's phone first, then the customer's phone, and connects the two legs once the agent picks up.

Endpoint

POST https://public.doubletick.io/v1/calls/agent

Authentication

Include your API key in the Authorization header.

HeaderValue
Authorization<your-api-key>
Content-Typeapplication/json

📘

NOTE

If you do not have your DoubleTick API Key, you can obtain it by following this guide link.


Request Body

ParameterTypeRequiredDescription
fromstringYesThe PSTN phone number used to initiate the call. (e.g. 911234567890)
tostringYesCustomer phone number in E.164 format (e.g. 919876543210).
channelstringYesCalling channel. Supported values are PSTN.
agentNumberstringYesPhone number of the team member who should take the call

Example Request

curl --request POST \
  --url https://public.doubletick.io/v1/call/agent-call \
  --header 'Authorization: <your-api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "channel": "PSTN",
    "from": "+911234567890",
    "to": "+919876543210",
    "agentNumber": "+919812345678"
  }'

Example Response

{
  "success": true,
  "data": {
    "callId": "call_xyz789",
    "pstnPhoneNumber": "+911234567890"
  },
  "customer": {
    "name": "John Doe",
    "phoneNumber": "+919876543210"
  }
}

Response Fields

data

FieldTypeDescription
callIdstringUnique identifier for the initiated agent call.
pstnPhoneNumberstringPhone number used for the PSTN connection, when applicable.

customer

FieldTypeDescription
namestringCustomer name.
phoneNumberstringCustomer phone number.

Error Responses

Status CodeDescription
400Invalid/missing body field, channel other than PSTN, or agentNumber doesn't match exactly one active member of your org.
401Invalid or missing API key.
403PSTN calling not enabled for your org, or the resolved agent doesn't have calling permission on this PSTN integration.
422PSTN number (from) not found for your org, or customer is blocked.
429Rate limit exceeded. Check the Retry-After response header before retrying.

Things to Know

  • The agentNumber field is required — there is no default/fallback agent.
  • channel must be exactly PSTN (case-sensitive). PSTN only value accepted.
  • agentNumber must match exactly one active member of your org by phone number.
  • The agent must also have calling permission on the PSTN integration tied to from.
  • This endpoint is for human-agent calls only. AI-handled calls use a different endpoint (link).

Did this page help you?