/api/v1/me/channels
POST
/api/v1/me/channels
const url = 'https://example.com/api/v1/me/channels';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"kind":"webhook","url":"example","label":"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://example.com/api/v1/me/channels \ --header 'Content-Type: application/json' \ --data '{ "kind": "webhook", "url": "example", "label": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
channel
required
object
id
required
string format: uuid
kind
required
string
label
required
string | null
displayHost
required
string | null
secret
required
string
Example
{ "channel": { "kind": "email" }}