Send notifications to Twitter
This guide explains how to send the notifications of Casdoor to a Twitter (X) user.
Learning outcomes
- Get the credentials of a Twitter app and the ID of the recipient.
- Add Twitter as a notification provider in Casdoor.
What you need
- A Twitter developer account
- Administrator access to the Casdoor admin console
Get the credentials
-
Create a Twitter app and copy the API key, the API secret, the access token, and the access token secret. See API key and secret.

-
Find the numeric user ID of the recipient. Twitter doesn't show it in its UI. Use a lookup service such as TweeterID.
Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Notificationand Type toTwitter. -
Fill in the fields:
Касдор Twitter Client ID API Key Client secret API Secret Client ID 2 Access Token Client secret 2 Access Token Secret Chat ID Twitter ID 
-
Click Send Testing Notification, and save the provider.