POST
/
v2
/
agent
/
{agentId}
/
create-channel
curl --request POST \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/create-channel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "WHATSAPP"
}'
{
  "id": "<string>",
  "name": "<string>",
  "type": "WHATSAPP"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

ID do agente

Body

application/json
Dados do canal a ser criado
name
string
required

Nome do canal

type
enum<string>
required

Tipo do canal

Available options:
WHATSAPP,
INSTAGRAM,
CLOUD_API,
TELEGRAM,
WIDGET,
MESSENGER,
MERCADO_LIVRE

Response

200
application/json
Canal criado com sucesso
id
string

ID do canal

name
string

Nome do canal

type
enum<string>

Tipo do canal

Available options:
WHATSAPP,
INSTAGRAM,
CLOUD_API,
TELEGRAM,
WIDGET,
MESSENGER,
MERCADO_LIVRE