Skip to main content
Widgetic publishes a library for the API in eight languages. Each one is generated from the same OpenAPI description as the API reference, so every public endpoint is a method with the same name and the same arguments in every language, and an answer has the same shape.
A library holds your API key, so use it on a server, in a script or in a build, and never in a web page or in an app you give to others. To show a widget on a page you need no key: use the embed script.

The libraries

To install one and make a first call, go to Get started.

Updating a library

Lock the version your project uses, so an update is something you do and not something that happens: a lock file (package-lock.json, go.sum, Gemfile.lock, composer.lock), == in a pip requirements file, or an exact <version> in Maven. A new release follows the API: it can add calls, and it can change the arguments of one, so read the changelog before you update.

When a version is too old

The API refuses a call from a version of the TypeScript library, or of the CLI, that it no longer supports, with 426 Upgrade Required. These clients say which version they are in a header, and the API compares it with the oldest one it still serves. The answer is the usual error envelope: code is UPGRADE_REQUIRED, and details holds sdk, currentVersion, minimumVersion and upgradeCommand. Update the package, and send the call again. The API does not make this check for the other languages, or for a call you send yourself.

Pick the right tool

Other packages

Next steps

Get started

Install a library, set your key and make a first call

Requests and errors

Paging, safe retries, and what to catch in each language

API classes

Which class holds which calls, and how a call is named

API reference

Every endpoint, with samples in cURL, seven languages and the CLI
A library is missing a call, or does something this page does not say? Write to the support team with the name and the version of the library.