Modbot Docs
APIAPI referenceSupporters

Take in a Patreon membership message

POST/api/supporters/patreon

Patreon calls this when a membership is made, changed or deleted, and when a charge goes through or fails. The body is signed with the webhook secret from Patreon (hex HMAC-MD5 in X-Patreon-Signature); a message with no signature or the wrong one is refused (401) and nothing is read. An active patron with a tier gets that tier's roles; a patron whose charge was declined keeps them until the Patreon setting's number of days after the charge; a pledge that ended keeps them until the paid month is up and that number of days more (or for good, when the setting is never). Anything else is answered 200 and ignored. Answers 404 while Patreon is off or no secret is saved.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*unknown

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/api/supporters/patreon"
Empty

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.