Manage webhooks and subscribed users
⏱ 10 min read
The enterprise Account Activity API provides you webhook-based JSON messages any time there are events associated with Twitter accounts subscribed to your service. Twitter delivers those activities to your registered webhook. In the following steps, you will learn how to manage webhooks and subscribed users.
You will learn how to register, view, and remove, both webhooks and subscribed users. We'll be using simple cURL commands to make requests to the various API endpoints. cURL is a command-line tool for getting or sending requests using the URL syntax.
You will need:
- A registered Twitter app - register here
- A bearer token - learn more
- A webhook that passes a Challenge-Response Check (CRC) - learn more
- An enterprise account - apply here
Before you get started, we recommend you check out our Github repo here that provides a sample web app and helper scripts to get started with Twitter's Account Activity API
Managing a webhook:
Using a webhook provides you the ability to subscribe to realtime activities related to a user account through a single connection.
Managing subscribed users:
Once you've registered a Webhook, you can add a subscribed user to the Account Activity API to begin receiving their account activities.
Great job! You should now able to manage your webhooks and subscribed users.
Referenced articles
- Overview of Challenge-Response Check (CRC)
- Account Activity Data Types
- Managing Webhooks and Subscriptions
Next Steps
- Discover more about the Account Activity API
- Join the conversation on Twitter community forums
- Explore our sample code:
- Enterprise Account Activity API dashboard, a node web app that displays webhook events using the enterprise tier of the Account Activity API and includes Replay functionality.