Public
Documentation Settings

API REST Zapcel

O Zapcel é uma ferramenta de automação de WhatsApp que se integra a sistemas ERP, agilizando o envio de mensagens de cobrança. Ao monitorar notificações de SMS geradas pelo ERP, o Zapcel replica instantaneamente essas mensagens no WhatsApp do cliente. Essa integração proporciona uma comunicação eficiente, melhorando a gestão financeira e a experiência do cliente. Em resumo, o Zapcel automatiza a comunicação de cobranças, garantindo rapidez e eficácia.

https://www.hostcel.com.br/

Hostcel, by Edilson Souza

Intância da API

GETCriar Instância

https://zap.hostcel.com.br/api/create_instance?access_token=69d3dbbe3033342e91284c48efdefb81

Create Instance

PARAMS
access_token

69d3dbbe3033342e91284c48efdefb81

Example Request
curl
curl --location 'https://zap.hostcel.com.br/api/create_instance?access_token=69d3dbbe3033342e91284c48efdefb81'
200 OK
Example Response
json
{
  "status": "success",
  "message": "ID da instância gerada com sucesso",
  "instance_id": "69d3dbbe3033342e91284c48efdefb81"
}
Server

nginx

Date

Wed, 03 Jan 2024 05:46:49 GMT

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Vary

Accept-Encoding

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Set-Cookie

stackpost_session=5akvm0suglns8e6p8e7c59aoto85fmaq; expires=Fri, 02-Feb-2024 05:46:49 GMT; Max-Age=2592000; path=/; HttpOnly; SameSite=Lax

Strict-Transport-Security

max-age=31536000

Content-Encoding

gzip

GETObter o QRCode

https://zap.hostcel.com.br/api/get_qrcode?instance_id=640F7334EC58C&access_token=69d3dbbe3033342e91284c48efdefb81

GET QR Code

PARAMS
instance_id

640F7334EC58C

access_token

69d3dbbe3033342e91284c48efdefb81

Example Request
curl
curl --location 'https://zap.hostcel.com.br/api/get_qrcode?instance_id=640F7334EC58C&access_token=69d3dbbe3033342e91284c48efdefb81'
200 OK
Example Response
json
{
  "status": "sucesso",
  "message": "O ID da instancia foi criado com sucesso"
}
Server

nginx

Date

Wed, 03 Jan 2024 05:49:46 GMT

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Vary

Accept-Encoding

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Strict-Transport-Security

max-age=31536000

Content-Encoding

gzip

GETDefinir WebHook de Recebimento

https://zap.hostcel.com.br/api/set_webhook?webhook_url=https%3A%2F%2Fwebhook.site%2F1b25464d6833784f96eef4xxxxxxxxxx&enable=true&instance_id=640F7334EC58C&access_token=69d3dbbe3033342e91284c48efdefb81
PARAMS
webhook_url

https%3A%2F%2Fwebhook.site%2F1b25464d6833784f96eef4xxxxxxxxxx

enable

true

instance_id

640F7334EC58C

access_token

69d3dbbe3033342e91284c48efdefb81

Example Request
curl
curl --location 'https://zap.hostcel.com.br/api/setwebhook.php?webhook_url=https%3A%2F%2Fwebhook.site%2F1b25464d6833784f96eef4xxxxxxxxxx&enable=true&instance_id=640F7334EC58C&access_token=69d3dbbe3033342e91284c48efdefb81'
200 OK
Example Response
json
{
  "status": "success",
  "message": "Webhook URI Saved"
}
Connection

Keep-Alive

Keep-Alive

timeout=5, max=100

x-powered-by

PHP/7.4.33

Content-Type

application/json

cache-control

private, must-revalidate

expires

Mon, 13 Mar 2023 19:12:23 GMT

content-length

54

content-encoding

br

vary

Accept-Encoding,User-Agent

date

Mon, 13 Mar 2023 19:12:23 GMT

server

LiteSpeed

alt-svc

h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"