Overview
The Webhooks API allows you to manage Discord webhook integrations. All endpoints require authentication and follow RESTful conventions.List All Webhooks
/webhooks
Retrieves all webhooks owned by or shared with the authenticated user.
Query Parameters
Filter by ownership:
owned, shared, or allResponse
Array of webhook objects
Unique webhook identifier
Webhook display name
Discord webhook URL (masked in responses)
Webhook avatar URL
Webhook description
Discord server (guild) ID
Discord channel ID
Array of tag strings
Whether current user owns this webhook
User’s permission:
owner, edit, send, or viewTotal messages sent through this webhook
Response Example
Create Webhook
POST/webhooks
Creates a new webhook after validating it with Discord’s API.
Request Body
Discord webhook URL. Must start with
https://discord.com/api/webhooks/ or https://discordapp.com/api/webhooks/Webhook name (auto-filled from Discord if not provided)
Avatar URL (auto-filled from Discord if not provided)
Webhook description (max 1000 characters)
Array of tag strings (max 50 characters each)
Response
Returns302 redirect to /webhooks with success message.
Get Webhook Details
GET/webhooks/{id}
Retrieve detailed information about a specific webhook.
Path Parameters
Webhook ID
Response
Webhook details with statistics
Response
Update Webhook
PUT/PATCH/webhooks/{id}
Update webhook details. If webhook URL is changed, it will be validated with Discord.
Path Parameters
Webhook ID
Request Body
Discord webhook URL
Webhook name
Avatar URL
Description (max 1000 characters)
Array of tags
Delete Webhook
DELETE/webhooks/{id}
Permanently delete a webhook. Only the owner can delete a webhook.
Path Parameters
Webhook ID
Response
Returns302 redirect to /webhooks with success message.
Validate Webhook URL
POST/webhooks/validate
Validate a Discord webhook URL with Discord’s API before saving.
Request Body
Discord webhook URL to validate
Response
Whether validation succeeded
Success Response
Error Response
Get Message History
GET/webhooks/{id}/history
Retrieve message history for a webhook with pagination.
Path Parameters
Webhook ID
Query Parameters
Page number
Response
Response
Authorization
Webhook operations require specific permissions:| Operation | Permission Required |
|---|---|
| List | Any (shows owned + shared) |
| View | view, send, edit, or owner |
| Create | Authenticated user |
| Update | edit or owner |
| Delete | owner only |
| Send | send, edit, or owner |
Error Codes
| Code | Description |
|---|---|
| 401 | Not authenticated |
| 403 | Insufficient permissions |
| 404 | Webhook not found |
| 422 | Validation error (invalid Discord URL, etc.) |
