Developers

A versioned REST API with its contract published

Every operation, request and answer is defined as a schema, published as an OpenAPI document. Contract 0.40.1, 82 client operations, additive within a major.

The OpenAPI document: https://api.atlas.oromiq.com/v1/openapi.json

The model

Clients, consumers and keys

A client is the account. A consumer is a party inside it that reads data, with its own plan, subscriptions and usage.

The client

Your organisation. Its key manages consumers and reads the itemised bill. To read data it names one of its consumers in x-atlas-consumer. No consumer can see another's data.

A consumer

A tenant, an environment, a customer of yours. Each has its own plan, layer subscriptions, token allowance, holdings and usage. Made and managed through the API by the client, or by us. A key of its own is there if you ask for it.

Subscriptions

A consumer reads the layers it is subscribed to. A call whose scope names a layer outside them is refused with the list of what it may read, so the first call tells you what to do.

Search

A catalogue of fields, operators and options

GET /v1/catalogue?layers= lists every searchable field in scope with its operators and the options behind it. A search takes those conditions and pages by cursor. At least one condition must narrow (a region, a rating, a local authority).

Rows are charged as pages are served, and a count says the most a search could cost before you read a row. Every search is kept for 90 days, to page through or recall.

Rows carry the facts themselves, and attached records (an assessment history, a filing) where the layer sends them.

A search
POST /v1/search
Authorization: Bearer ak_…
x-atlas-consumer: cn_…
Content-Type: application/json

{
  "layers": ["cqc", "companies_house"],
  "conditions": [
    { "field": "region", "operator": "equals", "value": "South East" },
    { "field": "cqc.rating", "operator": "in", "value": ["Requires Improvement", "Inadequate"] }
  ],
  "limit": 50
}
One entity, two ways
GET /v1/entities/{entityId}?layers=cqc,companies_house

Entities, snapshots and tokens

Read an entity as often as you like

The first full read of an entity takes a snapshot, and every read is live: the current release, with the layers you switch on now. Running out never takes a snapshot away.

at=YYYY-MM-DD returns the entity as it stood on a day, and historical=true every change held. What each call costs is on the pricing page, and every call that spends tokens says how many.

Rate limits and plans

A bucket per consumer, and headers on every answer

Each consumer's plan sets calls a second, a burst and a monthly token allowance, which is a hard limit: a call that would pass it is refused, never billed. Every answer carries the limit, what is left and when it resets; past the burst you get a 429 with Retry-After.

GET /v1/usage gives a consumer its month: calls by operation, refusals and failures, tokens by kind, the balance, a day-by-day series and when it renews, and a statement lists every token movement. The client reads the same per consumer, and one itemised bill for all of them.

Every answer
HTTP/1.1 200 OK
x-ratelimit-limit: 10
x-ratelimit-remaining: 47
x-ratelimit-reset: 0

Reference

The documents a client builds from

The contract, the layers and what changed.

New to the API? The guides walk through a first call, the words the API uses, your account and keys, errors, searching, entities, holdings and people, reports, alerts, licences and versions, with worked examples.

API reference

Every client operation with its request and answer shapes, as the server checks them, a worked example of each and the error codes it can answer. Browse it, or take the OpenAPI document and the Postman collection.

Layer reference

What each layer sends: every client key, its type, options, licence and any deprecation. Read it, or ask the API for a layer's JSON Schema with an example per field.

A version on every answer

x-atlas-surface names the version of what clients receive. The catalogue and each layer schema carry the same value, so you know when to regenerate.

Changelog

Fields added, deprecated or changed, per version that went live, and the contract's own releases. Read it, or GET /v1/changelog?since=. A breaking change only ever follows a deprecation notice.

Also in the contract

What else a consumer can do

Resolve

A name or an identifier to the entities it might mean, with the outward postcode only, for a typeahead or a match-as-you-type.

Lookup and batch

Your own register records to the entities they belong to; up to 100 entities in one call.

Possible matches

Records in other layers that may be the same business, with their confidence, for your users to accept or reject.

Holdings and people

Tell Atlas which entities a consumer holds; officers and registered managers are served for those and no others.

Benchmarks

Where one entity stands against the others in its region, its local authority or its kind, and how a figure has moved over time.

Reports

Counts, distributions, shares and summaries over the entities a search finds, by area or field, with one entity benchmarked against the rest. Figures only. Read the guide.

Alerts and webhooks

Set up a standing search or a watch the way you build a search, and hear as the data arrives, from a feed that waits for the next event or a signed webhook. Read the guide.

A client in your language

Generate one from the OpenAPI document with the generator you already use (an OpenAPI generator, openapi-typescript). A TypeScript client is available on request.

Want a key to try it against your own records?

Tell us what you are building. We make a consumer for you, subscribe it to the layers you need, and you are calling the API the same day.