API reference

Base URL https://topnamed.com/api/v1 · every request carries Authorization: Bearer tn_live_…

Basics

Prepaid credits are debited per request in units: a full scan 4, a light scan 1, a fixes preview 1. Scans run asynchronously: the POST returns a job id, poll it until status is done. Send an Idempotency-Key header to retry safely without a second charge. A failed scan refunds its units.

StatusMeaning
401Missing, invalid or revoked key
402Not enough credits: top up at /account/api
429Rate limited; retry after a moment

post/scans

Start a scan (asynchronous)

ParameterInTypeNotes
Idempotency-Keyheaderstring
Body fieldTypeNotes
domain *string
lightbooleanLight scan, 1 unit
max_promptsintegermin 3 · max 30
enginesclaude | chatgpt | perplexity | gemini[]
custom_promptsstring[]up to 10
brand_termsstring[]up to 10
competitorsstring[]up to 10

Responses: 202 Job accepted · 400 Bad request · 401 Missing, invalid or revoked key · 402 Not enough credits · 429 Rate limited

curl -X POST https://topnamed.com/api/v1/scans \
  -H "Authorization: Bearer tn_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "example.com"}'

get/scans/{id}

Get a job and, when done, its result

ParameterInTypeNotes
id *pathstring

Responses: 200 Job · 404 Not found

curl https://topnamed.com/api/v1/scans/JOB_ID \
  -H "Authorization: Bearer tn_live_YOUR_KEY"

post/scans/{id}/fixes

Preview grounded fixes for up to 3 gaps of a finished scan (asynchronous, 1 unit, nothing published)

ParameterInTypeNotes
id *pathstring

Responses: 202 Job accepted · 404 Scan not found · 409 Scan not finished

curl -X POST https://topnamed.com/api/v1/scans/JOB_ID/fixes \
  -H "Authorization: Bearer tn_live_YOUR_KEY"

post/deploy-check

Builder deploy check: a light scan (1 unit) of a site that just went live

ParameterInTypeNotes
Idempotency-Keyheaderstringe.g. the deployment id
Body fieldTypeNotes
url *string
refstringpattern ^builder_[a-z0-9]{2,20}$

Responses: 202 Job accepted · 401 Missing or invalid key · 402 Not enough credits

curl -X POST https://topnamed.com/api/v1/deploy-check \
  -H "Authorization: Bearer tn_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

get/usage

Credit balance and this month's usage

Responses: 200 Usage

curl https://topnamed.com/api/v1/usage \
  -H "Authorization: Bearer tn_live_YOUR_KEY"

Keys and top-ups on your API page. MCP server for agents on the developers page.

Want AI assistants to name your business first? Two minutes to find out where you stand.