This API allows you to programmatically create Discord text and voice channels with an integrated ticket system, category management, and flexible user permissions.
To begin using the API, you'll need the base URL and your unique API key for authentication.
https://unitednetworks9087-api.vercel.app/api/v1
API requests are authenticated using a bearer API key. Include your key in the X-API-Key header of every request.
X-API-Key: HGFGJFDJHGJFDHGJNDFJGDFNLGDFGLDFNJGLKDFNJLGNF
POST /channels/create
{
"name": "support-request",
"type": "text",
"isPrivate": false,
"category": "Support Tickets",
"allowedUsers": ["username1", "123456789012345678"],
"useTicketSystem": true,
"topic": "Customer support channel",
"slowMode": 5
}
{
"success": true,
"message": "Support ticket \"ticket-0001\" created successfully in Support Tickets!",
"data": {
"channel": {
"id": "1234567890123456789",
"name": "ticket-0001",
"type": "text",
"guild_id": "987654321098765432",
"topic": "Support ticket created via API",
"category": "Support Tickets",
"isPrivate": false,
"isTicket": true
},
"links": {
"discord": "https://discord.com/channels/987654321098765432/1234567890123456789",
"web": "https://discord.com/channels/987654321098765432/1234567890123456789"
}
}
}
{
"success": false,
"error": "Invalid API key provided.",
"code": "UNAUTHORIZED"
}
const API_URL = 'https://unitednetworks9087-api.vercel.app/api/v1/channels/create';
const API_KEY = 'HGFGJFDJHGJFDHGJNDFJGDFNLGDFGLDFNJGLKDFNJLGNF';
async function createTicket() {
const response = await fetch(API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-API-Key': API_KEY },
body: JSON.stringify({
useTicketSystem: true,
category: 'Support Tickets',
isPrivate: true,
allowedUsers: ['support_agent', 'customer_john'],
topic: 'Customer support request',
type: 'text'
})
});
const data = await response.json();
if (data.success) console.log('Ticket:', data.data.channel.name);
}
import requests, json
API_URL = 'https://unitednetworks9087-api.vercel.app/api/v1/channels/create'
API_KEY = 'HGFGJFDJHGJFDHGJNDFJGDFNLGDFGLDFNJGLKDFNJLGNF'
headers = { 'Content-Type': 'application/json', 'X-API-Key': API_KEY }
payload = {
'useTicketSystem': True,
'category': 'Support Tickets',
'isPrivate': True,
'allowedUsers': ['support_agent', '123456789012345678'],
'topic': 'Customer support request',
'type': 'text'
}
response = requests.post(API_URL, data=json.dumps(payload), headers=headers)
print(response.json())
curl -X POST 'https://unitednetworks9087-api.vercel.app/api/v1/channels/create' \
-H "Content-Type: application/json" \
-H 'X-API-Key: HGFGJFDJHGJFDHGJNDFJGDFNLGDFGLDFNJGLKDFNJLGNF' \
-d '{
"name": "private-discussion",
"type": "text",
"category": "Private Channels",
"isPrivate": true,
"allowedUsers": ["team_lead", "project_manager", "developer_alice"],
"topic": "Private team discussion"
}'