Pular para o conteúdo

Retrieves the collection of Bulks

GET
/bulks

Getting the list of bulks 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.

page
integer
default: 1 >= 1 <= 1000000

Current page

uuid[]
Array<string>

Find many SMS by the unique IDs

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}$/

Find one SMS by the unique ID

_order[created_at]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

Sort by timestamp when the entity was created

_order[delivery_at]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

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

_order[processed_at]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

Sort by timestamp when the entity was changed last time

_order[msg_total_count]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

Sort by the total counts of the related SMS

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

Partial case-insensitive text filter SMS by the message text

sender_id

Sender-ID of the message. Can be a number (up to 15 digits) or a text (up to 11 character). In case of a number please use preferentially E.164 phone number format. A sender of text may contain spaces but no other special characters. Please note that some countries do not support own sender IDs or do require pre-registration. Our system automatically tries to detect whether a sender ID is a text or a phone number. Avoid special characters in a number and enter it the same way as it would be dialed on a phone.

Para mensagens de voz (text2speech, text2speech_ssml): se sender_id não estiver em conformidade com o formato E.164 (por exemplo, sem o prefixo +, contendo caracteres não numéricos), a mensagem será enviada a partir do número padrão do sistema +493075435114. Alguns provedores de telefonia downstream podem substituir ou não respeitar o número de remetente definido pelo usuário — o identificador de chamada real apresentado ao destinatário depende das capacidades do provedor.

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

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

status_code

Bulk’s status:

  • 0 - new and not processed
  • 5 - bulks in progress
  • 10 - bulks was successfully processed
  • 15 - bulk’s processing was canceled by the user
  • 20 - system error
  • 201 - error: no recipients found
integer
Allowed values: 0 5 10 15 20 201

Exact filter Bulks by the status code

status_code[]
Array<integer>
Allowed values: 0 5 10 15 20 201

Exact filter Bulks by the statuses codes

created_at

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

integer

Exact filter entities by the creation timestamp

created_at[]
Array<integer>

Exact and range filter entities by the creation timestamps

delivery_at

Timestamp de entrega programada

integer

Exact filter SMS by the delivery timestamp

delivery_at[]
Array<integer>

Exact and range filter SMS by the delivery timestamps

processed_at

Timestamp of last changes

integer | null

Exact filter entities by the last changes timestamp

processed_at[]
Array<integer | null>

Exact and range filter entities by the last changes timestamps

msg_total_count

Count of the messages created by the bulk

integer

Exact filter Bulks by the total count of the SMS in the bulk

msg_total_count[]
Array<integer>

Exact and range filter Bulks by the total counts of the related SMS

source
integer

Exact filter SMS by the sources

source[]
Array<integer>

Exact and range filter SMS by the sources

key_id

Identificador da chave API

integer
>= 1

Exact filter entities by the used API key

key_id[]
Array<integer>

Exact filter entities by the used API keys

is_unicode
boolean

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

is_dryrun
boolean

Boolean filter Bulks by the is_dryrun field to distinguish type of the Bulk

exists[is_unicode]
boolean

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

Bulks collection

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
totalItems

Total number of items in the collection

integer
member
required
Array<object>

Bulk SMS status summary (JSON-LD)

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
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}$/
delivery_at

Timestamp de entrega programada

integer
sender_id

Sender-ID of the message. Can be a number (up to 15 digits) or a text (up to 11 character). In case of a number please use preferentially E.164 phone number format. A sender of text may contain spaces but no other special characters. Please note that some countries do not support own sender IDs or do require pre-registration. Our system automatically tries to detect whether a sender ID is a text or a phone number. Avoid special characters in a number and enter it the same way as it would be dialed on a phone.

Para mensagens de voz (text2speech, text2speech_ssml): se sender_id não estiver em conformidade com o formato E.164 (por exemplo, sem o prefixo +, contendo caracteres não numéricos), a mensagem será enviada a partir do número padrão do sistema +493075435114. Alguns provedores de telefonia downstream podem substituir ou não respeitar o número de remetente definido pelo usuário — o identificador de chamada real apresentado ao destinatário depende das capacidades do provedor.

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

Bulk’s status:

  • 0 - new and not processed
  • 5 - bulks in progress
  • 10 - bulks was successfully processed
  • 15 - bulk’s processing was canceled by the user
  • 20 - system error
  • 201 - error: no recipients found
integer
Allowed values: 0 5 10 15 20 201
msg_total_count

Count of the messages created by the bulk

integer
created_at

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

integer
processed_at

Timestamp of last changes

integer | null
ip

IP address of the host which sent request

string format: ipv4
is_unicode

True se a mensagem contém caracteres Unicode, False caso contrário

boolean | null
is_dryrun

Type of the bulk ‘dryrun’ or not

boolean
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
service_code

Código de serviço ou gateway

Allowed values: direct text2speech text2speech_ssml
key_id
One of:

Identificador da chave API

integer
>= 1
source

Fonte ou origem da mensagem

integer | null
voice_lang

Idioma da mensagem de voz. Valores possíveis: null (detecção automática) ou um dos seguintes: EN (inglês), DE (alemão), FR (francês), IT (italiano), ES (espanhol), PL (polaco), NL (neerlandês), RO (romeno), PT (português), CS (checo), HU (húngaro), SV (sueco), DA (dinamarquês), FI (finlandês), SK (eslovaco), HR (croata), TR (turco), RU (russo), BG (búlgaro), UK (ucraniano).

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

True se o texto da mensagem foi excluído, False caso contrário

boolean
msg_total_cost

Cost of the messages created by the bulk

number
requests

URL to get the list of the bulk’s messages requests

string format: iri-reference
search
object
@type
string
template
string
variableRepresentation
string
mapping
Array<object>
object
@type
string
variable
string
property
string | null
required
boolean
Examples
Example example_bulks_response_get

Bulks list (JSON-LD)

Example response for GET /bulks with Accept: application/ld+json

{
"@context": "/contexts/Bulk",
"@id": "/bulks",
"@type": "Collection",
"totalItems": 2,
"member": [
{
"@id": "/bulks/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"@type": "Bulk",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"delivery_at": 0,
"sender_id": "testbulk",
"status_code": 10,
"msg_total_count": 1000,
"created_at": 1755868416,
"processed_at": 1755868500,
"ip": "10.1.1.1",
"is_unicode": false,
"is_dryrun": false,
"callback_data": null,
"service_code": "direct",
"key_id": 8291,
"source": 0,
"voice_lang": null,
"is_text_deleted": false,
"msg_total_cost": 56,
"requests": "/bulks/a1b2c3d4-e5f6-7890-abcd-ef1234567890/requests"
},
{
"@id": "/bulks/b2c3d4e5-f6a7-8901-bcde-f12345678901",
"@type": "Bulk",
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"delivery_at": 1755954816,
"sender_id": "testbulk",
"status_code": 5,
"msg_total_count": 50,
"created_at": 1755868500,
"processed_at": 1755868600,
"ip": "10.1.1.1",
"is_unicode": null,
"is_dryrun": false,
"callback_data": null,
"service_code": "direct",
"key_id": null,
"source": 0,
"voice_lang": null,
"is_text_deleted": false,
"msg_total_cost": 3.5,
"requests": "/bulks/b2c3d4e5-f6a7-8901-bcde-f12345678901/requests"
}
],
"search": {
"@type": "IriTemplate",
"template": "/bulks{?page,uuid,uuid[],_order[created_at],_order[delivery_at],_order[processed_at],_order[msg_total_count],text,sender_id,status_code,status_code[],created_at,created_at[],delivery_at,delivery_at[],processed_at,processed_at[],msg_total_count,msg_total_count[],source,source[],key_id,key_id[],is_unicode,is_dryrun,exists[is_unicode]}",
"variableRepresentation": "BasicRepresentation",
"mapping": []
}
}

Invalid input

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

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

O endereço IP foi bloqueado temporariamente, pois durante um curto período de tempo foram enviadas várias solicitações com credenciais inválidas. Aguarde e tente mais tarde.

Code Samples

#!/usr/bin/env bash
curl -X GET https://api.lox24.eu/bulks \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'