Twitter

Handle Initialize Authorization

post

Handle integration initialization request.

Body
or
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/twitter/integrations

No content

Handle Get Integration

get

Handle get integration request.

Path parameters
user_identifierstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/twitter/integrations/{user_identifier}

No content

Handle Select Integration

post

Handle integration selection request.

Path parameters
user_identifierstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/twitter/integrations/{user_identifier}

No content

Handle Remove Integration

delete

Handle integration removal request.

Path parameters
user_identifierstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
delete
/connectors/twitter/integrations/{user_identifier}

No content

Handle User Has Integration

get

Handle user integration existence check.

Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/twitter/integration-exists
200

Successful Response

No content

Auth Schema

get

Handle authentication schema request.

Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/twitter/auth-schema
200

Successful Response

No content

Success Authorize Callback

get

Handle successful authorization callback.

Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/connectors/twitter/success-authorize-callback
200

Successful Response

No content

Search

post

Search for recent tweets.

Args: request (TweetsRequest): The request object containing search parameters. http_headers (ExposedDefaultHeaders): The HTTP headers.

Returns: dict: The response from the Twitter API containing the search results.

Body

Request model for searching.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
querystring · max: 512Required

Search query string.

end_timeany ofOptional

End time in ISO 8601 format.

stringOptional
or
nullOptional
start_timeany ofOptional

Start time in ISO 8601 format.

stringOptional
or
nullOptional
sort_orderany ofOptional

Sort order for the results.

stringOptional
or
nullOptional
langany ofOptional

Language code for the results.

stringOptional
or
nullOptional
max_resultsany ofOptional

Number of results to return (10-100).

Default: 10
integer · min: 10 · max: 100Optional
or
nullOptional
tweet_fieldsany ofOptional

List of tweet fields.

string[]Optional
or
nullOptional
expansionsany ofOptional

List of expansions.

string[]Optional
or
nullOptional
media_fieldsany ofOptional

List of media fields.

string[]Optional
or
nullOptional
since_idany ofOptional

Get results with a Tweet ID greater than the specified ID.

stringOptional
or
nullOptional
until_idany ofOptional

Get results with a Tweet ID less than the specified ID.

stringOptional
or
nullOptional
next_tokenany ofOptional

Used to get the next page of results from the API.

stringOptional
or
nullOptional
place_fieldsany ofOptional

Select specific place fields to include in the returned Tweet.

string[]Optional
or
nullOptional
poll_fieldsany ofOptional

Select specific poll fields to include in the returned Tweet.

string[]Optional
or
nullOptional
user_fieldsany ofOptional

Select specific user fields to include in the returned Space or Tweet.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/twitter/tweet_search

No content

Get Tweets

post

Retrieve multiple tweets by their IDs.

Args: request (GetTweetsRequest): The request object containing a list of tweet IDs and optional fields. http_headers (ExposedDefaultHeaders): The HTTP headers.

Returns: dict: The response from the Twitter API containing the requested tweets.

Body

Request model for retrieving multiple tweets by their IDs.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
idsstring[] · max: 100Required

A list of tweet IDs to retrieve.

expansionsany ofOptional

Optional list of expansions to include in the response.

string[]Optional
or
nullOptional
media_fieldsany ofOptional

Optional list of media fields to return.

string[]Optional
or
nullOptional
place_fieldsany ofOptional

Optional list of place fields to return.

string[]Optional
or
nullOptional
poll_fieldsany ofOptional

Optional list of poll fields to return.

string[]Optional
or
nullOptional
tweet_fieldsany ofOptional

Optional list of tweet fields to return.

string[]Optional
or
nullOptional
user_fieldsany ofOptional

Optional list of user fields to return.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/twitter/get_tweets

No content

Get Thread

post

Retrieve a thread of tweets based on the provided tweet ID.

Args: request (GetThreadRequest): The request object containing the tweet ID for the thread. http_headers (ExposedDefaultHeaders): The HTTP headers.

Returns: dict: The response from the Twitter API containing the tweets in the thread.

Body

Request model for retrieving multiple tweets by their IDs.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
idstringRequired

The ID of the tweet conversation.

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/twitter/get_thread

No content

Get Users

post

This endpoint returns information about users. Specify users by ID(s) / username(s).

Args: request: The request object. http_headers (ExposedDefaultHeaders): The HTTP headers.

Note:

  • Only one of the four fields must be provided to successfully make a request.

  • If multiple fields are provided, the request will throw an error.

Body

Request model for searching user by ID(s) / username(s).

This model allows the user to specify either user ID(s) or username(s) to retrieve user information(s). It enforces that at least one of the two fields must be provided to successfully make a request.

Note: - Only one of the four fields must be provided to successfully make a request. - If multiple fields are provided, the request will throw an error.

response_fieldsany ofOptional

List of dot-notation field paths to include in the response. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use: Specify field paths using dot notation to include only those fields in the response. Supports nested fields (e.g., 'user.name', 'payload.headers'). When filtering lists, each item is filtered recursively. If a top-level field is specified without sub-fields, the entire value is included. If nested fields are specified, only those nested fields are included.

Example: ["id","name","status"]
string[]Optional
or
nullOptional
response_filtersany ofOptional

Filters to apply to response items. This is a post-processing filter that does not alter the data request nor the 3rd party response data.

How to use:

  • field_name: The field to filter on. Supports dot notation for nested fields (e.g., 'creator.age'). When filtering list items, this filters the items themselves. When using root, this filters elements within the array at the root path.
  • root: Optional path to an array of dictionaries. When set, filters the array elements at this path instead of filtering the items themselves. Use dot notation (e.g., 'payload.headers'). Important: The root path must target an array of dictionaries (the last array before filtering by field_name value), and field_name should be a field within those dictionary elements. In nested array structures, root should point to the final array of dictionaries that contain the field_name field. Otherwise no filtering will occur.
Example: [{"field_name":"status","type":"string_list","values":["open","in_progress"]}]
or
nullOptional
idany ofOptional

User ID to retrieve; must be provided if username is absent.

stringOptional
or
nullOptional
idsany ofOptional

User IDs to retrieve; must be provided if usernames are absent.

string[]Optional
or
nullOptional
usernameany ofOptional

Username to retrieve; must be provided if id is absent.

stringOptional
or
nullOptional
usernamesany ofOptional

Usernames to retrieve; must be provided if IDs are absent.

string[]Optional
or
nullOptional
user_fieldsany ofOptional

A comma separated list of User fields to display.

string[]Optional
or
nullOptional
expansionsany ofOptional

A comma separated list of fields to expand.

string[]Optional
or
nullOptional
tweet_fieldsany ofOptional

A comma separated list of Tweet fields to display.

string[]Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/connectors/twitter/get-users

No content

Last updated