LogoLogo
Jump to...Create Free API Account
  • Developer Center Introduction
  • Getting Started
    • Get an API Key
    • Send a Message
    • Add a Subscriber
    • Setting up Webhooks
  • Check Delivery Status
  • API Basics
    • Request / Response Headers
    • Request Parameters
    • Rate Limits
    • Error Response Codes
  • Messaging Routes
    • 10DLC
    • Toll-Free
    • Short Code
    • iMessage
    • RCS / RBM
  • Tutorials
    • Message Sending
      • Send an SMS Message
      • Send an MMS Message
      • Send an iMessage
        • Sender Identity
        • Subscriber Opt In
        • Send iMessages
        • SMS Fallback
      • Message Templates
      • Receive and Reply to Messages
    • Manage Subscribers
      • Custom Subscriber Attributes
      • Group Subscribers
      • Bulk Create/Update Subscribers
    • Webhooks
      • Setting up your first webhook
  • Use Cases
    • Generate and validate 2FA / MFA codes via SMS
  • FAQ
  • API Reference
Powered by GitBook
LogoLogo

Resources

  • Help Center
  • Contact

Company

  • About Us
  • Privacy Policy
  • Service Agreement

Connect with Us

  • YouTube
  • Facebook
  • X (Twitter)
  • Instagram

Mobile Text Alerts © 2025

On this page
  • What is an API?
  • REST APIs
  • HTTP Methods in REST
  • REST API Responses

Was this helpful?

Export as PDF

API Basics

Learn more about REST APIs and how to interact with them.

What is an API?

API stands for Application Programming Interface. APIs enable communication between two software components, typically a client and a server. The application sending the request is the client, and the application sending the response is the server. When interacting with the Mobile Text Alerts API, the Mobile Text Alerts database is the server, and you send requests as the client.

There are different types of APIs, the MTA API is a REST API.

REST APIs

REST stands for Representational State Transfer, a REST API is a way for software systems to communicate using HTTP. The main principle of REST APIs is statelessness, which means each request from a client to a server must contain all the information needed (no session stored on the server). The server processes the request and returns the necessary data as plain text.

HTTP Methods in REST

HTTP methods indicate the action the client would like to perform on a given resource. Examples of possible actions when calling the Mobile Text Alerts API: send a message, add/delete a subscriber, create a drip campaign, and many more.

Each HTTP method is mapped to a specific operation and is included with every request to the API.

HTTP Methods:

  • GET - Retrieves data from the server.

    • Example: A GET request to the /subscribers endpoint would return a list of all subscribers.

  • POST - Sends data to the server to create something new.

    • Example: A POST request to the /send endpoint would create a new message(s).

  • PATCH - Updates existing data on the server.

    • Example: A PATCH request to the /threads/{threadId}/read endpoint would update the thread specified with {threadId}as Read.

  • DELETE - Removes existing data on the server.

    • Example: A DELETE request to the /groups/{groupId} endpoint would remove the group specified with {groupId}.

REST API Responses

After making a request to the API, it will return a response that contains the following information:

    • Example: 200

    • Example: Content-Type, Date

  • Response Body/Payload- This is the actual data content of the response.

    • Example:

    {
      "data": {
        "messageId": "uuid",
        "totalSent": 1,
        "totalFailedInternationalRecipients": 0
      },
      "message": "Message Sent to 1 Recipient."
    }

PreviousCheck Delivery StatusNextRequest / Response Headers

Last updated 3 months ago

Was this helpful?

- This three-digit code indicates the outcome of the request

- This provides metadata about the response.

HTTP status code
Response Headers
Page cover image