Pular para o conteúdo

Criar um Telefone

POST
/groups/{id}/phones

Criar uma entrada com um número de telefone.

id
required

ID do grupo

integer
>= 1

ID do grupo

The new phones resource

Media type application/json

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"
}

Phones resource created

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#"
}
}

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
curl -X POST https://api.lox24.eu/groups/12344/phones \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \
-d '{
"phone": "+93701234567",
"a": "Mr. ",
"b": "Smith ",
"c": "2020-02-23 18:00",
"d": "12.34",
"e": "restaurant Blue Oyster"
}'