📦
Mobivate Bulk API Documentation
  • 👋Welcome to BulkSMS
  • AUTHENTICATION & INTEGRATION
    • Getting started with Integration
      • Creating a New API Key
      • Get API Key
      • Test API Key
    • Registering Webhooks
      • Delivery Receipt Notification
      • Incoming Message Notification
      • Short URL Click Notification
    • Understanding Response Codes
  • USE CASES
    • Send Single SMS Message
      • Understanding SMS Response Codes
    • Send Batch SMS Messages
      • Understanding Batch SMS Response Codes
    • Search Message logs
    • Search for Single Message log
    • List OptOuts
    • Add an OptOut
    • Delete an OptOut
    • Frequently Asked Questions
  • 📚Integrations
    • Integrating Mobivate framework into your own application
    • Automate SMS messages using events through Zapier
    • Asynchronous Number Verification
    • Synchronous Number Verification
    • Adding / Removing Contacts
    • Creating New Contact Group
  • 🔓ARCHIVED DOCS
    • Sending simple Notification messages
    • Sending SMS from 3rd Party Providers
    • Sending Campaigns
Powered by GitBook
On this page

Was this helpful?

  1. USE CASES

Search for Single Message log

This document will go over how to search your message logs for a specific message.

GET /message/:id

Search for a Single message log using an id.

curl -X GET \
"https://api.mobivatebulksms.com/message/9A0C23DD0A000A9D2FBD4671D780AFDA" \
-H 'Authorization: Bearer [API Key]'
import requests

headers = {
    'Authorization': 'Bearer [API Key]',
}

response = requests.get('https://api.mobivatebulksms.com/message/9A0C23DD0A000A9D2FBD4671D780AFDA', headers=headers)

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer [API Key]

Body

Name
Type
Required?
Description

id

string

No

The unique message id.

Response

{
   "id":"9A0C23DD0A000A9D2FBD4671D780AFDA",
   "created":"2023-07-01T01:10:34+0000",
   "modified":"2023-07-01T01:10:39+0000",
   "originator":"Sender ID",
   "recipient":"4400011223",
   "body":"Test Message 1",
   "status":"DELIVERED",
   "direction":"MT",
   "inReplyTo":null,
   "routeId":"mglobal",
   "parts":1,
   "cost":0.01,
   "currency":"GBP",
   "senderReference":"ref-001",
   "campaignId":null
}
{
   "code":401,
   "message":"Unauthorized"
}
{
   "code":404,
   "message":"Not Found"
}

We use conventional HTTP response codes to indicate the success or failure of an API request. In general:

2xx indicate success 4xx indicate an error that failed given the information provided (e.g., a required parameter was omitted) 5xx errors indicate an error with ours servers (these are rare).

PreviousSearch Message logsNextList OptOuts

Last updated 1 year ago

Was this helpful?

To see a full list of our Response codes, please .

click here