Skip to content

Retrieves the collection of SMS

GET
/sms

Getting the list of messages from the postbox, ordered by the field created_at in descending order. The postbox contains all sent, not sent and terminated SMS. You can also optionally sort according to the price or the time of transmit to the network operator. You also have the option of transferring different search criteria to limit the output of postbox’s messages.

#!/usr/bin/env bash
curl -X GET https://api.lox24.eu/sms \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'
page
integer
default: 1 >= 1

Current page

_order[created_at]
string
default: asc
Allowed values: asc desc

Sort by timestamp when the entity was created

_order[gateway_sent_at]
string
default: asc
Allowed values: asc desc

Sort by timestamp when the message was transmitted to the mobile network

is_sent
boolean

Boolean filter SMS by the is_sent field to distinguish between already sent and not yet sent sms

is_unicode
boolean

Boolean filter SMS by the is_unicode field to distinguish between GSM and Unicode messages

uuid
string

Exact filter by SMS ID

uuid[]
Array<string>

Exact filter by SMS ID

iso2
string

Exact filter SMS by the phone’s country (ISO 3166-1 alpha-2)

iso2[]
Array<string>

Exact filter SMS by the phone’s countries (ISO 3166-1 alpha-2)

dlr_code
integer

Exact filter SMS by the delivery report status

dlr_code[]
Array<integer>

Exact filter SMS by the delivery report statuses

status_code
integer

Exact filter SMS by the status code

status_code[]
Array<integer>

Exact filter SMS by the statuses codes

gateway_sent_at
integer

Exact filter SMS by the send to gateway timestamp

gateway_sent_at[]
Array<integer>

Exact and range filter SMS by send to gateway timestamps

delivery_at
integer

Exact filter SMS by the delivery timestamp

delivery_at[]
Array<integer>

Exact and range filter SMS by the delivery timestamps

created_at
integer

Exact filter entities by the creation timestamp

created_at[]
Array<integer>

Exact and range filter entities by the creation timestamps

chars_count
integer

Range filter SMS by the message chars count

chars_count[]
Array<integer>

Exact and range filter SMS by the message chars count

parts_count
integer

Exact filter SMS by the message parts count

parts_count[]
Array<integer>

Exact and range filter SMS by the message parts count

bulk
string

Exact filter SMS by the Bulk

bulk[]
Array<string>

Exact and range filter SMS by the Bulk

source
integer

Exact filter SMS by the sources

source[]
Array<integer>

Exact and range filter SMS by the sources

text
string

Partial case-insensitive text filter SMS by the message text

phone
string

Partial text filter SMS by the phone number

sender_id
string

Partial text case-insensitive filter SMS by the sender number or text

ip
string

Partial text filter SMS by the IP which created the message

key_id
integer

Exact filter entities by the used API key

key_id[]
Array<integer>

Exact filter entities by the used API keys

callback_data
string

Exact filter SMS by callback_data property

callback_data[]
Array<string>

Exact filter SMS by callback_data property

Sms collection

object
hydra:member
required
Array<object>

SMS

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
@context
One of:
string
text

The message text can have a length of up to 1530 characters. With a Unicode SMS, the maximum character length is reduced to 670 characters. Internal encoding is UTF-8.

string
sender_id

Sender ID or phone number

string
/^(\+?[1-9]\d{0,14}|[a-zA-Z0-9 ]{1,11})$/
phone

Recipient (international) number:

  • +491701234567 (E.164)
  • 00491701234567
  • 491701234567
  • 01701234567 (if the account is registered in Germany) will be convert to +491701234567

If the number is not in an E.164 format then the service will convert it based on user’s address. To avoid problems with the converting please use E.164 preferentially.

string
>= 4 characters <= 16 characters /^\+[1-9]\d{1,14}$/
Example
+14155552671
delivery_at

Scheduled delivery timestamp

integer
status_code

Status of the sms. For more info see SMS status codes

integer
Allowed values: 0 100 208 400 410 2000 3000 5000 6000
gateway_sent_at

Timestamp when message was sent to the mobile network provider

integer
source

Message source or origin

integer | null
dlr_code
integer
Allowed values: 0 1 2 4 8 16
Example
1
ip

IP address of the host which sent request

string format: ipv4
Example
192.168.1.1
created_at

Timestamp when the entity was added to the system by the user

integer
is_unicode

True if message contains Unicode characters, False otherwise

boolean | null
uuid

Unique entity UUID

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
iso2

Country code

string
>= 2 characters <= 2 characters /^[A-Z]{2}$/
voice_lang

Voice message language. Possible values: null (auto-detection) or one of: EN (English), DE (German), FR (French), IT (Italian), ES (Spanish), PL (Polish), NL (Dutch), RO (Romanian), PT (Portuguese), CS (Czech), HU (Hungarian), SV (Swedish), DA (Danish), FI (Finnish), SK (Slovak), HR (Croatian), TR (Turkish), RU (Russian), BG (Bulgarian), UK (Ukrainian).

string | null
Allowed values: EN DE FR IT ES PL NL RO PT CS HU SV DA FI SK HR TR RU BG UK
parts_count

Count of the SMS parts (concatenated messages)

integer
>= 1
chars_count

Count of chars in the message text

integer | null
callback_data

String which will be send back to your endpoint. E.g. it can be usable to pass your system message id.

string | null
<= 36 characters
bulk_id

Bulk ID

null | string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
key_id

API key identifier

integer
>= 1
service_code

Service or gateway code

Allowed values: direct text2speech text2speech_ssml
is_text_deleted

True if message text was deleted, False otherwise

boolean
price

Price

number
is_sent

True - SMS was sent, False - SMS wasn’t sent yet

boolean
requests

Link to all requests by a SMS list

string | null
clicks

Link to count of request by a short link

string | null
attempts_count_max

Maximum number of delivery attempts for voice services (text2speech, text2speech_ssml). Allowed values: null, 1, 2, or 3 for text2speech/text2speech_ssml services; must be null for other services.

integer | null
Allowed values: 1 2 3
hydra:totalItems
integer
hydra:view
object
@id
string format: iri-reference
@type
string
hydra:first
string format: iri-reference
hydra:last
string format: iri-reference
hydra:previous
string format: iri-reference
hydra:next
string format: iri-reference
Example
{
"@id": "string",
"@type": "string",
"hydra:first": "string",
"hydra:last": "string",
"hydra:previous": "string",
"hydra:next": "string"
}
hydra:search
object
@type
string
hydra:template
string
hydra:variableRepresentation
string
hydra:mapping
Array<object>
object
@type
string
variable
string
property
string | null
required
boolean

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.