Using a Shortened URL (API)

Step 1: Create

Create a Shortened URL first by logging in to your account via our website.

Step 2: Send

Use the exact original URL, as the one used to create your shortened URL, when sending via an API.




RESTful Example:


POST /bulkmessages HTTP/1.1
HOST: rest.mymobileapi.com/api/v1
Content-Type: application/json
Authorization: Bearer [Your Authorization Token]
Accept: application/json
{
  "Messages": [
    {
      "Content": "Hello John. Our new API is available. Click https://docs.mymobileapi.com/docs/url-shortening to learn more.",
      "Destination": "27830000000"
    }
  ]
}

385

SMS Example




📘

Important Information

  • When sending your messages, it will show as a long URL on your system when processing, but will be received by the recipients as a shortened URL.