Pular para o conteúdo

Criar Telefones em lote

POST
/groups/{id}/phones/batch

Em vez de enviar múltiplas solicitações, é melhor enviar uma única solicitação com uma lista de objetos de Telefone como corpo da solicitação.

id
required

ID do grupo

integer
>= 1

ID do grupo

The new groups resource

Media type application/json

Batch phone creation request payload

Array<object>

Phones list by group

object
phone
required

Número de telefone

string
<= 30 characters
a

Dados da coluna do telefone

string | null
<= 1530 characters
b

Dados da coluna do telefone

string | null
<= 1530 characters
c

Dados da coluna do telefone

string | null
<= 1530 characters
d

Dados da coluna do telefone

string | null
<= 1530 characters
e

Dados da coluna do telefone

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
Example generated
[
{
"phone": "example",
"a": "example",
"b": "example",
"c": "example",
"d": "example",
"e": "example",
"callback_data": "example"
}
]

Groups resource created

Batch operation results (JSON-LD)

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
hydra:totalItems
integer
member

Batch operation result item (JSON-LD)

object
status

Código de status HTTP de resposta

integer
body
Any of:

Phones list by group

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
id

ID do telefone

integer
>= 1
phone
required

Número de telefone

string
<= 30 characters
a

Dados da coluna do telefone

string | null
<= 1530 characters
b

Dados da coluna do telefone

string | null
<= 1530 characters
c

Dados da coluna do telefone

string | null
<= 1530 characters
d

Dados da coluna do telefone

string | null
<= 1530 characters
e

Dados da coluna do telefone

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 de quando o usuário se inscreveu 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
Example
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
},
"member": {
"body": {
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
}
}
}
}

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

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