ThinkerDevelopers

Thinker API reference

The Thinker API runs Thinker's naming engine from your own code. Send a brief and get back up to five names that passed the domain and handle checks, each with its origin, its sources and what the availability check found. It is the same engine as the Thinker app.

Basics

Base URL: https://thinker.build/api/v1

Every request takes an API key in the Authorization header, and every body is JSON.

bash
curl https://thinker.build/api/v1/account \
  -H "Authorization: Bearer thk_test_..."

Call the API from your server, never from a browser or a mobile app: anyone who has a live key can spend its account's credits.

The API is versioned in the path. Within v1, changes only add things (new fields, new optional parameters, new event types), so ignore fields you don't know.

Keys

Create keys on the Keys page. Each key has a name, a mode and scopes. Its secret is shown once, when you create it; Thinker keeps only a hash.

ModePrefixWhat a round does
Livethk_live_Runs the real naming engine. Costs 1 credit.
Testthk_test_Returns a fixed sample round at once. Free.

Test rounds use the same request and response shapes as live ones, so you can build your whole integration with a test key. Their names are real words with real etymologies, but their domains use the reserved .example domain: test rounds never check availability.

ScopeAllows
names:writePOST /v1/names
names:readGET /v1/names and GET /v1/names/{id}

A new key gets both scopes unless you untick one. GET /v1/account works with any scope. A key only sees its own account's rounds, and only rounds of its own mode: a live key can't read test rounds and the other way round. A key's name is 1 to 60 characters, and you can have up to 10 active keys. Revoking a key is immediate and permanent.

Keeping keys safe

A live key spends your credits, so treat it like a password.

  • Keep it on your server. Call the API from your backend. Never put a key in a browser, a mobile app or any code you ship to users; the API sends no CORS headers, so browsers can't call it directly.
  • Keep it out of code and URLs. Load it from an environment variable or a secret manager, never commit it, and send it only in the Authorization header. The API never reads a key from a query string.
  • Give each use its own key. Separate keys per app and environment, with only the scopes each needs (a key that only reads rounds needs only names:read), so you can revoke one without breaking the rest. Develop with a thk_test_ key.
  • Rotate without downtime. Create the new key, deploy it, check its "last used" time on the Keys page, then revoke the old one.
  • If a key leaks, revoke it at once on the Keys page. Revoking is immediate, and you can set a spending cap to limit what any key can spend in a month.

What Thinker does on its side: keys are about 190 bits of randomness from a cryptographic generator, only their SHA-256 hash is stored, and the full key is shown once and never again. Every new live key sends an email to the account. A revoked key gets the same 401 as one that never existed, no response repeats the key it was sent, and repeated requests with bad keys from one client are throttled with 429. Deleting your Thinker account revokes all its keys.

Run a round

POST /v1/names

FieldTypeNotes
briefstring, requiredWhat you are naming, who it is for, how it should feel. 10 to 2,000 characters.
audiencestringUp to 300 characters.
categorystringUp to 300 characters, e.g. fintech.
marketsstringUp to 300 characters, e.g. US, UK.
linguistic_flavorstringUp to 300 characters, e.g. Latin roots.
tonesstring arrayUp to 12 items of up to 60 characters.
stylesstring arraySame limits.
words_to_includestring arraySame limits.
words_to_avoidstring arraySame limits. The engine is told to keep these out of every name.
differentiate_fromstring arrayCompetitors or names to stay away from.
streambooleantrue for Server-Sent Events. Default false.

Unknown fields are rejected with a 400, so a typo never silently changes a round.

bash
curl https://thinker.build/api/v1/names \
  -H "Authorization: Bearer thk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a90-order-1234" \
  -d '{
    "brief": "A budgeting app for freelancers who hate spreadsheets",
    "audience": "freelance designers and developers",
    "tones": ["calm", "confident"],
    "differentiate_from": ["Mint", "YNAB"]
  }'

A live round takes 30 to 120 seconds. Keep the connection open and set your HTTP client's timeout to at least 300 seconds.

  • By default the response is 200 with the finished round. While the round runs, the server writes a space every 10 seconds so proxies don't close an idle connection. Leading whitespace is valid JSON, so any JSON parser reads the body as usual.
  • With "stream": true the response is text/event-stream. See Streaming.

Once a round has started, the status code is 200 even if the round fails. Read the round's status: a round that ran but found no names is failed, with credits_charged: 0 and the reason in error.

If the connection drops, the round stops, is marked failed and its credit is refunded. A round still running after 10 minutes is also marked failed and refunded. GET /v1/names/{id} always shows the round's last state.

Idempotency

Send an Idempotency-Key header (1 to 255 characters, unique per request you mean) to make a retry safe. A retry with the same key and the same brief within 24 hours returns the original round as JSON, with an Idempotent-Replayed: true header, and is not charged again. The stream flag is not part of the comparison. The same key with a different brief is a 409. Keys are per API key.

A replay returns the original round as it is now. A retry while the original is still running returns it as running: poll GET /v1/names/{id} for the result. A retry after the original failed returns the failed round: to run the brief again, send a new Idempotency-Key.

Streaming

With "stream": true you get these events, in order:

EventData
roundThe round object, status: "running", no names yet.
status{ "message": "Searching: ..." }, progress text for people. Don't parse it.
nameOne name object, each time a name passes its checks.
doneThe finished round object, status: "succeeded".
errorThe finished round object, status: "failed", with error set.

Lines starting with : are keep-alive comments; SSE clients skip them.

The round object

json
{
  "id": "rnd_4f9c2a7e1bQw8LmZx3Ty",
  "object": "naming_round",
  "livemode": true,
  "status": "succeeded",
  "brief": { "brief": "A budgeting app for freelancers who hate spreadsheets" },
  "names": [
    {
      "name": "Tally",
      "tagline": "Money that adds up",
      "origin": "From Anglo-French tallie and Latin talea, a cut stick...",
      "why_it_works": "A short, familiar word whose history is about keeping honest accounts.",
      "sources": ["tally"],
      "style": "direct",
      "domains": { "available": ["tally.money", "gettally.com"] },
      "handles": [
        { "platform": "instagram", "status": "taken", "alternatives": ["tallyapp"] },
        { "platform": "tiktok", "status": "available", "alternatives": [] }
      ]
    }
  ],
  "credits_charged": 1,
  "error": null,
  "created_at": "2026-10-28T12:00:00.000Z",
  "completed_at": "2026-10-28T12:01:12.000Z"
}
FieldNotes
idStarts with rnd_.
livemodetrue for rounds from a live key.
statusrunning, succeeded or failed.
briefThe brief as Thinker read it (trimmed, empty fields dropped).
namesUp to five names, in the order they passed. Empty while running and on failure.
credits_charged1 for a live round that ran or is running, 0 for test rounds and refunded rounds.
errorWhy a failed round failed, in words you can show people. null otherwise.
created_atWhen the round started (ISO 8601, UTC).
completed_atWhen it finished, or null while it runs.

Each name:

FieldNotes
nameThe name, capitalized as intended.
taglineA short line to go with it.
originWhere the name comes from: the source word, its language and its meaning.
why_it_worksWhy it fits the brief.
sourcesThe source entries the name was built from.
styleHow it was made: direct (a source word used as is), derived, compound, portmanteau or wildcard. requested marks a name your brief brought to be checked; it is returned even when taken.
domains.availableDomains the availability check found unregistered when the round ran. .com, .co, .io, .ai, .app, .dev, .net and .org come first, in that order.
handlesPer platform (tiktok, instagram, twitter, pinterest): available, taken or unknown, plus available alternatives.

Availability is what the check saw when the round ran. Domains and handles change hands, so check again before you buy or register.

Get a round

GET /v1/names/{id} returns one round. A round from another account, or from the other mode, is a 404.

List rounds

GET /v1/names?limit=20&starting_after=rnd_... returns the account's rounds for the key's mode, newest first.

json
{ "object": "list", "data": [ { "id": "rnd_...", "object": "naming_round" } ], "has_more": true }

limit is 1 to 100 (default 20). To get the next page, pass the last round's id as starting_after. A starting_after that matches none of the account's rounds returns an empty page.

Account

GET /v1/account returns the calling key and the account's API credits.

json
{
  "object": "account",
  "livemode": true,
  "credits": 412,
  "key": { "id": "key_...", "name": "Production server", "mode": "live", "scopes": ["names:read", "names:write"], "created_at": "2026-10-28T12:00:00.000Z" },
  "limits": { "requests_per_minute": 120, "rounds_per_minute": 20, "rounds_per_day": 500, "concurrent_rounds": 3 }
}

Errors

Errors other than a failed round come back as:

json
{ "error": { "type": "insufficient_credits", "message": "This account has no API credits left. Buy credits at https://thinker.build/developers/billing." } }
StatusTypeWhen
400invalid_requestThe body or a parameter is invalid. The message says which.
401invalid_keyNo key, a malformed key, or a key that is unknown or revoked.
402insufficient_creditsThe account has no API credits for a live round.
402spending_cap_reachedLive rounds this month reached the account's spending cap. It resets on the first of next month (UTC), or raise or remove it on the Usage page.
403missing_scopeThe key lacks the scope this endpoint needs.
404not_foundNo such round for this key's account and mode.
409idempotency_conflictThe Idempotency-Key was used with a different body.
429rate_limitedA rate limit, the running-rounds limit, or too many requests with bad keys from one client. The running-rounds limit applies per account and across the whole API: when the API as a whole is running as many rounds as it can, the message says so. Wait for Retry-After seconds.
500server_errorSomething went wrong on Thinker's side. Retry after a short wait.
503at_capacityThe API hit its daily capacity. Retry after Retry-After seconds.

Rate limits

LimitValue
Requests per key120 a minute
Live rounds per key20 a minute
Test rounds per key60 a minute
Live rounds per account500 a UTC day (ask us for more)
Live rounds running at once3 per account
Requests with a missing, malformed, unknown or revoked key30 a minute per client IP

GET /v1/account returns the limits for the calling key: rounds_per_minute is 20 for a live key and 60 for a test key.

Every authenticated response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds) for the per-key request window. A 429 also carries Retry-After.

Credits and billing

Live rounds are prepaid. Buy credits on the Billing page; they never expire.

PackPricePer round
100 rounds$75$0.75
500 rounds$325$0.65
2,000 rounds$1,200$0.60

A live round holds 1 credit when it starts. If it fails, finds no names, times out or loses its connection, the credit comes back. API credits are separate from the credits in the Thinker app: they can't be used there, and app credits can't be used here.

Every purchase gets a receipt by email, and each one can be downloaded from the Billing page. When the balance drops to 10 credits or fewer, the account gets an email, once per purchase.

If a purchase is refunded, its credits are taken back in proportion to the amount refunded. If that leaves the balance below 1, live rounds answer 402 insufficient_credits until you buy more.

Spending cap

To limit what live rounds can spend, set a monthly cap on the Usage page: a whole number of credits from 1 to 1,000,000. Once this month's live rounds reach it, POST /v1/names with a live key answers 402 spending_cap_reached until the cap resets on the first of next month (UTC), or until you raise or remove it. Refunded rounds give their credit back to the month, and test keys are never capped. The account gets an email at 80% of the cap and when it is reached.

Examples

JavaScript

js
const res = await fetch("https://thinker.build/api/v1/names", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.THINKER_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({ brief: "A budgeting app for freelancers who hate spreadsheets" }),
  signal: AbortSignal.timeout(300_000),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const round = await res.json();
if (round.status === "failed") throw new Error(round.error);
for (const n of round.names) console.log(n.name, n.domains.available[0] ?? "", n.origin);

Python

python
import os, uuid, requests

res = requests.post(
    "https://thinker.build/api/v1/names",
    headers={
        "Authorization": f"Bearer {os.environ['THINKER_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={"brief": "A budgeting app for freelancers who hate spreadsheets"},
    timeout=300,
)
res.raise_for_status()
round_ = res.json()
for name in round_["names"]:
    print(name["name"], name["domains"]["available"], name["origin"])

Streaming with curl

bash
curl -N https://thinker.build/api/v1/names \
  -H "Authorization: Bearer thk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"brief": "A budgeting app for freelancers who hate spreadsheets", "stream": true}'