POST
/
2
/
tweets
/
search
/
webhooks
/
{webhook_id}
Create stream link
curl --request POST \
  --url https://api.x.com/2/tweets/search/webhooks/{webhook_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "provisioned": true
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhook_id
string
required

The webhook ID to link to your FilteredStream ruleset.

Example:

"1146654567674912769"

Query Parameters

tweet.fields
string

A comma separated list of Tweet fields to display.

expansions
string

A comma separated list of fields to expand.

media.fields
string

A comma separated list of Media fields to display.

poll.fields
string

A comma separated list of Poll fields to display.

user.fields
string

A comma separated list of User fields to display.

place.fields
string

A comma separated list of Place fields to display.

Response

The request has succeeded.

The response is of type object.