Skip to content

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.

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

Current page

uuid[]
Array<string>

Exact filter by SMS ID

uuid
string

Exact filter by SMS ID

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

Sort by timestamp when the entity was created

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

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

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

Sort by timestamp when the entity was changed last time

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

Sort by the total counts of the related SMS

text
string

Partial case-insensitive text filter SMS by the message text

sender_id
string

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

status_code
integer

Exact filter Bulks by the status code

status_code[]
Array<integer>

Exact filter Bulks by the statuses codes

created_at
integer

Exact filter entities by the creation timestamp

created_at[]
Array<integer>

Exact and range filter entities by the creation timestamps

delivery_at
integer

Exact filter SMS by the delivery timestamp

delivery_at[]
Array<integer>

Exact and range filter SMS by the delivery timestamps

processed_at
integer

Exact filter entities by the last changes timestamp

processed_at[]
Array<integer>

Exact and range filter entities by the last changes timestamps

msg_total_count
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
integer

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
hydra:member
required
Array<object>
object
@id

JSON-LD ID

string
@type

JSON-LD type

string
@context
One of:
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

Scheduled delivery timestamp

integer
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

Unique entity UUID

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

Timestamp of last changes

integer | null
ip

IP address of the host which sent request

string format: ipv4
Example
192.168.1.1
is_unicode

True if message contains Unicode characters, False otherwise

boolean | null
is_dryrun

Type of the bulk ‘dryrun’ or not

boolean
service_code

Service or gateway code

Allowed values: direct text2speech text2speech_ssml
key_id

API key identifier

integer
>= 1
source

Message source or origin

integer | null
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
is_text_deleted

True if message text was deleted, False otherwise

boolean
msg_total_cost

Cost of the messages created by the bulk

integer
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.