twitter_api_request
Execute Twitter/X API requests through a safe relay using versioned request templates from the catalog, supporting reads and writes with follow-up verification for side effects.
Instructions
Execute one request against the signed-in Twitter/X relay. Get a current template from twitter_request_catalog first: GraphQL query IDs, features, field toggles, and variable names are versioned and operation-specific. Reads and writes use the same relay; confirm before side effects and verify writes with a follow-up read. HTTP 200 responses may still contain GraphQL errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body | |
| method | No | GET | |
| params | No | URL query parameters. Object values are JSON-encoded. | |
| headers | No | Optional request headers | |
| endpoint | Yes | Relay endpoint path, e.g. /i/api/graphql/... or /1.1/search/typeahead.json |