product · api

Indexing API

Base URL api.index-pages.com/v1Auth Bearer keyFormat JSONSpec OpenAPI 3.1

01 Overview

The API does what the dashboard does – create an order, run it, watch it finish, check the balance – for scripts, CI pipelines and AI agents. Same orders, same $1.00 per URL, same balance: an order created over the API is in your dashboard, and one created in the dashboard can be read over the API.

base url

https://api.index-pages.com/v1

REST over HTTPS, JSON in and JSON out, one header for authentication, nothing to install. The whole contract is published as an OpenAPI 3.1 document at api.index-pages.com/v1/openapi.json. It needs no key, so point a client generator, Postman or an agent straight at it.

02 Get a key

Any account with a verified email can create keys. No top-up first, no request to support. In the dashboard open Settings → API keys, name the key and pick its scopes.

The key is shown once, right after you create it. Copy it then: we store only a hash, so neither you nor we can read it back later. Lost one? Revoke it and create another.

A scope is a permission. Pick only what the key's job needs:

  • orders:read – list orders, read one, read its per-URL status.
  • orders:write – create draft orders and delete drafts. A draft costs nothing.
  • orders:run – run a draft. This is the one scope that spends your balance.
  • balance:read – read the balance, the price per URL and the order limits.
for agents

Give an agent or a third-party tool a key without orders:run. It can prepare drafts and read results, and it cannot spend a cent: you look the draft over in the dashboard and run it yourself.

All four scopes are ticked by default. An account holds up to 5 active keys – one per script or environment keeps revoking any one of them painless. Revoke a key in the same place; it stops working on the next request. The list shows each key by its prefix and last four characters, with the time it was last used.

Creating a key asks for your account password. Changing or resetting that password revokes every active key, so treat a password change as a key rotation: have new keys ready for everything that is running.

03 Authentication

Send the key in the Authorization header of every request:

every request

Authorization: Bearer ipk_live_…

A quick check that the key works:

curl https://api.index-pages.com/v1/account \
  -H "Authorization: Bearer $INDEX_PAGES_KEY"

A missing, malformed, unknown, revoked or expired key gets the same 401 unauthorized, with no hint as to which of those it was. A frozen account gets 403 account_frozen on every call.

The key is a credential. It acts as your account and, with orders:run, spends your balance. Keep it on a server – in an environment variable or a secrets manager – and never in browser code, a public repository or a support ticket. The API sends no CORS headers, so a browser could not use it anyway. Every key starts with ipk_live_ so secret scanners can spot one that leaked; if that happens, revoke it.

04 Endpoints

Eight operations, all under https://api.index-pages.com/v1:

MethodPathScopeWhat it does
GET/accountbalance:readBalance, price per URL, order limits, and the calling key's name and scopes.
GET/ordersorders:readYour orders, newest first, paginated. Filter with ?status=.
POST/ordersorders:writeCreate a draft from a list of URLs. Nothing is charged.
GET/orders/{id}orders:readOne order with its status and counters.
DELETE/orders/{id}orders:writeDelete a draft. An order that has run stays – the API does not hide history.
POST/orders/{id}/runorders:runStart the campaign and charge the balance. Drafts only.
GET/orders/{id}/urlsorders:readPer-URL status, paginated.
GET/openapi.json–The OpenAPI 3.1 spec. No key needed.

1. Create a draft. urls is a JSON array of strings:

curl https://api.index-pages.com/v1/orders \
  -H "Authorization: Bearer $INDEX_PAGES_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b6f3c1e-october-sitemap" \
  -d '{"urls": ["https://example.com/a", "https://example.com/b"], "title": "October sitemap"}'

From 1 to 1,000 URLs per order, under the same rules as the dashboard. Every entry is checked, and each rejected one comes back in errors[] with its index, so a list gets fixed in one pass. title (up to 255 characters) and comment (up to 1000) are optional. The answer is 201 with the order in draft and its address in Location.

2. Run it. No body:

curl -X POST https://api.index-pages.com/v1/orders/k3j4h5g6f7d8s9a0/run \
  -H "Authorization: Bearer $INDEX_PAGES_KEY" \
  -H "Idempotency-Key: run-k3j4h5g6f7d8s9a0"

The cost comes off your balance at this moment, and the order moves to in_progress. If the balance does not cover it you get 402 insufficient_balance and nothing changes. Running anything but a draft is 409.

3. Poll it.

curl https://api.index-pages.com/v1/orders/k3j4h5g6f7d8s9a0 \
  -H "Authorization: Bearer $INDEX_PAGES_KEY"
{
  "id": "k3j4h5g6f7d8s9a0",
  "title": "October sitemap",
  "comment": null,
  "status": "in_progress",
  "urls_total": 120,
  "urls_done": 37,
  "price_per_url": "1.00",
  "cost": "120.00",
  "currency": "USD",
  "created_at": "2026-10-10T12:00:00Z",
  "started_at": "2026-10-10T12:05:00Z",
  "campaign_ends_at": "2026-10-24T12:05:00Z"
}

status is one of draft, in_progress, done or error. started_at is when the balance was charged; it and campaign_ends_at are null on a draft. A campaign runs for days, so polling every few minutes is plenty. For the state of each address, GET /orders/{id}/urls returns items like {"url": "https://example.com/a", "status": "pending"}, where status is pending, in_progress or done.

05 Conventions

  • JSON only. A request with a body sends Content-Type: application/json, or gets 415. Responses are application/json, errors application/problem+json.
  • Time is RFC 3339 in UTC: 2026-10-10T12:00:00Z.
  • Money is a string with two decimals next to a currency field: "cost": "12.50", "currency": "USD". Never a float.
  • Order ids are the same 16-character ids you see in dashboard URLs.
  • Pagination is by cursor. List endpoints take limit (default 20, max 100) and cursor, and return data, next_cursor and has_more, newest first. Pass next_cursor back as cursor until has_more is false. Cursors are opaque: do not build or parse them.
  • Idempotency. POST /orders and POST /orders/{id}/run accept an Idempotency-Key header of up to 255 characters. A network error leaves you not knowing whether the first try landed; retry with the same key and you get the stored response, marked Idempotent-Replayed: true, instead of a second order or a second charge. Keys belong to your API key and are remembered for 24 hours. The same key with a different request is 422 idempotency_key_reused; a retry while the first is still being processed is 409 idempotency_key_in_flight. One key per logical operation – a UUID does the job.
  • Rate limits are per key: 120 requests a minute in total, of which at most 30 a minute to POST /orders and 10 a minute to /run. Requests without a valid key share a much tighter limit per IP. Responses carry X-RateLimit-Limit and X-RateLimit-Remaining; past the limit you get 429 rate_limited with Retry-After in seconds.
  • Per-URL detail is kept for 3 days after campaign_ends_at. After that /urls returns an empty list; the order and its counters stay.
  • Someone else's order and a deleted one are both 404. The API never confirms that an id exists outside your account.

06 Errors

Errors follow RFC 9457 problem details. Branch on code: it is stable and meant for machines. title and detail are for people and may be reworded. type links to the row for that code below.

HTTP/1.1 402 Payment Required
Content-Type: application/problem+json

{
  "type": "https://index-pages.com/api/#err-insufficient_balance",
  "title": "Insufficient balance",
  "status": 402,
  "detail": "This order costs $120.00, your balance is $12.50.",
  "code": "insufficient_balance",
  "required": "120.00",
  "available": "12.50",
  "currency": "USD"
}

A 422 validation_failed carries an errors[] array of {"field", "code", "message"}, one per problem. For a single URL, field is urls[3] and code is invalid_url, unsupported_scheme, private_host, too_long or invalid_characters. For the list as a whole, field is urls and code is too_few, too_many, required or not_a_list.

HTTPCodeWhen
400invalid_jsonThe body does not parse as JSON.
401unauthorizedNo key, not a Bearer header, or a key that is unknown, revoked or expired. Deliberately the same answer for all of them.
402insufficient_balanceThe balance does not cover the order you tried to run. Carries required, available and currency.
403forbidden_scopeThe key lacks the scope this call needs; required_scope names it.
403account_frozenThe account is frozen. Every call gets this until it is unfrozen – write to support@index-pages.com.
404not_foundNo such route, or no such order in your account – including deleted ones and other people's.
405method_not_allowedThe path exists, the method does not.
409order_not_executablerun on an order that is not a draft.
409order_not_deletableDELETE on an order that is not a draft.
409idempotency_key_in_flightA request with the same Idempotency-Key is still being processed. Retry shortly.
415unsupported_media_typeA body sent without Content-Type: application/json.
422validation_failedOne or more fields are invalid; each one is listed in errors[].
422draft_limit_reachedThe account already holds as many drafts as it may; limit says how many. Run or delete one first.
422idempotency_key_reusedThe same Idempotency-Key came with a different request.
429rate_limitedToo many requests. Wait the number of seconds in Retry-After.
500internal_errorSomething failed on our side. No details are given; retry with backoff.

07 MCP server

For AI assistants there is a remote MCP server on top of this same contract. It has seven tools, one per operation: get_account, list_orders, get_order, list_order_urls, create_order, run_order, delete_order. They take the same arguments and return the same objects and error codes as the endpoints above.

mcp server

https://index-pages.com/mcp

Streamable HTTP, nothing to install. There are two ways to connect.

With an API key. Clients that let you set a header – Claude Code, Cursor, VS Code, Gemini CLI – send the same Authorization: Bearer ipk_live_…. The key's scopes decide which tools the assistant gets: with a key that lacks orders:run, the run_order tool is not even listed.

claude mcp add --transport http index-pages https://index-pages.com/mcp \
  --header "Authorization: Bearer $INDEX_PAGES_KEY"

With OAuth. Clients that take only an address, such as Claude on the web and on the desktop: paste the URL, sign in to your dashboard and approve the consent screen. There is no key to copy. A connection made this way has all four scopes, so it can run orders and spend your balance. If the assistant must not spend, connect it with a key that lacks orders:run instead.

Apps connected over OAuth are listed in Settings → Connected apps; Disconnect ends an app's access on its next request. Changing or resetting your password disconnects all of them, the same way it revokes keys.

run_order charges the balance and cannot be undone, so it is marked as destructive: a client that honours the mark asks you before calling it. An error comes back as a tool result that starts with the same code as in section 06, so the assistant can read it and correct itself. Rate limits are the same as for the API.

08 Ready-made clients

You do not have to write code against the API. These clients are built on it, use the same keys and show the cost before anything is charged. All three are open source.

WordPress plugin. Sends the URLs of new and updated posts and pages, and shows their status in the posts list. Three modes: manual, free draft orders, or automatic with a daily spending cap. Install Index Pages URL Indexing from the WordPress plugin directory.

Command line. indexpages is a single binary for scripts, cron and CI: create an order from a file or a pipe, run it, wait for the result, read the balance. Output as a table, JSON, TSV or CSV. Source and install notes: github.com/index-pages/indexpages.

Chrome extension. Sends the page you are on, or the links you pick on it, without leaving the tab. It asks for access to the current tab only when you click it. Source: github.com/index-pages/indexpages-chrome.

Give each client its own key, named after where it lives. A client that should only prepare drafts gets a key without orders:run.

09 What it is not

API pages tend to imply more than they deliver, so here is the other side of it:

  • Not a way to buy the method. It creates and runs orders. What happens to a URL after that is the same closed pipeline described in the Terms of Use, and no endpoint will ever expose it.
  • Not a guarantee of indexation. A 201 means a draft exists; a successful run means the work is queued and paid for. Exactly what the button in the dashboard means, no more.
  • Not a reseller interface. Reselling or white-labelling needs a written agreement first: sales@index-pages.com.
  • Not the endpoints our own fleet uses. Those live on a different host, are internal, and are not what this page describes.

The Acceptable Use Policy applies to API orders exactly as it does in the dashboard. A key does not widen what you may submit.

10 Versioning and changes

The version is in the path: /v1. Within v1 we add, we do not break. New fields can appear in responses without notice, so ignore the ones you do not know. Anything that would break a working client – a removed field, a renamed code, a changed meaning – ships only as a new version in the path, never as a change to v1.

Planned, without dates: webhooks, so you stop polling for done, and a command-line client. Both will be thin clients of this same contract, as the MCP server already is.

Missing something you need? Write to support@index-pages.com and say what you are automating. One endpoint people actually call beats ten that nobody does.