Skip to content

Commit 2901058

Browse files
authored
Update introduction.mdx
1 parent 308e5fc commit 2901058

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

x-api/webhooks/introduction.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
---
2-
31
# V2 Webhooks API
42

53
[V2 Account Activity API](#v2-webhooks-api)
@@ -60,7 +58,7 @@ In order to register a new webhook associated with your X app, you’ll need to
6058
* A first step is writing code that receives a X Challenge Response Check (CRC) GET request and responds with a properly formatted JSON response. 
6159
* Register your webhook URL. You will make a POST request to a /2/webhooks endpoint with the URL in the json body. When you make this request X will send a CRC request to your web app.
6260
* When a webhook is successfully registered, the response will include a webhook id. This webhook id is needed later when making requests to products that support webhooks. 
63-
* X will send POST requests containing events to the URL you registered. These events will be encoded in JSON. See [HERE](http:///x-api/account-activity/fundamentals#account-activity-data-object-structure) for example webhook JSON payloads.
61+
* X will send POST requests containing events to the URL you registered. These events will be encoded in JSON. See [here](https://docs.x.com/x-api/account-activity/introduction#account-activity-data-object-structure) for example webhook JSON payloads.
6462

6563
#### Optional: Use xurl for testing
6664

@@ -392,4 +390,4 @@ Example JSON Response Body:
392390
* [Simple webhook server](https://github.com/m-rosinsky/XWebhookTest/blob/main/app.py)
393391
* A single python script that shows you how to respond to the CRC check and accept POST events.
394392
* [Account Activity API sample dashboard](https://github.com/xdevplatform/account-activity-dashboard-enterprise/tree/master)
395-
* A web app written with [bun.sh](https://bun.sh) that allows you to manage webhooks, subscriptions, and receive live events directly in the app.
393+
* A web app written with [bun.sh](https://bun.sh) that allows you to manage webhooks, subscriptions, and receive live events directly in the app.

0 commit comments

Comments
 (0)