Developers / Guides

Guide

Getting started

Your account and key, your first consumer, and a first count, search and entity read, with each request and what comes back.

Atlas holds public UK register data about organisations and premises, joined into one set of entities, and returns it as JSON over HTTPS. This guide takes you from a new account to your first search and your first entity. Concepts defines every word used here.

Every path starts with https://api.atlas.oromiq.com/v1. Call Atlas from your servers, never from a browser or an app you ship.

Your account and your key

We set every client up ourselves, with you. You get your client id (cl_ and a random part) and your client key (ak_ and 40 characters). The key is shown once: keep it in your secret store, never in source code.

The client key manages your account (your plan, consumers, their subscriptions and keys, and the bill) and reads data as one of your consumers, named in the x-atlas-consumer header. The client on its own never reads data. Send the key as a bearer token on every call. Your account and keys has the detail.

Every call
Authorization: Bearer ak_EXAMPLEclientKeyNotARealKey000000000000

Make a consumer

A consumer is a party inside your account that reads data: a tenant, an environment, a customer of yours. Each draws on your plan's tokens up to a cap you set, and has its own subscriptions, holdings and usage; nothing crosses between them. Make one per party.

Your account is on a plan: GET /v1/plans lists them, and sandbox is there for trying things out. A new consumer is on your plan, so leave tier out. Every consumer reads the layers of the packs your plan includes; subscribe it to any other layer it needs at the same time. GET /v1/layers lists every layer with its publisher and licence. The label is yours to choose, never your own id for the party: keep the mapping from consumer id to your own records on your side.

Request
curl https://api.atlas.oromiq.com/v1/consumers \
  --request POST \
  --header 'Authorization: Bearer ak_EXAMPLEclientKeyNotARealKey000000000000' \
  --header 'Content-Type: application/json' \
  --data '{ "label": "Northfield staging", "subscriptions": ["companies_house", "cqc"] }'
Response: 201
{
  "data": {
    "consumerId": "cn_8fHq2LmNcV0pXyT3rW6aZe",
    "label": "Northfield staging",
    "status": "active",
    "tier": "sandbox",
    "createdAt": "2026-10-02T09:14:31.000Z",
    "subscriptions": ["companies_house", "cqc"],
    "keys": [],
    "tokenCap": null,
    "customPrice": false
  }
}

See what you can search on

Every data call names the consumer in x-atlas-consumer. Start with the catalogue: every field you may put a condition on, the operators each takes, its options, the sort keys, the columns a row's values hold, and the fields that can narrow a search on their own (narrowingFields). layers=subscribed stands for every layer the consumer is subscribed to. Read it again when the x-atlas-surface header changes, which means the fields have changed.

Request
curl 'https://api.atlas.oromiq.com/v1/catalogue?layers=subscribed' \
  --header 'Authorization: Bearer ak_EXAMPLEclientKeyNotARealKey000000000000' \
  --header 'x-atlas-consumer: cn_8fHq2LmNcV0pXyT3rW6aZe'
Response (shortened)
{
  "data": {
    "fields": [
      {
        "key": "cqc.rating",
        "label": "Overall rating",
        "type": "enum",
        "layer": "cqc",
        "options": [
          { "value": "Outstanding", "label": "Outstanding" },
          { "value": "Good", "label": "Good" }
        ],
        "operators": ["equals", "not_equals", "in", "not_in", "is_set", "is_not_set"],
        "narrowing": true,
        "levels": ["organisation", "premises"]
      }
    ],
    "narrowingFields": ["name", "localAuthority", "region", "postcode", "cqc.rating", "cqc.beds"]
  }
}

Read one entity

GET /v1/entities/{entityId} returns everything the layers in scope hold about one entity: its register records, its identifiers, its facts with their dates, its relations, and the attribution lines you must show with its data. Every read gives the data as it is now, with the layers you ask for now, at the record price; an entity you hold is read for nothing. Entities has the rest.

Request
curl 'https://api.atlas.oromiq.com/v1/entities/prm_pdFPkhx7RuGEeFl8Q1pP?layers=cqc' \
  --header 'Authorization: Bearer ak_EXAMPLEclientKeyNotARealKey000000000000' \
  --header 'x-atlas-consumer: cn_8fHq2LmNcV0pXyT3rW6aZe'
Response (shortened)
{
  "data": {
    "id": "prm_pdFPkhx7RuGEeFl8Q1pP",
    "level": "premises",
    "name": "OAKFIELD HOUSE",
    "status": "active",
    "identifiers": {},
    "records": [
      {
        "layer": "cqc",
        "source": "locations",
        "externalId": "1-2000000001",
        "name": "Oakfield House",
        "confidence": "match",
        "joinedBy": "identifier",
        "verified": true,
        "current": true,
        "status": "active",
        "since": "2014-03-03"
      }
    ],
    "layers": ["cqc"],
    "facts": [
      {
        "layer": "cqc",
        "source": "locations",
        "key": "cqc.rating",
        "label": "Overall rating",
        "value": "Good",
        "type": "enum",
        "asOf": "2025-06-17"
      }
    ],
    "relations": [
      {
        "type": "operates",
        "direction": "in",
        "entityId": "org_7pmXa7UUhqFbGdQw9mE1",
        "name": "BRACKENFOLD CARE LTD",
        "since": "2014-03-03",
        "until": null,
        "current": true,
        "confidence": "match",
        "verified": true
      }
    ],
    "attribution": [
      {
        "layer": "cqc",
        "text": "Contains Care Quality Commission data. Not endorsed by the Care Quality Commission."
      }
    ],
    "held": false,
    "charged": 40
  }
}

Where next

  • Concepts: the words the API uses.
  • Your account and keys: consumers, keys, plans and rate limits.
  • Errors: every code, and what to do about it.
  • Search: the operators, narrowing and saved searches.
  • Entities: records, facts, relations and the network map.
  • The API reference: every operation, with an example and its error codes.