SparkTG

Make a call (v2) Documentation

Make a call (v2)

v2

Make a call (v2)

Start an outbound or scheduled call

API v2v21 Endpoint

Overview

Same parameters as v1. Send it as a POST. Send the agent's agent-id, agent-sip or agent-number: without one, the call falls back to the admin who generated the token.

Available Endpoints

POST/api/v2/calls

Key Parameters

number(Integer)

Customer number

agent-id / agent-sip / agent-number()

The agent for the call. Without one, the call falls back to the admin who generated the token.

skill-id()

No description available

schedule-time()

A time in epoch milliseconds

campaign-id()

No description available

param1…()

No description available

Quick Example

Try this API with a simple cURL command

Basic API Call
curl -X POST -H 'Authorization: Bearer <YOUR_TOKEN>' \
  'https://telephonycloud.co.in/api/v2/calls?number=9XXXXXXXXX&agent-id=<AGENT_ID>'
💡 Replace <YOUR_TOKEN> with your API token

Response Preview

Sample response from this API

Sample Response
{
  "id": "423cdf8c-5663-458a-bc66-a38f2f8f797b"
}...
View complete response format in Response section