History

This Inbox API returns reports for messages sent across the sms, voice & whatsapp channels. Reports can either display all messages on termii or a single message.

Endpoint : https://BASE_URL/api/sms/inbox?api_key=YourAPIKey

Request Type : GET

You can query a single message by adding message_id as query param and passing the message_id as value.Find the Message ID in the JSON response of Send Message Endpoint All reports on your account will be returned as response if the message_id is not present in the request.

Response

   [
      {
            "sender": "N-Alert",
             "receiver": "233257883990",
             "message": "New year in a bit",
             "amount": 1,
             "reroute": 0,
             "status": "DND Active on Phone Number",
             "sms_type": "plain",
             "send_by": "sender",
             "media_url": null,
             "message_id": "5508751839629937023",
             "notify_url": null,
             "notify_id": null,
             "created_at": "2020-08-15 12:36:42"
      },
      {
                "sender": "N-Alert",
                 "receiver": "233222883380",
                 "message": "New year in a bit",
                 "amount": 1,
                 "reroute": 0,
                 "status": "DND Active on Phone Number",
                 "sms_type": "plain",
                 "send_by": "sender",
                 "media_url": null,
                 "message_id": "5508755559629937033",
                 "notify_url": null,
                 "notify_id": null,
                 "created_at": "2020-08-15 12:36:42"
      }

   ]
          
Updated at, Wednesday, November 20, 2024