Skip to main content
POST
/
integration
/
create
Criar Integração
curl --request POST \
  --url https://api.multchats.com/v2/integration/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "sectorId": "<string>",
  "color": "<string>"
}
'
{
  "success": true,
  "response": {
    "integration": {
      "id": "<string>",
      "name": "<string>",
      "sectorId": "<string>",
      "connectionStatus": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "chatId": "<string>",
      "color": "<string>",
      "onlyApi": false
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Nome da integração

Required string length: 1 - 255
sectorId
string
required

ID do setor (Copiar em Setores -> Ações -> Copiar ID)

color
string

Cor da integração (hexadecimal)

Response

200 - application/json

Integração criada com sucesso

success
boolean
default:true
required

Indica se a operação foi bem-sucedida

response
object
required

Resposta da operação de criação