POST /2/activity/subscriptions
Creates a subscription for an X activity event
Servers
- https://api.x.com
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
filter |
Object | Yes |
An XAA subscription filter. |
filter.direction |
String | No |
Optional direction filter for directional events. Valid values:
|
filter.keyword |
String | No |
A keyword to filter on. |
filter.user_id |
String | No |
Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers. |
event_type |
String | Yes |
Valid values:
|
tag |
String | No | |
webhook_id |
String | No |
The unique identifier of this webhook config. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.