You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-api/account-activity/introduction.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The Account Activity API provides webhook-based JSON messages any time there are
46
46
47
47
### 1\. Create an X App
48
48
49
-
Create an X app with an approved developer account from the [developer portal](https://developer.x.com). If creating the app on behalf of your company, use a corporate X account.
49
+
Create an X app with an approved developer account from the [developer portal](https://developer.x.com/en/portal/products/enterprise). If creating the app on behalf of your company, use a corporate X account.
50
50
51
51
* Enable “Read, Write, and Access direct messages” on the permissions tab of your app page.
52
52
* On the "Keys and Access Tokens" tab, note your app’s **Consumer Key (API Key)**, **Consumer Token (API Secret)**, and **Bearer Token**.
@@ -82,7 +82,7 @@ To validate that your app and webhook are configured correctly:
82
82
* If two subscribed users are in the same DM conversation, your webhook receives duplicate events (one per user). Use the for\_user\_id field to distinguish them.
83
83
* If multiple apps share the same webhook URL and user, events are sent multiple times (once per app).
84
84
* Your app should deduplicate events using the event ID to handle occasional duplicates.
85
-
***Example Code**: See the [Enterprise Account Activity API Setup](https://github.com/xdevplatform/account-activity-sample) for a Node.js web app that displays webhook events.
85
+
***Example Code**: See the [Account Activity API Setup](https://github.com/xdevplatform/account-activity-dashboard-enterprise/tree/master) for a web app that displays webhook events.
86
86
87
87
## Managing Subscribed Users (v2 API)
88
88
@@ -849,7 +849,7 @@ This ensures that applications can process the entire content of longform posts,
849
849
850
850
## Account Activity API Migrating from Legacy Enterprise to v2
851
851
852
-
See our Migration Guide\!
852
+
See our [Migration Guide](https://docs.x.com/x-api/account-activity/migrate/overview)!
853
853
854
854
## Frequently Asked Questions
855
855
@@ -863,11 +863,11 @@ The Account Activity API uses webhooks, delivering data in real-time without req
863
863
864
864
**I need development, staging, and production environments for Account Activity API, is this possible?**
865
865
866
-
Yes\!With Enterprise tiers, you can register multiple webhook URLs and manage subscriptions separately via the [V2 Webhooks API](https://developer.x.com/en/docs/webhooks).
866
+
Yes\!Tou can register multiple webhook URLs and manage subscriptions separately via the [V2 Webhooks API](https://docs.x.com/x-api/webhooks/introduction).
867
867
868
868
**Do you have any step-by-step guides on how to get set up with the Account Activity API?**
869
869
870
-
Yes\! See the [Getting Started with Webhooks guide](https://developer.x.com/en/docs/webhooks) and the [Account Activity API Sample Application](https://github.com/xdevplatform/account-activity-sample).
870
+
Yes\! See the [Getting Started with Webhooks guide](https://docs.x.com/x-api/webhooks/introduction) and the [Account Activity API Sample Application](https://github.com/m-rosinsky/XWebhookTest/blob/main/app.py).
871
871
872
872
**What authentication do I have to use with the Account Activity API?**
873
873
@@ -896,4 +896,4 @@ The webhook limit is set at the account level, not per app. For example, with th
896
896
| Deactivates a subscription using app-only OAuth | DELETE /2/account\_activity/webhooks/:webhook\_id/subscriptions/:user\_id/all |
897
897
| Creates a replay job | POST /2/account\_activity/replay/webhooks/:webhook\_id/subscriptions/all |
898
898
899
-
For webhook management endpoints (register, view, validate, delete), see the [V2 Webhooks API documentation](https://developer.x.com/en/docs/webhooks)
899
+
For webhook management endpoints (register, view, validate, delete), see the [V2 Webhooks API documentation](https://docs.x.com/x-api/webhooks/introduction)
0 commit comments