Skip to content
API v1

Citeto API reference

Base URL https://citeto.com · JSON over HTTPS

The Citeto API runs the same AI readiness check as the free check page. Send a URL with POST /api/v1/checks, then poll GET /api/v1/checks/:id until the status is done. Every request needs the header Authorization: Bearer <key>.

Authentication

Owners and admins create keys under Workspace settings → API keys. A key starts with ck_live_ and is shown only once; if it is lost, revoke it and create another. A workspace can have up to 5 active keys. A missing, malformed or revoked key returns 401.

HTTP
Authorization: Bearer ck_live_…

Start a check

POST/api/v1/checks

Send JSON with the url to check and, optionally, a competitor on a different host. The response comes back at once; the check runs in the background and usually takes about 30 seconds.

Request body

urlstringrequired
Address of the site to check, http or https.
competitorstringoptional
A second site to check side by side. Must be a different host from url.
Request
curl -X POST https://citeto.com/api/v1/checks \
  -H "Authorization: Bearer $CITETO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","competitor":"https://example.org"}'

Response

idstring
Check id. Use it with GET /api/v1/checks/:id.
competitorIdstring | null
Id of the competitor check, or null.
statusstring
queued, running, done or failed.
chargedMicroUsdinteger
Credit charged, in millionths of a USD. 0 while billing is off.
statusUrlstring
Full URL to poll for the result.
shareUrlstring
Public result page you can send to a person.
Example response · 200
{
  "id": "xmpl_4fGq9TzR2bWk7LcYp",
  "competitorId": null,
  "status": "queued",
  "chargedMicroUsd": 0,
  "statusUrl": "https://citeto.com/api/v1/checks/xmpl_4fGq9TzR2bWk7LcYp",
  "shareUrl": "https://citeto.com/check/r/xmpl_4fGq9TzR2bWk7LcYp"
}

If the same host was checked in the last 10 minutes, the stored result is reused and the status is done straight away. A request that joins a check already running creates nothing and is not charged.

Get a check

GET/api/v1/checks/:id

Poll every few seconds until status is done or failed. Reading a check is never charged. The id is the same token as in the share link, which stays valid for 30 days.

Request
curl https://citeto.com/api/v1/checks/xmpl_4fGq9TzR2bWk7LcYp \
  -H "Authorization: Bearer $CITETO_API_KEY"

Response

idstring
Check id. Use it with GET /api/v1/checks/:id.
pairIdstring | null
Shared id of a check and its competitor, or null.
rolestring
main, or competitor for the second site.
url · hoststring
Host that was checked.
statusstring
queued, running, done or failed.
errorstring | null
Short error code when status is failed, such as timeout; otherwise null.
scoreinteger | null
Overall score 0 to 100, or null when no score could be calculated.
resultobject | null
Full result once status is done, otherwise null: grade, score per pillar, and each check with its status (pass, warn, fail, info, na).
createdAtstring
When the check was created, ISO 8601.
finishedAtstring | null
When it finished, or null.
shareUrlstring
Public result page you can send to a person.
Example response · 200
{
  "id": "xmpl_4fGq9TzR2bWk7LcYp",
  "pairId": null,
  "role": "main",
  "url": "https://example.com/",
  "host": "example.com",
  "status": "done",
  "error": null,
  "score": 74,
  "result": {
    "version": 1,
    "score": 74,
    "grade": "B",
    "pillars": {
      "access": {
        "score": 86,
        "pass": 5,
        "warn": 1,
        "fail": 0
      },
      "understand": {
        "score": 70,
        "pass": 2,
        "warn": 2,
        "fail": 0
      },
      "product": {
        "score": 64,
        "pass": 3,
        "warn": 1,
        "fail": 1
      },
      "transact": {
        "score": 58,
        "pass": 1,
        "warn": 1,
        "fail": 1
      },
      "answer": {
        "score": null,
        "pass": 0,
        "warn": 0,
        "fail": 0
      },
      "entity": {
        "score": 80,
        "pass": 3,
        "warn": 1,
        "fail": 0
      },
      "saas": {
        "score": null,
        "pass": 0,
        "warn": 0,
        "fail": 0
      },
      "local": {
        "score": null,
        "pass": 0,
        "warn": 0,
        "fail": 0
      }
    },
    "checks": [
      {
        "id": "access.ai_search_bots",
        "pillar": "access",
        "severity": "critical",
        "status": "pass",
        "params": {
          "blocked": "",
          "count": 0,
          "mayIgnore": ""
        },
        "evidence": {
          "bots": []
        }
      },
      {
        "id": "understand.llms_txt",
        "pillar": "understand",
        "severity": "medium",
        "status": "warn",
        "params": {
          "linkCount": 0,
          "issues": "no_links"
        }
      },
      {
        "id": "transact.return_policy",
        "pillar": "transact",
        "severity": "high",
        "status": "fail",
        "params": {
          "page": 0,
          "schema": 0,
          "httpStatus": 404
        }
      }
    ],
    "siteType": {
      "type": "ecommerce",
      "confidence": 0.92,
      "signals": [
        "ecommerce:product_page",
        "ecommerce:cart_link"
      ]
    }
  },
  "createdAt": "2026-11-16T09:30:00.000Z",
  "finishedAt": "2026-11-16T09:30:31.000Z",
  "shareUrl": "https://citeto.com/check/r/xmpl_4fGq9TzR2bWk7LcYp"
}

Illustrative values for example.com. The real result lists every check that applies to the site; this one is trimmed to 3.

Errors

Errors return JSON in the form {"error": {"code": "…", "message": "…"}} with the HTTP status below. Branch on code; the message is for people.

400invalid_json
The body is not a JSON object.“Request body must be JSON.”
400invalid_url
url or competitor is not a valid http or https address.“The url is not a valid http(s) address.”
400blocked_host
The host is an IP address, a local name, or uses a port other than 80 or 443.“This host cannot be checked.”
400same_url
competitor has the same host as url.“competitor must differ from url.”
401unauthorized
The Authorization header is missing, malformed, or the key was revoked.“Missing, invalid or revoked API key. Send "Authorization: Bearer <key>".”
402insufficient_credit
Billing is on and the workspace credit is below the price. Includes balanceMicroUsd and requiredMicroUsd. Nothing is started.“Not enough credit. Top up in the Billing page.”
403domain_opted_out
The owner of the domain has asked Citeto not to check it. Includes the host. Nothing is started or charged.“The owner of this domain has asked Citeto not to check it.”
404not_found
No check with that id.“No such check.”
429rate_limited
The per-key hourly limit or a workspace hourly or daily limit is reached. The response has the header Retry-After: 3600 and retryAfterSeconds in the body.“Per-key limit of 60 checks per hour reached.”
500enqueue_failed
The check could not be queued. Any charge is refunded. Try again.“Could not start the check. Try again.”
500internal
Unexpected server error.“Internal error.”
429
HTTP/1.1 429 Too Many Requests
Retry-After: 3600
Content-Type: application/json

{
  "error": {
    "code": "rate_limited",
    "message": "Per-key limit of 60 checks per hour reached.",
    "retryAfterSeconds": 3600
  }
}

Limits

  • 60 checks per hour per key
  • 120 checks per hour per workspace, all keys combined
  • 1,000 checks per day per workspace
  • Up to 5 active keys per workspace

A request over any limit returns 429 with Retry-After: 3600. More keys do not raise the workspace limits.

Pricing

Free while billing is off (early access): chargedMicroUsd is always 0, and the limits above still apply. When paid credit launches, the per-check price will be on the pricing page first. See pricing

Client libraries

A typed TypeScript client, @citeto/sdk, wraps these two endpoints and waits for the result. It is built and not yet on npm; until then, call the endpoints directly.

TypeScript · after release
import { createClient } from '@citeto/sdk';
const citeto = createClient({ apiKey: process.env.CITETO_API_KEY! });
const { id } = await citeto.startCheck('https://example.com', { competitor: 'https://rival.com' });
const done = await citeto.waitForCheck(id, { timeoutMs: 90_000 });
console.log(done.score, done.result?.grade, done.shareUrl);

All developer tools
Citeto API reference: AI readiness checks