Skip to content

Create a Group

POST
/groups

With this command you create a SMS mailing list which is stored in our system for you. A mailing list has a name, a description and five additional columns which you can add in addition to the phone number.

#!/usr/bin/env bash
curl -X POST https://api.lox24.eu/groups \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \
-d '{
"name": "My Clients",
"description": "Best clients",
"name_a": "prefix",
"name_b": "name",
"name_c": "datetime",
"name_d": "price",
"name_e": "something_else"
}'

The new groups resource

Phone’s group

object
name
required

Group name

string
>= 1 characters <= 50 characters
description

Group description

string | null
<= 255 characters
name_a

Name of the column

string | null
<= 50 characters
name_b

Name of the column

string | null
<= 50 characters
name_c

Name of the column

string | null
<= 50 characters
name_d

Name of the column

string | null
<= 50 characters
name_e

Name of the column

string | null
<= 50 characters
phones
One of:
object
key
additional properties

Phones list by group

object
phone
required

Phone number

string
<= 30 characters
a

Phone column data

string | null
<= 1530 characters
b

Phone column data

string | null
<= 1530 characters
c

Phone column data

string | null
<= 1530 characters
d

Phone column data

string | null
<= 1530 characters
e

Phone column data

string | null
<= 1530 characters
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
deleted_at

Date and time when group will be deleted

string | null format: date-time
id

Group ID

integer
>= 1
count_items

Count of the item in the group

integer

Groups resource created

Phone’s group

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
id

Group ID

integer
>= 1
name
required

Group name

string
>= 1 characters <= 50 characters
description

Group description

string | null
<= 255 characters
name_a

Name of the column

string | null
<= 50 characters
name_b

Name of the column

string | null
<= 50 characters
name_c

Name of the column

string | null
<= 50 characters
name_d

Name of the column

string | null
<= 50 characters
name_e

Name of the column

string | null
<= 50 characters
count_items

Count of the item in the group

integer
deleted_at

Date and time when group will be deleted

string | null format: date-time

Invalid input

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

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

The request was well-formed but was unable to be followed due to semantic errors

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