TypeScript example
The following example uses the standardfetch API.
Run this code only in a trusted server-side environment.
Do not expose THE_WO_API_KEY in browser or mobile application bundles.
Environment variables
Example
Important integration rules
Keep the API key server-side. Useerror.code for programmatic error handling instead of matching the
human-readable message.
Keep error.requestId when reporting failed requests.
Do not assume that a failed create request can always be retried
idempotently.
