Getting started
Examples
Calling the API from a shell, JavaScript and Python.
Shell
For anything longer than a line, send the body through a quoted heredoc so quotes, $ and backticks in the source reach the API untouched. This one pipes the result through jq:
JavaScript
With fetch, in Node 18+ or any runtime that has it:
A helper that tells request errors from program errors:
Python
With requests: