SparkTG

Click to call (v2) Documentation

Click to call (v2)

v2

Click to call (v2)

OTP-verified callback requests

API v2v21 Endpoint

Overview

Same parameters as v1: the customer's number and the one-time password sent to it.

Available Endpoints

POST/api/v2/click2call

Key Parameters

number(Integer)

Number on which the call is to be made

otp(Integer)

OTP which was sent to the number

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/click2call?number=9XXXXXXXXX&otp=<OTP>'
💡 Replace <YOUR_TOKEN> with your API token

Response Preview

Sample response from this API

Sample Response
{"isError":false,"callTxnId":"0e5aff8c-8707-4377-8baa-31cceab9fca7"}
View complete response format in Response section