SparkTG

Change Number Documentation

Change Number

v1.0Moving to v2

This API is moving to v2

All SparkTG APIs are moving to API v2, with signed API tokens instead of a username and password. This one will follow soon; until then, use it on v1 as documented here.

Moving to API v2

Change Number

Update agent phone numbers

Agent Managementv1.01 Endpoint

Overview

PATCH /agents - Update agent phone numbers

Available Endpoints

PATCH/agents

Key Parameters

number(Integer)

Desired updated number for agent

agent-number(Integer)

Number of the agent of which status to be updated, useful in case of admin credentials, can change status of agent via agent's number

Quick Example

Try this API with a simple cURL command

Basic API Call
curl -i -X PATCH -u "username:password" "https://telephonycloud.co.in/api/v1/agents?number=9999999999&agent-number=9999999999"
💡 Replace username:password with your actual credentials

Response Preview

Sample response from this API

Sample Response
{"number":"9999999999"}
View complete response format in Response section