Skip to content

Create Phones by the batch

POST
/groups/{id}/phones/batch

Instead of sending multiple requests better to send a single request with a list of Phone objects as body request.

#!/usr/bin/env bash
id
required
integer

Group ID

The new groups resource

Array<object>

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

Groups resource created

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
hydra:totalItems
integer
hydra:member
object
status

Response HTTP status code

integer
body
One of:

Phones list by group

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
id

Phone ID

string
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
subscribed_at

Timestamp when user was subscribed by a link

integer | null
unsubscribed_at

Timestamp when user was unsubscribed by a link

integer | null
unsubscribe_reason

Unsubscribe reasons:

  • 1 - I never subscribed
  • 2 - Too many messages
  • 3 - I am not interested
  • 4 - Content is incomprehensible
  • 5 - I don’t like your company
  • 6 - Other
integer | null

Invalid input

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

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

Resource not found

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.