SparkTG

User Documentation

User

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

User

Retrieve a User in Telephony Cloud

Userv1.01 Endpoint

Overview

The /user API creates or retrieves a user by email or phone number, returning true on success.

Available Endpoints

POST/user

Key Parameters

number(String)

User’s phone number

email(String)

User’s email address

Quick Example

Try this API with a simple cURL command

Basic API Call
curl -i -u "username:password" "https://telephonycloud.co.in/api/v1/user" -d"email=gaurav@sparktg.com
💡 Replace username:password with your actual credentials

Response Preview

Sample response from this API

Sample Response
true
View complete response format in Response section