Skip to main content
Access Webhooks endpoints via client.webhooks() (WebhooksClient).

Methods

create

POST /2/webhooks Create Webhook Creates a new webhook configuration.

Parameters

Schemas.CreateWebhooksRequest
required
Request payload.
Returns: Schemas.CreateWebhooksResponse
POST /2/tweets/search/webhooks/{webhook_id} Create Stream Link Creates a link to deliver FilteredStream events to the given webhook.

Parameters

String
required
webhook_id (path parameter).
Returns: Schemas.CreateWebhooksStreamLinkResponse

createWebhookReplayJob

POST /2/webhooks/replay Create Replay Job for Webhook Creates a replay job to retrieve events from up to the past 24 hours for all events delivered or attempted to be delivered to the webhook.

Parameters

Schemas.CreateWebhookReplayJobRequest
required
Request payload.
Returns: Schemas.CreateWebhookReplayJobResponse

delete

DELETE /2/webhooks/{webhook_id} Delete Webhook Deletes an existing webhook configuration.

Parameters

String
required
webhook_id (path parameter).
Returns: Schemas.DeleteWebhooksResponse
DELETE /2/tweets/search/webhooks/{webhook_id} Delete Stream Link Deletes the link delivering FilteredStream events to the given webhook.

Parameters

String
required
webhook_id (path parameter).
Returns: Schemas.DeleteWebhooksStreamLinkResponse

get

GET /2/webhooks Get Webhook Get a list of webhook configs associated with a client app.

Parameters

Returns: Schemas.GetWebhooksResponse
GET /2/tweets/search/webhooks Get Stream Links Get a list of webhook links associated with a filtered stream ruleset.
Returns: Schemas.GetWebhooksStreamLinksResponse

validate

PUT /2/webhooks/{webhook_id} Validate Webhook Triggers a CRC check for a given webhook.

Parameters

String
required
webhook_id (path parameter).
Returns: Schemas.ValidateWebhooksResponse