Getting started

Whet API

Whet's print tools over HTTP, starting with font identification. One key per organisation, a scope per API, the same errors everywhere.

View as Markdown

Base URL

Source codetext
https://whet.design/api/v1

Authentication

Create a key in the Whet app under Developers. Keys belong to your organisation, not to a person, start with whet_sk_ and are shown once. Keep them on a server, never in a browser or an app bundle.

Source codehttp
Authorization: Bearer whet_sk_…

Quick start

  1. Sign in and create a key under Developers.
  2. Export it as WHET_API_KEY and send one request.
  3. Read decision in the answer before anything else.
identify.shbash
curl https://whet.design/api/v1/fonts/identify \
  -H "Authorization: Bearer $WHET_API_KEY" \
  -F image=@word.png \
  -F text="MOTORS"

APIs

APIEndpointScopeStatus
Font identificationPOST /api/v1/fonts/identifyfonts:identifyBeta · free
Logo vectorisingPOST /api/v1/logos/vectoriselogos:vectoriseNot yet available
Background removalPOST /api/v1/artwork/remove-backgroundartwork:remove-backgroundNot yet available
PreflightPOST /api/v1/artwork/preflightartwork:preflightNot yet available

Rate limits

Free during beta. Per key: 30 requests per rolling minute, 4 in flight at once and 1,000 successful identifications per rolling 24 hours. Over a limit the API answers 429 with Retry-After in seconds.

Request ids

Every response carries X-Request-Id, and JSON bodies a request_id. Log it; quote it when you ask about an answer.

Errors

Errors are JSON with a stable code, a message for people and a docs_url. Branch on the code. The full list, with which ones to retry: Errors.

Versioning

The version is in the path: /api/v1. Fields may be added to an answer at any time; within v1 none is removed or renamed, and the meaning of a field does not change.

For agents and tools