Call any WellSaid endpoint (advanced)
wellsaid_requestSend authenticated requests to any WellSaid API path, returning JSON as text or saving binary files to disk.
Instructions
Escape hatch for endpoints without a dedicated tool (e.g. replacement libraries). Makes an authenticated request to any path under the API base. JSON responses return as text; binary responses are saved to disk when save_as is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body. | |
| path | Yes | Path relative to the API base, e.g. "/tts/avatars". | |
| query | No | Query parameters. | |
| accept | No | Accept header, e.g. "audio/mpeg" for binary. | |
| method | No | HTTP method (default GET). | |
| save_as | No | If the response is binary, save it to this filename (basename only). | |
| output_dir | No |