SparkTG

List agents (v2) Documentation

List agents (v2)

v2

List agents (v2)

Every agent of the token's service

API v2v21 Endpoint

Overview

Returns all agents of the service the token belongs to.

Available Endpoints

GET/api/v2/agents

Quick Example

Try this API with a simple cURL command

Basic API Call
curl -H 'Authorization: Bearer <YOUR_TOKEN>' 'https://telephonycloud.co.in/api/v2/agents'
💡 Replace <YOUR_TOKEN> with your API token

Response Preview

Sample response from this API

Sample Response
[{"id":6,"number":"2","number1":null,"name":"Agent3","status":0,"sip":"10203","time":1551783584000,"active":true,"country_code":"91","svc_id":2,"user_id":6,"call_txn_id":"ed6bae01-cdcc-4535-8bf4-38c9b...
View complete response format in Response section