Backwood Bans API
Secure, efficient ban management for gaming & Discord communities.
Browse EndpointsAPI Endpoints
📋
POST
POST /api/check_ban
Check if a user is currently banned.
Request
{
"user_id": "string"
}
Response
{
"banned": boolean,
"reason": "string",
"expires": "timestamp"
}
➕
POST
POST /api/add_ban
Add a new ban to the system.
Request
{
"user_id": "string",
"reason": "string",
"duration": number
}
Response
{
"success": boolean,
"ban_id": "string"
}
Quick Examples
cURL Example: Check Ban
curl -X POST https://backwoodbans.com/api/check_ban \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id":"123456789"}'
cURL Example: Add Ban
curl -X POST https://backwoodbans.com/api/add_ban \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id":"123456789","reason":"Toxic behavior","duration":3600}'