This endpoint is deprecated.

Send SMS message over query parameters

DEPRECATED:
SUNSET:
SUCCESSOR:

All message parameters of the message can be defined in the query string. Use this method only if Send SMS message is not an option for your use case!
Note: Make sure that special characters and user credentials are properly encoded. Use a URL encoding reference as a guide.

Please log in to see full path URL. Learn why.
get
/sms/1/text/query
query Parameters
username
required
string

Username for authentication.

password
required
string

Password for authentication.

bulkId
string

Unique ID assigned to the request if messaging multiple recipients or sending multiple messages via a single API request. Anything above 100 characters passed in the request will be clipped during processing and returned in response, reports and logs.

from
string
Example: from=InfoSMS

The sender ID which can be alphanumeric or numeric (e.g., CompanyName).

to
required
Array of strings
Example: to=41793026727,41793026834

List of message recipients.

text
string
Example: text=Message text

Content of the message being sent.

flash
boolean
Example: flash=true

Sends a flash SMS if set to true.

transliteration
string
Example: transliteration=TURKISH

Conversion of a message text from one script to another.

languageCode
string
Example: languageCode=TR

Code for language character set of a message content.

intermediateReport
boolean
Example: intermediateReport=true

Use a real-time intermediate delivery report that will be sent on your callback server.

notifyUrl
string
Example: notifyUrl=https://www.example.com

The URL on your call back server on to which a delivery report will be sent.

notifyContentType
string
Example: notifyContentType=application/json

Preferred delivery report content type, application/json or application/xml.

callbackData
string [ 0 .. 4000 ] characters
Example: callbackData=callbackData

Additional data that can be used for identifying, managing, or monitoring a message. Data included here will also be automatically included in the message Delivery Report. The maximum value is 4000 characters.

validityPeriod
integer <int64>
Example: validityPeriod=720

The message validity period in minutes. When the period expires, it will not be allowed for the message to be sent. Validity period longer than 48h is not supported. Any bigger value will automatically default back to 2880.

sendAt
string <date-time>

Date and time when the message is to be sent. Used for scheduled SMS. Has the following format: yyyy-MM-dd'T'HH:mm:ss.SSSZ. Must be sooner than 180 days from now.

track
string
Example: track=URL

Sets the conversion element to be tracked. Possible values: SMS and URL. For more details on SMS Conversion, see: Track Conversion.

processKey
string

The process key which uniquely identifies conversion tracking.

trackingType
string
Example: trackingType=Custom tracking type

Sets a custom conversion type naming convention, e.g. ONE_TIME_PIN, SOCIAL_INVITES, etc.

indiaDltContentTemplateId
string
Example: indiaDltContentTemplateId=1111111111111111111

The ID of your registered DLT (Distributed Ledger Technology) content template.

indiaDltPrincipalEntityId
string
Example: indiaDltPrincipalEntityId=1111111111111111112

Your DLT (Distributed Ledger Technology) entity id.

indiaDltTelemarketerId
string
Example: indiaDltTelemarketerId=111111111111

Your assigned Telemarketer ID. (required for Aggregators)

turkeyIysBrandCode
integer <int32>

Brand code is an ID of the company based on a company VAT number. If not provided in request, default value is used from your Infobip account.

turkeyIysRecipientType
string

Recipient Type must be TACIR or BIREYSEL

southKoreaResellerCode
integer <int32>

Reseller identification code: 9-digit registration number in the business registration certificate for South Korea. Resellers should submit this when sending.

Responses

200

Successful response

400

Error responses

500

Internal Server Error

Request samples

Example
cURL
Copy
curl -L -g 'https://{baseUrl}/sms/1/text/query?username=%7Busername%7D&password=%7Bpassword%7D&from=InfoSMS&to=41793026727%2C41793026834&text=Message%20text&flash=true&transliteration=TURKISH&languageCode=TR&intermediateReport=true&notifyUrl=https%3A%2F%2Fwww.example.com&notifyContentType=application%2Fjson&callbackData=callbackData&validityPeriod=720&track=URL&trackingType=Custom%20tracking%20type&indiaDltContentTemplateId=1111111111111111111&indiaDltPrincipalEntityId=1111111111111111112&indiaDltTelemarketerId=111111111111' \
-H 'Accept: application/json'

Response samples

Content type
Example
Copy
Collapse all
{
  • "bulkId": "2034072219640523072",
  • "messages":
    [
    • {
      • "messageId": "2250be2d4219-3af1-78856-aabe-1362af1edfd2",
      • "status":
        {
        • "description": "Message sent to next instance",
        • "groupId": 1,
        • "groupName": "PENDING",
        • "id": 26,
        • "name": "PENDING_ENROUTE"
        },
      • "to": "41793026727",
      • "smsCount": 1
      }
    ]
}

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Learn more
Service status

Copyright @ 2006-2025 Infobip ltd.