Create a new chat channel
curl --request POST \
--url https://api.engagefabric.com/chat/channels \
--header 'Content-Type: application/json' \
--data '
{
"name": "General",
"description": "<string>",
"type": "PROJECT",
"maxMessageLength": 1000,
"rateLimit": 30,
"slowModeSeconds": 123,
"profanityFilterEnabled": true,
"moderationLevel": "STANDARD",
"retentionDays": 123,
"metadata": {}
}
'import requests
url = "https://api.engagefabric.com/chat/channels"
payload = {
"name": "General",
"description": "<string>",
"type": "PROJECT",
"maxMessageLength": 1000,
"rateLimit": 30,
"slowModeSeconds": 123,
"profanityFilterEnabled": True,
"moderationLevel": "STANDARD",
"retentionDays": 123,
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'General',
description: '<string>',
type: 'PROJECT',
maxMessageLength: 1000,
rateLimit: 30,
slowModeSeconds: 123,
profanityFilterEnabled: true,
moderationLevel: 'STANDARD',
retentionDays: 123,
metadata: {}
})
};
fetch('https://api.engagefabric.com/chat/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engagefabric.com/chat/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'General',
'description' => '<string>',
'type' => 'PROJECT',
'maxMessageLength' => 1000,
'rateLimit' => 30,
'slowModeSeconds' => 123,
'profanityFilterEnabled' => true,
'moderationLevel' => 'STANDARD',
'retentionDays' => 123,
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.engagefabric.com/chat/channels"
payload := strings.NewReader("{\n \"name\": \"General\",\n \"description\": \"<string>\",\n \"type\": \"PROJECT\",\n \"maxMessageLength\": 1000,\n \"rateLimit\": 30,\n \"slowModeSeconds\": 123,\n \"profanityFilterEnabled\": true,\n \"moderationLevel\": \"STANDARD\",\n \"retentionDays\": 123,\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engagefabric.com/chat/channels")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"General\",\n \"description\": \"<string>\",\n \"type\": \"PROJECT\",\n \"maxMessageLength\": 1000,\n \"rateLimit\": 30,\n \"slowModeSeconds\": 123,\n \"profanityFilterEnabled\": true,\n \"moderationLevel\": \"STANDARD\",\n \"retentionDays\": 123,\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/chat/channels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"General\",\n \"description\": \"<string>\",\n \"type\": \"PROJECT\",\n \"maxMessageLength\": 1000,\n \"rateLimit\": 30,\n \"slowModeSeconds\": 123,\n \"profanityFilterEnabled\": true,\n \"moderationLevel\": \"STANDARD\",\n \"retentionDays\": 123,\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyChat
Create a new chat channel
POST
/
chat
/
channels
Create a new chat channel
curl --request POST \
--url https://api.engagefabric.com/chat/channels \
--header 'Content-Type: application/json' \
--data '
{
"name": "General",
"description": "<string>",
"type": "PROJECT",
"maxMessageLength": 1000,
"rateLimit": 30,
"slowModeSeconds": 123,
"profanityFilterEnabled": true,
"moderationLevel": "STANDARD",
"retentionDays": 123,
"metadata": {}
}
'import requests
url = "https://api.engagefabric.com/chat/channels"
payload = {
"name": "General",
"description": "<string>",
"type": "PROJECT",
"maxMessageLength": 1000,
"rateLimit": 30,
"slowModeSeconds": 123,
"profanityFilterEnabled": True,
"moderationLevel": "STANDARD",
"retentionDays": 123,
"metadata": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'General',
description: '<string>',
type: 'PROJECT',
maxMessageLength: 1000,
rateLimit: 30,
slowModeSeconds: 123,
profanityFilterEnabled: true,
moderationLevel: 'STANDARD',
retentionDays: 123,
metadata: {}
})
};
fetch('https://api.engagefabric.com/chat/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engagefabric.com/chat/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'General',
'description' => '<string>',
'type' => 'PROJECT',
'maxMessageLength' => 1000,
'rateLimit' => 30,
'slowModeSeconds' => 123,
'profanityFilterEnabled' => true,
'moderationLevel' => 'STANDARD',
'retentionDays' => 123,
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.engagefabric.com/chat/channels"
payload := strings.NewReader("{\n \"name\": \"General\",\n \"description\": \"<string>\",\n \"type\": \"PROJECT\",\n \"maxMessageLength\": 1000,\n \"rateLimit\": 30,\n \"slowModeSeconds\": 123,\n \"profanityFilterEnabled\": true,\n \"moderationLevel\": \"STANDARD\",\n \"retentionDays\": 123,\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engagefabric.com/chat/channels")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"General\",\n \"description\": \"<string>\",\n \"type\": \"PROJECT\",\n \"maxMessageLength\": 1000,\n \"rateLimit\": 30,\n \"slowModeSeconds\": 123,\n \"profanityFilterEnabled\": true,\n \"moderationLevel\": \"STANDARD\",\n \"retentionDays\": 123,\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/chat/channels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"General\",\n \"description\": \"<string>\",\n \"type\": \"PROJECT\",\n \"maxMessageLength\": 1000,\n \"rateLimit\": 30,\n \"slowModeSeconds\": 123,\n \"profanityFilterEnabled\": true,\n \"moderationLevel\": \"STANDARD\",\n \"retentionDays\": 123,\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Channel name
Example:
"General"
Channel description
Channel type
Available options:
PROJECT, LOBBY, DIRECT, GROUP Maximum message length
Required range:
1 <= x <= 10000Rate limit (messages per minute)
Required range:
1 <= x <= 600Slow mode (minimum seconds between messages)
Enable profanity filter
Moderation level
Available options:
NONE, LIGHT, STANDARD, STRICT Message retention in days
Additional metadata
Response
201
Channel created successfully
⌘I
