Discord Channel Creator API 🚀

This API allows you to programmatically create Discord text and voice channels with an integrated ticket system, category management, and flexible user permissions.

Getting Started

To begin using the API, you'll need the base URL and your unique API key for authentication.

Base URL

https://unitednetworks9087-api.vercel.app/api/v1

Authentication 🔑

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
🔒 Security Note: Your API key is a secret! Do not expose it in any client-side code. Use environment variables or a secure key management system.

Endpoints

Create a Channel

POST /channels/create

Request Body Example

{
  "name": "support-request",
  "type": "text",
  "isPrivate": false,
  "category": "Support Tickets",
  "allowedUsers": ["username1", "123456789012345678"],
  "useTicketSystem": true,
  "topic": "Customer support channel",
  "slowMode": 5
}

Responses

✅ Success Response (200 OK)
{
  "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"
    }
  }
}
❌ Error Response (401 Unauthorized)
{
  "success": false,
  "error": "Invalid API key provided.",
  "code": "UNAUTHORIZED"
}

Code Examples

JavaScript (Node.js)

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);
}

Python

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

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"
}'