Developers / Guides

Guide

Entities and the network

What comes back for one entity, how sure each record is, how to get from what you hold to an entity, and the map of owners, operators and premises.

An entity is one organisation or one premises, made of every record the registers hold about it. A care home's CQC location, its food hygiene rating and its energy certificate are one premises; the company that runs it, with its CQC provider record, is one organisation. Every record carries a confidence, and every fact says which register gave it and when. The words are in the concepts guide.

Ids that never change

An entity id starts org_ for an organisation or prm_ for a premises. Store it beside your own record: it never stops working.

  • An entity that merged into another comes back as the entity it joined, with movedFrom naming the id you asked for.
  • An entity that split keeps its id; splitInto lists what split off it, and each new entity carries splitFrom.
  • An entity that closed carries ended. One that closed longer ago than its layers keep history comes back as a tombstone: its name and closed date only.

GET /v1/holdings/moved?since= lists which of the entities you hold have merged or split since a date, oldest first, so you can update the ids you store.

Reading one entity

GET /v1/entities/{entityId} returns everything the layers in scope hold about one entity:

  • records: its register records, each with its confidence and joinedBy.
  • facts: what the registers say, each with its layer, label, value and asOf date.
  • attached: whole records, such as assessments and filings.
  • events: notices and alerts about it, newest first.
  • relations: who operates it, what it operates, who owns it.
  • people: counts of the owners and officers its registers name, never a name.
  • place, and where they may be shown, address and contact.
  • attribution: the line each layer's licence asks you to show with its data.

POST /v1/entities/batch reads up to 100 entities in one call, in the order asked; an id it cannot return is listed in missing and the call still succeeds.

Request
GET /v1/entities/prm_pdFPkhx7RuGEeFl8Q1pP?layers=cqc
Authorization: Bearer <client key>
x-atlas-consumer: cn_8fHq2LmNcV0pXyT3rW6aZe
Response, trimmed
{
  "data": {
    "id": "prm_pdFPkhx7RuGEeFl8Q1pP",
    "level": "premises",
    "name": "OAKFIELD HOUSE",
    "status": "active",
    "place": {
      "outwardCode": "QX1",
      "localAuthority": "Quexley",
      "region": "South East",
      "country": "England"
    },
    "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"
      }
    ],
    "facts": [
      {
        "layer": "cqc",
        "source": "locations",
        "key": "cqc.rating",
        "label": "Overall rating",
        "value": "Good",
        "type": "enum",
        "asOf": "2025-06-17"
      },
      {
        "layer": "cqc",
        "source": "locations",
        "key": "cqc.beds",
        "label": "Beds",
        "value": 42,
        "type": "number",
        "asOf": "2026-10-28"
      }
    ],
    "relations": [
      {
        "type": "operates",
        "direction": "in",
        "entityId": "org_7pmXa7UUhqFbGdQw9mE1",
        "name": "BRACKENFOLD CARE LTD",
        "since": "2014-03-03",
        "until": null,
        "current": true,
        "confidence": "match",
        "verified": true
      }
    ],
    "people": { "owners": 0, "officers": 1 },
    "attribution": [
      {
        "layer": "cqc",
        "text": "Contains Care Quality Commission data. Not endorsed by the Care Quality Commission."
      }
    ],
    "release": { "id": "b20261029040012c3d4", "at": "2026-10-29T06:11:40.000Z" },
    "held": false,
    "charged": 40
  }
}

How sure each record is

Every record and relation carries confidence and verified, so you decide what to do with each:

  • match: confirmed as part of the entity. verified is true.
  • high: a strong likely match, for you to decide on. verified is false.

A record's joinedBy says why it is part of the entity: identifier, the records share a published identifier such as a company number; review, Atlas has confirmed it; match, a strong likely match on name and place, for you to decide. Anything weaker is never part of the entity: it is offered as a possible match instead.

Releases and pending changes

Every response says which release it comes from, in release and the x-atlas-release header, so two reads of the same release agree. What has arrived for an entity since that release is listed apart, in pendingChanges, oldest first. A search row says pending: true when there is any.

What a read costs

Every read shows the entity as it is now: a layer you subscribe to or a holding you add shows on the next read. A read costs the record price each time, and nothing for an entity the consumer holds: held says which, and charged what the read took. Hold the entities you come back to. refresh is accepted and changes nothing, so you never need to send it.

With historical=true the answer carries the entity's history as well, charged once per entity and then free for 30 days; history.charged says what that part took. Short of tokens, a read is refused with 402 TOKENS_EXHAUSTED and nothing is charged. What each call costs is on the pricing page.

History: the entity's past

Every change to an entity's facts, dates and status is kept from the day its layer began keeping history, so you can read what it was and when it changed.

  • GET /v1/entities/{entityId}/history lists the changes, oldest first: each names the field (key), the value before and after (from, to), when Atlas recorded it (observedAt) and the publisher's own date where it gives one (asOf). facts narrows it to the fields you name; from and to to a period. notice says when the history is incomplete or none is held.
  • ?at=YYYY-MM-DD on GET /v1/entities/{entityId} reads the entity as it stood on that day: the records, facts, relations and attached records whose history covers it. A day before the entity's history begins answers 422 NO_HISTORY and says when it starts.
  • ?historical=true on the same call adds a history block to the entity: its changes, the dated lists it carries, and the roles held at it as tenures (the role and its dates; a name only for an active role on an entity you hold). Its notice says when names are withheld until you hold the entity, or are still being fetched for one you hold and arrive with the next build. While the block is still being gathered it says loading and when to ask again.

The first read of an entity's history unlocks it for this consumer; every read after is free, ?at= included. Which fields keep history is in the layer reference, marked on each field, and the catalogue says the same with history: true. Reports can read the figures as they stood on a day too: see the reports guide.

Request
GET /v1/entities/prm_pdFPkhx7RuGEeFl8Q1pP/history?layers=cqc&facts=cqc.rating
Response, trimmed
{
  "data": [
    {
      "layer": "cqc",
      "key": "cqc.rating",
      "label": "Overall rating",
      "from": "Requires Improvement",
      "to": "Good",
      "observedAt": "2025-06-18T04:12:09.000Z",
      "asOf": "2025-06-17",
      "jobId": "job_2025-06-18T04:00:00Z-cqc"
    }
  ],
  "charged": 20
}

From what you have to an entity

Three ways in, for three jobs:

  • POST /v1/resolve turns what a user typed, a business name, a company number or a CQC id, into the entities it may mean, best fit first, for an "add a company" box. Send the name alone in q; a town, area or postcode goes in postcode, a full postcode or an outward code such as DY2, and narrows the candidates to those near it. When nothing matches the whole of q, Atlas tries once more without its last word and says which in droppedWord. What you send is used for this call only and never stored. A person's name is not accepted.
  • POST /v1/entities/lookup maps register ids you already store, such as a company number, a CQC location id or an FSA establishment id, to entities, up to 500 at a time, in the order sent.
  • POST /v1/search/lookup finds the one entity an identifier names, as a search row.
Resolve
{ "q": "Brackenfold Care", "postcode": "QX1 4AB", "layers": ["companies_house", "cqc"], "limit": 8 }
Lookup
{
  "records": [
    { "layer": "companies_house", "externalId": "09876543" },
    { "layer": "cqc", "source": "locations", "externalId": "1-2000000001" }
  ],
  "layers": ["companies_house", "cqc"]
}

Possible matches

A possible match is a record in another layer that may be the same organisation or premises: a food business that may be the same site as a care home. It is never part of the entity. POST /v1/possible-matches returns them, for up to 100 entities a call and at most 200 matches an entity, for your users to accept or reject in your product.

Each carries its confidence (high or medium), the relation it would be (same_business or same_premises), reviewed, true once Atlas has confirmed the match, and the entityId the other record belongs to. A record whose name is a person's is never offered. ICO matches come back only for an entity you hold.

Atlas confirms matches; you cannot confirm one. When your team doubts one, flag it for review with POST /v1/links/{linkId}/flags, by the linkId it came with, and a body of { "reason": "not_same" }: same, not_same, out_of_date or other. A flag is a signal to review, never a decision. Who raised it, and any note, stay with you.

Response, one match
{
  "forEntityId": "prm_pdFPkhx7RuGEeFl8Q1pP",
  "entityId": "prm_Lc5Vn2Rq7XtGh9Bw4Ze1",
  "register": { "layer": "fsa", "source": "establishments", "externalId": "1876543" },
  "name": "Oakfield House Care Home",
  "sourceLabel": "Food hygiene ratings",
  "relation": "same_premises",
  "confidence": "high",
  "reviewed": false,
  "reviewedAt": null,
  "linkId": "lk_Qm4tN7vX2cR9pL1sK8wY3bH6dF0"
}

The network map

GET /v1/entities/{entityId}/network returns who owns and runs an entity, and what they run, as nodes and edges for any graph library to lay out. Start from a care home and see its operator, the operator's owner and the owner's other homes. The map draws only the layers in scope, and never passes through a node you may not see.

  • Edges: owns, operates, and same_business or same_premises for possible matches. same_brand links CQC providers trading under one brand, never a statement that they share an owner, and is drawn only when kinds names it.
  • Nodes: organisations and premises, each carrying what a search row shows. Open one with GET /v1/entities/{entityId}.
  • People are never nodes: an organisation carries counts of its owners and officers, never a name.
  • Depth: depth 1 to 4, 2 by default, and maxNodes 1 to 1,000, 200 by default. The map is charged per node returned, so a larger depth costs more: count it first, start at 1 or 2, and go to 3 for the wider group. cut says the depth and maxNodes applied; when the map is cut off, truncated is true and frontier lists the nodes to open next.

Possible matches are on the map, marked possible: true on the edge and on any node reached only through one; a possible node's own neighbours are not walked. possible=false leaves them out. To walk on past a possible match, name it in walk: up to 20 ids of possible nodes from a map of the same entity, within the same depth and maxNodes. Everything reached through it keeps possible: true, and possibleVia names the possible nodes it rests on, so you can draw all that rests on one match as one branch. walk with possible=false is refused with 400 INVALID_REQUEST.

Request
GET /v1/entities/org_7pmXa7UUhqFbGdQw9mE1/network?layers=cqc,companies_house&depth=1
Response, trimmed
{
  "data": {
    "root": "org_7pmXa7UUhqFbGdQw9mE1",
    "nodes": [
      {
        "id": "org_7pmXa7UUhqFbGdQw9mE1",
        "kind": "organisation",
        "name": "BRACKENFOLD CARE LTD",
        "status": "active",
        "place": "Quexley",
        "layers": ["companies_house", "cqc"],
        "people": { "owners": 0, "officers": 3 },
        "held": true,
        "depth": 0
      },
      {
        "id": "org_K3vR8sLq2NwYb5TzHc0M",
        "kind": "organisation",
        "name": "OAKFIELD TRUST LIMITED",
        "status": "active",
        "place": "Quexley",
        "layers": ["companies_house"],
        "people": { "owners": 1, "officers": 4 },
        "held": false,
        "depth": 1
      },
      {
        "id": "prm_pdFPkhx7RuGEeFl8Q1pP",
        "kind": "premises",
        "name": "OAKFIELD HOUSE",
        "status": "active",
        "place": "Quexley",
        "layers": ["cqc"],
        "held": false,
        "depth": 1
      }
    ],
    "edges": [
      {
        "from": "org_K3vR8sLq2NwYb5TzHc0M",
        "to": "org_7pmXa7UUhqFbGdQw9mE1",
        "kind": "owns",
        "source": "companies_house",
        "possible": false,
        "since": "2019-04-01",
        "detail": "75 to 100% of shares; 75 to 100% of voting rights"
      },
      {
        "from": "org_7pmXa7UUhqFbGdQw9mE1",
        "to": "prm_pdFPkhx7RuGEeFl8Q1pP",
        "kind": "operates",
        "source": "cqc",
        "possible": false,
        "since": "2014-03-03"
      }
    ],
    "truncated": true,
    "frontier": ["org_K3vR8sLq2NwYb5TzHc0M"]
  },
  "release": { "id": "b20261029040012c3d4", "at": "2026-10-29T06:11:40.000Z" },
  "charged": 75
}
Walk on past a possible match
GET /v1/entities/org_7pmXa7UUhqFbGdQw9mE1/network?layers=cqc,companies_house,fsa&walk=prm_Lc5Vn2Rq7XtGh9Bw4Ze1

Counting a map first

GET /v1/entities/{entityId}/network/count takes the same query and returns the size of the map and what it would cost, so you can show both before a user opens a map. The count itself is free. Errors are in the errors guide.

Count response
{
  "data": { "nodes": 4, "edges": 3, "truncated": true, "price": 75 },
  "release": { "id": "b20261029040012c3d4", "at": "2026-10-29T06:11:40.000Z" },
  "charged": 1
}

The operator dossier

POST /v1/dossier gathers in one answer what you would otherwise read in five calls: the entity with its history (entity, as ?historical=true gives it), the organisation that runs it (operator, null when the entity is itself an organisation), the group around that organisation as a map (group: owners, what they own and the premises each runs, two hops out and at most 100 nodes), every premises the operator runs today with how its overall rating changed (premises), and the records in other layers that may be the same thing (possibleMatches). Send a premises, such as a care home, or the organisation itself, with the layers to read.

One price covers the whole, whatever it holds; the entity's history, the map and the premises inside it are not charged on their own. Reading the same dossier again within its free window takes nothing: cost says the price, whether this read was free, and until when. group.cut says the limits applied and group.frontier where more is left; open a branch with GET /v1/entities/{entityId}/network. People are counts here, and names appear only in history.tenures for an entity you hold.

Request: POST /v1/dossier
{ "entityId": "prm_pdFPkhx7RuGEeFl8Q1pP", "layers": ["cqc", "companies_house"] }

What a CQC report found

A premises regulated by the CQC carries its inspection reports in the cqc.reports list (expand=attached on a row, or the entity read): each with its linkId, its date and its url, the report itself as the CQC publishes it. GET /v1/entities/{entityId}/reports/{linkId} answers what one report found, from the report's own text: publishedDate and url, the summary paragraph, the regulations found breached (breaches, each with the regulation and what the report says of it), whether enforcement is mentioned (enforcement), and what the report says under each key question (keyQuestions). The findings are read from the text by rules, never by a model, so they say what the report says and no more.

Each report is priced on its own, and reading the same report again within its free window takes nothing: cost says the price, whether this read was free, and until when. A report whose text Atlas has not read yet answers a notice and nothing else, costs nothing, and is read for the next release: ask again after it. A report of an individual provider's service is never read, and the operation answers it as not found. Show the CQC's attribution line, and never suggest the CQC endorses your product.

Request
GET /v1/entities/prm_pdFPkhx7RuGEeFl8Q1pP/reports/f5b7d2f1-3c1e-4a2b-9e0d-1a2b3c4d5e6f?layers=cqc