Use AI to process this documentCopy prompt
system/discord/
This endpoint handles posting to Discord through its webhooks feature. Consider using together with API feed/ to avoid solely publishing events on a single third-party service.
Methods & Response Codes
GETdiscord/returns list of registered webhooks
POSTdiscord/posts to Discord204: Discord failed404: webhook not registered503: registered webhook is inactive
discord/log/posts a specially formatted message to Discord204: Discord failed404: webhook not registered503: registered webhook is inactive
discord/webhook/auto-callsAPI discord/=> registers a webhook => auto-callsAPI discord/log/204: webhook already registered OR Discord failed
PATCHdiscord/webhook/(auto-callsAPI discord/) => enables OR disables a webhook => (auto-callsAPI discord/)204: registered webhook already enabled/disabled404: webhook not registered
DELETEdiscord/webhook/auto-callsAPI discord/=> deletes a registered webhook => auto-callsAPI discord/log/404: webhook not registered
Fields
POST discord/
* webhook_nameauthor: max 40 characters, defaults to "Particracy Legacy"avatar: image URL must be HTTPsmessage: max 240 characterscards: max 10 itemssubheading: max 40 characters* heading: max 140 charactersurlthumbnail: image URL must be HTTPssummary: max 240 characterscolumns: max 4inline: TRUE (default) | FALSE* heading: max 40 characters* summary: max 140 characters
footer: max 140 characters
POST discord/log/
webhook_name: default "central"* type: "success" | "failure" | "warning" | "neutral"* message: max 240 characters
POST discord/webhook/
* webhook_name* webhook_keyenabled: TRUE (default) | FALSE
PATCH discord/webhook/
* webhook_name* handler* enabled: TRUE | FALSE
DELETE discord/webhook/
* token* webhook_name* handlerexplanation: max 240 characters
Notes
- The "central" webhook cannot be disabled or deleted
< Back to docs / api