x_api_request
Send directed X API requests with the exact method and path, for testing endpoints or as a fallback when no dedicated tool exists. Credentials and scope must be specified.
Instructions
Generic X API request fallback. Use when: you know the exact path and method or need to test a route before using a dedicated generated tool. Do not use when: x_schema_discovery already identified a matching x_api_* tool; the dedicated tool is safer and clearer. Risk: variable. Required permissions and prerequisites: choose a scope that has usable stored credentials in Vault. Provide preferredAuthType when you need to force bearer, OAuth2 user, or OAuth1 user auth. Environment-selection behavior: scopeTenantId plus scopeUserId or scopeAccountId resolve the principal credential source. If no specific scope is provided, the server default scope is used. Parameter formats and constraints: method and path are required; query and headers are JSON objects; body is JSON; multipartForm is only for multipart endpoints. Expected response shape: { ok, status, data: { method, path, url, status, contentType, authType, data } } Common failure conditions: unsupported auth type for the chosen stored profile, missing credentials, rate limits, or invalid path/body combinations. Example: {"method":"GET","path":"/2/users/by/username/xdevelopers","scopeTenantId":"default","scopeUserId":"default"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| query | No | ||
| method | Yes | ||
| headers | No | ||
| scopeUserId | No | ||
| credentialKey | No | ||
| multipartForm | No | ||
| scopeTenantId | No | ||
| scopeAccountId | No | ||
| authorizationKey | No | ||
| preferredAuthType | No |