SparkTG

Register For Events Documentation

Register For Events

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

Register For Events

Subscribe to real-time events

Real-time Integrationv1.01 Endpoint

Overview

Register for Events API : POST : /subscriber

Available Endpoints

POST/subscriber

Key Parameters

svc-id(Integer)

1

auth-key(String)

abc-0097vf-w32 ns

force(Boolean)

TRUE

channel-type(String)

mobile

url(String)

https://192.168.1.1:9000/data

is-registered(Boolean)

true

Quick Example

Try this API with a simple cURL command

Basic API Call
curl -i -X POST -u "username:password" "https://telephonycloud.co.in/api/v1/subscriber" -d "svc-id=1&auth-key=abc-1234-xyz&force=true&channel-type=mobile&url=https://localhost:9001/log&is-registered=true&device-id=abc"
💡 Replace username:password with your actual credentials

Response Preview

Sample response from this API

Sample Response
true
View complete response format in Response section