POST /v1/channels/universal
POST
/v1/channels/universal
const url = 'https://seu-endereco-da-api/v1/channels/universal';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","config":{},"credentials":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/channels/universal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "config": {}, "credentials": { "additionalProperty": "example" } }'Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
name
required
string
config
required
object
key
additional properties
any
credentials
object
key
additional properties
string
Example generated
{ "name": "example", "config": {}, "credentials": { "additionalProperty": "example" }}