Telegram Inbox REST API

Telegram Inbox REST API for SMSGatewayCenter APIs

Telegram Inbox REST API

Use the Inbox REST API to fetch incoming Telegram messages for your account over HTTP. Filter by chat ID, Telegram user ID, phone number, read status, and date range. This endpoint is read-only, accepts GET requests, and returns JSON.

Ideal for mobile apps, CRM integrations, and custom dashboards that need to display or process incoming Telegram conversations.

 

API Endpoint

https://unify.smsgateway.center/rest/tg/v1/inbox

Legacy alias without v1 in the path is also supported: /rest/tg/inbox

 

Authentication

Send your account userid and password as request parameters. Telegram Chat API access must be enabled on your account.

 

ParameterRequiredDescriptionExample/Value
Authentication (Required)
useridYesYour SMSGatewayCenter account username.YourUsername
passwordYesYour account password.**********
outputYesResponse format. Must be json.json
Optional Parameters
actionOptionalDefaults to list. Only list is supported in v1.list
fromDateOptionalStart of received date range. Format YYYY-MM-DD or full date/time. Alias: from.2026-07-01 00:00:00
toDateOptionalEnd of received date range. Format YYYY-MM-DD or full date/time. Alias: to.2026-07-07 23:59:59
chatIdOptionalFilter by Telegram chat ID (numeric).123456789
telegramUserIdOptionalFilter by the Telegram user ID of the sender.987654321
phoneNumberOptionalFilter by customer phone number with country code, digits only. Matches contacts who shared their phone with your bot.919999999999
isReadOptionalFilter read status: 0 unread, 1 read.0
pageOptionalPage number. Default 1.1
limitOptionalRecords per page. Default 50, maximum 200.50

 

Sample Request Code (cURL)
curl --location 'https://unify.smsgateway.center/rest/tg/v1/inbox?userid=YourUsername&password=xxxxx&output=json&action=list&fromDate=2026-06-30&toDate=2026-07-07&page=1&limit=50'

 

Sample Success Response
{
    "status": "success",
    "inboxList": [
        {
            "incomingId": "101",
            "chatId": "123456789",
            "telegramUserId": "987654321",
            "firstName": "Rahul",
            "username": "rahul_demo",
            "phoneNumber": "919999999999",
            "message": "Hello",
            "msgType": "text",
            "mediaUrl": "",
            "receivedAt": 1712345678901,
            "receivedAtFormatted": "2026-07-07 10:14:38",
            "isRead": 0
        }
    ],
    "totalRecords": 1,
    "page": 1,
    "limit": 50,
    "fromDate": "2026-07-01 00:00:00",
    "toDate": "2026-07-07 23:59:59",
    "statusCode": "200",
    "reason": "success"
}

 

Sample Error Response
{
    "status": "error",
    "inboxList": [],
    "statusCode": "403",
    "reason": "Telegram API access is not enabled for this account."
}

 

Notes

  • Results are ordered by receivedAt descending (newest first).
  • phoneNumber in the response comes from customer mapping when the contact shared their phone with your bot.
  • This API is read-only. To reply, use the Send Telegram Message API.

Testimonials

Why do Great Businesses Trust SMS Gateway Center?

K

Kurlon IT

2022-08-04

We have tied up with other SMS providers also, but SMS GatewayCenter is quite good. Good Service from the team. We are very happy with the service be it accounts related or technical issue. We always get good response.

I

INOX Air Products

2018-02-09

We have an excellent experience with SMS Gateway Center. The services and support has been of very high standard.

S

Shalabh Arora

2025-04-11

I’ve been using SMSGatewayCenter’s bulk SMS and WhatsApp services since early 2022 for my small business, and the experience has been fantastic. The platform is intuitive, and the message delivery is incredibly reliable, reaching my customers without fail. The 24/7 support team is quick to assist, and the cost-effectiveness is a big plus. It’s transformed how I connect with my audience, and I highly recommend it to other entrepreneurs! (Google Revirews)

R

Reflex

2025-04-11

We’ve been using your bulk SMS services for a few months, and the results have been phenomenal. The open rates and customer engagement have gone through the roof. Highly recommend for any business looking to scale fast! (Google Revirews)

V

Vedanth Gowda

2025-04-18

I’m Vedanth Gowda, leading a finance business, and I’ve been leveraging SMSGatewayCenter’s bulk SMS and WhatsApp tools —absolutely transformative! The platform’s speed and precision in delivering financial alerts to my clients are unmatched, giving me a competitive edge. Samrat’s expertise in tailoring notification workflows for market updates was a standout, and the robust security features instilled trust. The affordable pricing and proactive support team make it a no-brainer. Perfect for finance pros aiming to elevate client trust and efficiency! (Google Revirews)

N

Naval Bhatnagar

2025-04-12

From day one, the team at SMS GATEWAY CENTER guided us through setup, testing, and launching campaigns. Their support is A+. Whether you’re new to SMS marketing or experienced, they make it smooth. Thank you Aakash. (Google Revirews)


CTA for Unlock Real-Time Messaging – Integrate Today!

Unlock Real-Time Messaging – Integrate Today!

Try Our API in a Sandbox Environment Before Going Live!

Join Thousands of Developers – Try Our API Now!

Get in touchSign up