{
  "item": [
    {
      "name": "Search",
      "description": {
        "content": "Find entities by conditions on the fields the catalogue lists, count them, and page through the results. The [search guide](https://atlas.oromiq.com/developers/guides/search/) walks through it.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Search entities by criteria over the field catalogue",
          "request": {
            "name": "Search entities by criteria over the field catalogue",
            "description": {
              "content": "Finds the organisations and premises that meet every condition, in the layers you name, and returns the first page of rows. Take the fields, operators and options from `GET /v1/catalogue` for the same layers. At least one condition must be on a narrowing field (the catalogue's `narrowingFields`) with a positive operator; `level` alone does not narrow. Count first with `POST /v1/search/count`; find one entity by an identifier with `POST /v1/search/lookup`.\n\nEach row carries the entity's id and `name`, its value for each result column in `values`, its `primaryRecord` (the register record to store if you keep a register id for it), its `layers` and, in `searchFacts`, the values that met each condition. A row gives a place, a local authority or an outward code, never a street address. Show each page's `attributions`, `notices` and `currency` with its rows.\n\nEach search is saved for 90 days with its first `max` results (10,000 by default, at most 100,000). Send the previous page's `next` as `cursor` for the next page; the rest of the body is then ignored. Read the pages again with `GET /v1/searches/{searchId}`. A search that finds nothing is not saved and carries no `search`.\n\n`region` and `localAuthority` take the names the catalogue lists; an earlier name of the same area is also accepted. `is_not_set` matches an entity with no value.\n\n`charged` says what the page spent. Without enough tokens nothing is returned or saved.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 20 conditions; up to 100 rows a page, 50 by default; `meta.total` counts up to 100,000 and `capped` says when more match. `exclude` leaves out up to 10,000 entity ids and 20 saved searches, 100,000 entities in all, never counted or charged. A condition with `via` needs a positive `level` condition naming the entity type the relation starts from. An enrichment-only layer cannot be searched or filtered on.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "search"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"conditions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"expand\": \"<string>\",\n  \"sort\": \"<string>\",\n  \"limit\": 50,\n  \"cursor\": \"<string>\",\n  \"label\": \"<string>\",\n  \"max\": \"<integer>\",\n  \"exclude\": {\n    \"entityIds\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"searches\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The fields, operators, options and sort keys a search over these layers can use",
          "request": {
            "name": "The fields, operators, options and sort keys a search over these layers can use",
            "description": {
              "content": "Lists what a search over the layers you name can use: each searchable field with its type, operators, options (or an `optionsToken` where the list is long), help text, licence, whether it is about a person (`personal`) and the entity types it applies to (`levels`); the sort keys; the result columns a row's `values` hold; the fields that narrow a search (`narrowingFields`); and the relations a condition can be read through (`via`). Call it with the same layers the search will name, and read it again when `surface` or `release` changes. An enrichment-only layer is not listed.\n\nCore fields (`name`, `postcode`, `region`, `localAuthority`, `country`, `level`, `status`, `source`, `homeBased`) come first, then each layer's fields under its key, such as `cqc.rating`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `layers` is comma-separated layer keys, or `subscribed` for every layer the consumer is subscribed to.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "catalogue"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys, or the one word subscribed for every layer the consumer is subscribed to."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Count what a search would find, without reading a row",
          "request": {
            "name": "Count what a search would find, without reading a row",
            "description": {
              "content": "Counts what a search with the same `conditions`, `layers`, `max` and `exclude` would find, and says in `cost` what reading them would cost this consumer. The same narrowing condition is required. A count carries no `attributions`, `notices` or `currency`.\n\n`cost.results` is how many results the search would save, up to `max` (10,000 by default); `cost.perRow` and `cost.atMost` say what reading them would cost this consumer.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: counting stops at `cap`, 100,000 by default, and `capped` says when it did. `exclude` takes the same limits as a search's.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "search",
                "count"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"conditions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"cap\": \"<integer>\",\n  \"max\": \"<integer>\",\n  \"exclude\": {\n    \"entityIds\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"searches\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Rows for the entities you name, in their current state",
          "request": {
            "name": "Rows for the entities you name, in their current state",
            "description": {
              "content": "Returns a search row for each entity id you send, as the entity is now, in the layers you name: use it to refresh entities you already hold, or to read rows for ids you got from `POST /v1/entities/lookup`. Send the conditions of the search the ids came from, or none, and each entry says whether its row still meets them (`matches`). An id no longer held comes back in `missing`. To read a saved search's results again, use `GET /v1/searches/{searchId}` instead. Show each answer's `attributions`, `notices` and `currency` with its rows.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 100 entity ids; up to 20 conditions, none of which has to narrow.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "search",
                "rows"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"entityIds\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"conditions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"expand\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Find the one entity a company number, UPRN or register id names",
          "request": {
            "name": "Find the one entity a company number, UPRN or register id names",
            "description": {
              "content": "Finds the one entity an identifier names: a company number, a UPRN, a CQC location or provider id, or another register's own id; the catalogue's `identifierLabel` says which the layers in scope take. Returns the entity as a search row, without `searchFacts`, or `null` when nothing in those layers has the identifier. A personal identifier, such as an officer's id or a phone number, is never looked up, and nor is an enrichment-only layer. To turn a name into entities, use `POST /v1/resolve`; to map many register records at once, use `POST /v1/entities/lookup`.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: one identifier, 2 to 256 characters.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "search",
                "lookup"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"identifier\": \"<string>\",\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The options behind a catalogue field's options token",
          "request": {
            "name": "The options behind a catalogue field's options token",
            "description": {
              "content": "The options of a catalogue field whose list is too long to send inline: the catalogue gives such a field an `optionsToken` in place of `options`. Use the values in an `equals` or `in` condition on that field. Send the same layers as the catalogue call that gave the token.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: at most 500 options. A token the catalogue did not give for these layers returns `404 NOT_FOUND`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "catalogue",
                "options",
                ":token"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys, or the one word subscribed for every layer the consumer is subscribed to."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "token",
                  "description": "(Required) A field's optionsToken from the catalogue."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Saved searches",
      "description": {
        "content": "Every search is kept for 90 days: list, recall, rename, filter and delete them.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "This consumer's saved searches, newest first",
          "request": {
            "name": "This consumer's saved searches, newest first",
            "description": {
              "content": "Lists this consumer's saved searches, newest first: every search that found something in the last 90 days, with its label, conditions, layers, sort, how many results it saved and matched, and what its pages have cost. Read one's results with `GET /v1/searches/{searchId}`. Each consumer sees only its own.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: up to 100 a page, 50 by default; follow `next` as `cursor`. A saved search is deleted 90 days after it ran (`expiresAt`).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "searches"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "cursor",
                  "value": "<string>",
                  "description": "An opaque page token: send back the `next` value of the previous page. Leave out for the first page."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "50",
                  "description": "Saved searches per page."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A saved search's results, a page at a time, in their current state",
          "request": {
            "name": "A saved search's results, a page at a time, in their current state",
            "description": {
              "content": "Returns a saved search's results again, a page at a time, as the entities are now: each row says whether it still meets the search's conditions (`matches`), and results no longer in the data come back in `missing`. The search's layers must all still be subscribed, and each row carries those layers only.\n\n`charged` says what the page spent, and the saved search's `charged` what all its pages have.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: up to 100 rows a page, 50 by default; follow `next` as `cursor`. A cursor from `POST /v1/search` for the same saved search works here; one from another saved search or from a filter does not. Kept for 90 days after it ran.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "searches",
                ":searchId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "cursor",
                  "value": "<string>",
                  "description": "An opaque page token: send back the `next` value of the previous page. Leave out for the first page."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "50",
                  "description": "Rows per page, at most 100."
                },
                {
                  "disabled": false,
                  "key": "expand",
                  "value": "<string>",
                  "description": "Send attached for each row to carry its attached lists (filings, assessments, contracts and the like, up to 25 of each). Left out, a row carries facts alone. A row with its lists costs more: `rowExpand` on top of the row, each time it is served."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "searchId",
                  "description": "(Required) A saved search's id, ss_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Rename a saved search",
          "request": {
            "name": "Rename a saved search",
            "description": {
              "content": "Sets a saved search's `label`, or clears it with `null`. Nothing else changes.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: a label is 1 to 120 characters. Only this consumer's own saved searches, while they are kept.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "searches",
                ":searchId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "searchId",
                  "description": "(Required) A saved search's id, ss_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"label\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Delete a saved search",
          "request": {
            "name": "Delete a saved search",
            "description": {
              "content": "Deletes one of this consumer's saved searches: its results, label and conditions go at once, and its cursors stop working. Nothing charged is given back.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "searches",
                ":searchId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "searchId",
                  "description": "(Required) A saved search's id, ss_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A saved search's results that meet more conditions, a page at a time",
          "request": {
            "name": "A saved search's results that meet more conditions, a page at a time",
            "description": {
              "content": "Narrows a saved search with more conditions and returns only the results that also meet them, as the entities are now, a page at a time. Each row says whether it still meets the saved search's own conditions (`matches`); `meta.total` is how many of the saved results the filter matches. Conditions are checked against the catalogue for the saved search's layers; none has to narrow. Count first with `POST /v1/searches/{searchId}/filter/count`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 20 conditions; up to 100 rows a page, 50 by default; `sort` is the saved search's when left out. A cursor works only with the same conditions and sort on the same saved search.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "searches",
                ":searchId",
                "filter"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "searchId",
                  "description": "(Required) A saved search's id, ss_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"conditions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"sort\": \"<string>\",\n  \"limit\": 50,\n  \"cursor\": \"<string>\",\n  \"expand\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Count a saved search's results that meet more conditions, and the tokens reading them could take",
          "request": {
            "name": "Count a saved search's results that meet more conditions, and the tokens reading them could take",
            "description": {
              "content": "Counts the results of a saved search that meet more conditions, and says in `cost` what reading them would cost, without returning any. A filter's body may be sent as it is: its sort, limit and cursor are ignored.\n\n`cost.unserved` is how many of the matching results would be charged and `cost.atMost` what they would cost this consumer.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 20 conditions.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each page's `attributions`, `notices` and `currency` wherever you show its rows.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "searches",
                ":searchId",
                "filter",
                "count"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "searchId",
                  "description": "(Required) A saved search's id, ss_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"conditions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Entities",
      "description": {
        "content": "One entity and everything the layers hold about it: its register records, facts, relations and its network of owners and operators. Find an entity from a name or an identifier. The [entities guide](https://atlas.oromiq.com/developers/guides/entities/) walks through it.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Find the entities a name or identifier means",
          "request": {
            "name": "Find the entities a name or identifier means",
            "description": {
              "content": "Turns what a user typed, a business name or a register id such as a company number or a CQC location id, into the entities it may mean, best fit first. Each candidate carries its entity id, its records in each register, its outward postcode and its group. To look up register ids you already store, use `POST /v1/entities/lookup`.\n\nSend the name alone in `q`. A postcode goes in `postcode`: a full postcode, or an outward code such as `DY2`. It narrows the candidates to those near it: `placeNarrowed` is true when it did, and false when nothing was near and the candidates match the name alone. A town or area typed after the name is allowed: when nothing matches the whole of `q`, Atlas tries once more without its last word, and `droppedWord` says which word it left out. `emailDomain` and `phone` affect the order only. `searched` lists the layers that were searched. What you send is used for this call only and never stored. A person's name is not accepted.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `q` 2 to 256 characters; `limit` 1 to 10 candidates, 8 by default. The EPC and ICO layers are never searched.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: What you send is used for this call only and never stored. Do not send a person's name to search by.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "resolve"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"q\": \"<string>\",\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"postcode\": \"<string>\",\n  \"emailDomain\": \"<string>\",\n  \"phone\": \"<string>\",\n  \"limit\": 8\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Fields a new record can be filled from, for one chosen entity",
          "request": {
            "name": "Fields a new record can be filled from, for one chosen entity",
            "description": {
              "content": "The fields a new record in your system can be filled from, for one entity the user chose: its registered name, an address, phones, website, company number and UPRN, the people a register publishes as the entity's own staff, and its current register records in the layers in scope. Send the `entityId` from a resolve candidate or a search row. `sources` says which layer each field came from.\n\n`addressKind` says whether the address is the premises or a registered office: label a registered office as such. Link your record to the `records` with confidence `match`; one with confidence `high` should only be suggested. `contacts` are the staff a register publishes for the entity, such as a registered manager, never officers.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: the address of a CQC provider who is an individual is withheld.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each layer's attribution line wherever you show the values it gave you.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "prefill"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"entityId\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\",\n    \"description\": \"The entity chosen, from a resolve candidate or a search row.\"\n  },\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "One entity: its records, facts, relations and attribution, in the layers in scope",
          "request": {
            "name": "One entity: its records, facts, relations and attribution, in the layers in scope",
            "description": {
              "content": "Everything the layers in scope hold about one entity, an organisation or a premises: its register records (`records`, each with its confidence and how it was joined), its dated facts, whole records (`attached`), notices and alerts (`events`), its relations and corporate group, counts of the people its registers name, and its address and contact details where they may be shown. An id that merged into another entity answers as that entity, with `movedFrom`. People are counts here, never names: `POST /v1/people` names them for an entity you hold. Some layers, such as the ICO's, are answered only for an entity you hold.\n\nAn entity with no history yet answers `historical=true` and `at` with a `notice`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each line in `attribution` wherever you show the entity's data, and show `asOf` beside a Food Standards Agency or Care Inspectorate fact. Never suggest the CQC endorses your product.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                ":entityId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys the client has switched on, or the one word subscribed for every layer the consumer is subscribed to."
                },
                {
                  "disabled": false,
                  "key": "at",
                  "value": "<string>",
                  "description": "The entity as it stood on this date, YYYY-MM-DD: the records, facts, relations and attached records whose history covers it. Before the entity has history, the answer is NO_HISTORY with status 422 and says when it starts."
                },
                {
                  "disabled": false,
                  "key": "historical",
                  "value": "<string>",
                  "description": "true: the entity with its `history` block of changes, dated lists and tenures."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "entityId",
                  "description": "(Required) The entity to read, by its id."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The entities a client's own register records belong to",
          "request": {
            "name": "The entities a client's own register records belong to",
            "description": {
              "content": "The entities your stored register records belong to: send the ids you hold, such as a company number, a CQC location id or an FSA establishment id, and get back the entity each is part of. Leave out `source` to look in every register of the layer. A company number may be sent without its leading zeros: `123456` finds `00123456`.\n\nAnswers come back in the order sent, one per record. `entityId` is null when the layers in scope hold no such record. `movedFrom` lists earlier ids of the entity, so you can update any you store.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 500 records a call; each id at most 256 characters.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each line in `attribution` wherever you show the entity's data, and show `asOf` beside a Food Standards Agency or Care Inspectorate fact. Never suggest the CQC endorses your product.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                "lookup"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"records\": [\n    {\n      \"layer\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"externalId\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"source\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    }\n  ],\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Up to 100 entities in one call",
          "request": {
            "name": "Up to 100 entities in one call",
            "description": {
              "content": "Up to 100 entities in one call, each as `GET /v1/entities/{entityId}` answers it, in the order asked. An id the layers in scope cannot answer is listed in `missing`. An id that merged into another entity answers as that entity, with `movedFrom`. Some layers, such as the ICO's, are answered only for an entity you hold.\n\n`charged` is the call's total.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 100 ids.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each line in `attribution` wherever you show the entity's data, and show `asOf` beside a Food Standards Agency or Care Inspectorate fact. Never suggest the CQC endorses your product.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                "batch"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Records in other layers that may be the same business or premises",
          "request": {
            "name": "Records in other layers that may be the same business or premises",
            "description": {
              "content": "Records in other layers that may be the same organisation or premises as the entities you name. A possible match is not part of the entity: show it as a suggestion for your users to accept or reject in your product. `confidence` is `high` or `medium`; `reviewed` is true once Atlas has confirmed the match; `entityId` is the entity the other record belongs to, if any. Atlas confirms matches: you cannot confirm one, but you may flag one your team doubts with `POST /v1/links/{linkId}/flags`, by its `linkId`. A flag is a signal to review, never a decision. A record whose name is a person's is never offered. ICO matches are answered only for an entity you hold.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 1 to 100 entities a call; at most 200 matches per entity.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: A possible match is a suggestion: show it as one, for your users to accept or reject, never as part of the entity.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "possible-matches"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"entityIds\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "An operator dossier: the entity, who runs it, their group, every premises and its ratings",
          "request": {
            "name": "An operator dossier: the entity, who runs it, their group, every premises and its ratings",
            "description": {
              "content": "The whole picture of a care provider, or of one of its homes, in one answer: the entity with its history (`entity`, as `GET /v1/entities/{entityId}?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, with `cut` and `frontier` saying where more is left), 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 or an organisation; an id that merged into another entity answers as that entity.\n\nOne price for the whole, whatever it holds: the entity's own history, the map and the premises 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. People are counts here; names appear only in `history.tenures` for an entity you hold.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: the map stops at two hops and 100 nodes; `GET /v1/entities/{entityId}/network` opens a branch from any id in `frontier`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each line in `attribution` wherever you show the entity's data, and show `asOf` beside a Food Standards Agency or Care Inspectorate fact. Never suggest the CQC endorses your product.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "dossier"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"entityId\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\",\n    \"description\": \"The entity the dossier is about: a premises, such as a care home, or the organisation that runs premises.\"\n  },\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Who owns and runs an entity, and what they run, as nodes and edges",
          "request": {
            "name": "Who owns and runs an entity, and what they run, as nodes and edges",
            "description": {
              "content": "A map of who owns and runs an entity, and what they run: `nodes` (organisations and premises) and `edges` (`owns`, `operates`, and `same_business` or `same_premises` for possible matches). A node carries 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. Only the layers in scope are read, and a layer answered only for a held entity is listed on a node only where you hold it.\n\nPossible matches are included and marked `possible: true` on the edge and on the nodes only they reach; `possible=false` leaves them out. `walk` names possible nodes from an earlier answer to continue past: nodes beyond them keep `possible` and name what they rest on in `possibleVia`. `same_brand` edges, CQC providers trading under one brand, are included only when `kinds` names them. `cut` says the `depth` and `maxNodes` applied; when `truncated` is true, `frontier` lists the nodes to open next.\n\nThe map is charged per node returned, so a larger `depth` costs more. Call `GET /v1/entities/{entityId}/network/count` first, for nothing, to see the size and the price; start at `depth` 1 or 2 and go to 3 for the wider group.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `depth` 1 to 4, 2 by default; `maxNodes` 1 to 1000, 200 by default; `walk` at most 20 ids, and not with `possible=false`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each layer's attribution line wherever you show the map. Nodes carry no addresses or people.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                ":entityId",
                "network"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys, or the one word subscribed for every layer the consumer is subscribed to. A node is shown only where one of these layers holds a record of it, and nothing is reached through a node that is not shown."
                },
                {
                  "disabled": false,
                  "key": "depth",
                  "value": "2",
                  "description": "How many hops to walk from the root, 1 to 4. 2 by default. The map is charged per node returned, so a larger depth costs more; cut says the depth applied."
                },
                {
                  "disabled": false,
                  "key": "maxNodes",
                  "value": "200",
                  "description": "The most nodes to return, the root included, 1 to 1000. 200 by default. The map is charged per node returned, so this caps the cost; cut says the most applied."
                },
                {
                  "disabled": false,
                  "key": "kinds",
                  "value": "<string>",
                  "description": "Comma-separated edge kinds to follow: owns, operates, same_business, same_premises, same_brand. Left out, every kind but same_brand is followed: owns, operates, same_business, same_premises."
                },
                {
                  "disabled": false,
                  "key": "possible",
                  "value": "<string>",
                  "description": "Send false to leave out possible matches: the edges with possible true, and the nodes only they reach. They are included by default, flagged with possible true."
                },
                {
                  "disabled": false,
                  "key": "walk",
                  "value": "<string>",
                  "description": "Comma-separated ids of nodes flagged possible true on a map of this entity, at most 20. Each is walked on like any node, and everything reached through it keeps possible true and names it in possibleVia. An id that is not a possible node of this map is ignored, and walked says which were. Refused with possible=false."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "entityId",
                  "description": "(Required) The entity to read, by its id."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Count what an entity's network map would answer, and the tokens it would take",
          "request": {
            "name": "Count what an entity's network map would answer, and the tokens it would take",
            "description": {
              "content": "What `GET /v1/entities/{entityId}/network` would answer for the same query, counted: how many nodes and edges, whether `depth` or `maxNodes` would cut something off (`cut` says the limits applied), and its `price` in tokens on this consumer's plan. Takes the same query. Call it first: it is free, and the map is charged per node returned, so it says what a larger `depth` would cost before you pay for it.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: as for the map: `depth` 1 to 4, `maxNodes` 1 to 1000.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each layer's attribution line wherever you show the map. Nodes carry no addresses or people.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                ":entityId",
                "network",
                "count"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys, or the one word subscribed for every layer the consumer is subscribed to. A node is shown only where one of these layers holds a record of it, and nothing is reached through a node that is not shown."
                },
                {
                  "disabled": false,
                  "key": "depth",
                  "value": "2",
                  "description": "How many hops to walk from the root, 1 to 4. 2 by default. The map is charged per node returned, so a larger depth costs more; cut says the depth applied."
                },
                {
                  "disabled": false,
                  "key": "maxNodes",
                  "value": "200",
                  "description": "The most nodes to return, the root included, 1 to 1000. 200 by default. The map is charged per node returned, so this caps the cost; cut says the most applied."
                },
                {
                  "disabled": false,
                  "key": "kinds",
                  "value": "<string>",
                  "description": "Comma-separated edge kinds to follow: owns, operates, same_business, same_premises, same_brand. Left out, every kind but same_brand is followed: owns, operates, same_business, same_premises."
                },
                {
                  "disabled": false,
                  "key": "possible",
                  "value": "<string>",
                  "description": "Send false to leave out possible matches: the edges with possible true, and the nodes only they reach. They are included by default, flagged with possible true."
                },
                {
                  "disabled": false,
                  "key": "walk",
                  "value": "<string>",
                  "description": "Comma-separated ids of nodes flagged possible true on a map of this entity, at most 20. Each is walked on like any node, and everything reached through it keeps possible true and names it in possibleVia. An id that is not a possible node of this map is ignored, and walked says which were. Refused with possible=false."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "entityId",
                  "description": "(Required) The entity to read, by its id."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "What one CQC inspection report found: summary, breaches, enforcement and key questions",
          "request": {
            "name": "What one CQC inspection report found: summary, breaches, enforcement and key questions",
            "description": {
              "content": "What one CQC inspection report found, for a report the premises' `cqc.reports` list names by its `linkId`: the report's own summary paragraph, the regulations it found breached with the report's words on each, whether it speaks of enforcement (an enforcement action, a warning notice, urgent action), and what it says under each key question with the rating it gives. `url` is the report itself, as a whole address. The `cqc` layer must be in `layers`.\n\nA report whose text has not been read yet answers `summary` null with a `notice`, and is charged nothing; ask again after a later release. A report the list does not name, or of a premises that may be someone's home, answers `NOT_FOUND`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/). Charged per report; free to read again for the free window `cost.freeUntil` gives.\n\n**Duties**: show `attribution.text` wherever the findings are shown.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each line in `attribution` wherever you show the entity's data, and show `asOf` beside a Food Standards Agency or Care Inspectorate fact. Never suggest the CQC endorses your product.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                ":entityId",
                "reports",
                ":linkId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys, or the one word subscribed for every layer the consumer is subscribed to. The cqc layer must be among them."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "entityId",
                  "description": "(Required) The premises the report is about, by its id."
                },
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "linkId",
                  "description": "(Required) The report's id, as the premises' `cqc.reports` list gives it under `linkId`."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Flag a possible match for review",
          "request": {
            "name": "Flag a possible match for review",
            "description": {
              "content": "Flags a possible match your team doubts, by the `linkId` it came with from `POST /v1/possible-matches` or a search row. A flag is a signal for Atlas to review the match, never a decision: Atlas confirms matches, and `reviewed` on the match says when it has. Who raised it, and any note, stay with you.\n\n- `reason`: `same` or `not_same` (what your users make of the match itself), `out_of_date` (a record is out of date or closed), or `other`.\n- A link no longer shown answers `LINK_NOT_FOUND`. `same` on a match Atlas has already confirmed answers `LINK_ALREADY_REVIEWED`; `not_same` is still taken.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "links",
                ":linkId",
                "flags"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "linkId",
                  "description": "(Required) A possible match's linkId."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "History",
      "description": {
        "content": "An entity's past: every change to its facts, dates and status, and the entity as it stood on a day (`?at=` on reading one entity).",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "An entity's tracked facts over time",
          "request": {
            "name": "An entity's tracked facts over time",
            "description": {
              "content": "An entity's tracked facts over time: each change to a fact, a status or a date, with the value before and after, the date it changed, and the publisher's own date where it gives one. Filter with `facts` (catalogue keys such as `cqc.rating`) and `from` and `to` dates. The roles held at the entity, with their dates, are in the `history` block of `GET /v1/entities/{entityId}?historical=true` as tenures, named only for an active role on an entity you hold; the block's `notice` says when names are withheld until you hold the entity, or are still being fetched and arrive with the next build.\n\nAn entity with no history yet answers an empty list with a `notice`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: at most 1,000 changes an answer.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each layer's attribution line wherever you show the figures.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "entities",
                ":entityId",
                "history"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "(Required) Comma-separated layer keys, or the one word subscribed for every layer the consumer is subscribed to."
                },
                {
                  "disabled": false,
                  "key": "facts",
                  "value": "<string>",
                  "description": "Comma-separated fact keys. Omit for every fact whose past is kept."
                },
                {
                  "disabled": false,
                  "key": "from",
                  "value": "<string>",
                  "description": "Only changes on or after this date."
                },
                {
                  "disabled": false,
                  "key": "to",
                  "value": "<string>",
                  "description": "Only changes on or before this date."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "entityId",
                  "description": "(Required) The entity whose history to read, by its id."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "People",
      "description": {
        "content": "The people a held entity names in its registers, within the rules the [holdings and people guide](https://atlas.oromiq.com/developers/guides/holdings-and-people/) explains, and the notices people have given.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Officers, owners and registered managers, named only for an entity the consumer holds",
          "request": {
            "name": "Officers, owners and registered managers, named only for an entity the consumer holds",
            "description": {
              "content": "The people an entity's registers publish: Companies House officers and persons with significant control, and CQC registered managers and nominated individuals, each with their role and its dates. Names are answered only for an entity this consumer holds (`PUT /v1/holdings`), and only while the role is active. For an entity it does not hold, only corporate owners are listed, and `notice` says how many roles' names are withheld and that holding the entity brings them with the next build. For an entity newly held, `notice` says how many names are still being fetched; they arrive with the next build. A person the register suppresses is never listed. There is no search by person.\n\nEach person carries minimised fields only: never a date of birth, nationality, country of residence or home address.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Names are for an entity you hold, and only while you hold it. Keep what you store to the role and its dates where you can, and act on a person notice by its `actBy` date.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "people"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"entityId\": \"<string>\",\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "People this consumer was served who have objected or asked for erasure",
          "request": {
            "name": "People this consumer was served who have objected or asked for erasure",
            "description": {
              "content": "The people this consumer was given who have since objected to Atlas holding their record (UK GDPR Article 21) or asked for their name to be erased (Article 17), over the last 12 months, newest first. A notice goes to every consumer that read the person in the last 12 months. Each is also sent as a `person.notice` event in the consumer's feed and to its webhook, with the same `noticeId`.\n\nAct on a notice by `actBy`, 30 days after it was raised: find what you kept of the person by `entityId`, `layer` and `externalId` (the id `POST /v1/people` gave them under), including any record you made your own, and act on the request. A notice never carries the person's name.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Names are for an entity you hold, and only while you hold it. Keep what you store to the role and its dates where you can, and act on a person notice by its `actBy` date.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "people",
                "notices"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "from",
                  "value": "<dateTime>",
                  "description": "Only notices made at or after this instant. Left out, every notice of the last 12 months."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Holdings",
      "description": {
        "content": "Say which entities you hold, and learn which of them merged or split since a date.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "The entities this consumer holds, a page at a time",
          "request": {
            "name": "The entities this consumer holds, a page at a time",
            "description": {
              "content": "Every entity this consumer holds, as entity ids in id order, a page at a time. Holdings are each consumer's own. Follow the pages with `cursor` set to the previous page's `next`; `next` is null on the last page.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: at most 1,000 ids a page, which is the default.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Send entity ids only, never your own record or anything about a person.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "holdings"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "cursor",
                  "value": "<string>",
                  "description": "An opaque page token: send back the `next` value of the previous page. Leave out for the first page."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "1000",
                  "description": "Entity ids per page, at most 1000. 1000 by default."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Add or remove entities this consumer holds",
          "request": {
            "name": "Add or remove entities this consumer holds",
            "description": {
              "content": "Tells Atlas which entities this consumer holds: entity ids only, never your own record. A holding decides what is answered for the entity: the people its registers name, and the layers answered only for a held entity. Add entities as your users attach them to their records, and remove them when they detach. Data answered only for a held entity, such as a company's officers, can take until the next day to appear.\n\n`add` and `remove` take up to 500 ids each. An id in both is added. Adding an id already held, or removing one not held, changes nothing. The answer is how many entities the consumer now holds. When the last holding of an entity ends, the names kept for it are deleted.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Send entity ids only, never your own record or anything about a person.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "holdings"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Which held entities merged or split since a date",
          "request": {
            "name": "Which held entities merged or split since a date",
            "description": {
              "content": "Which entities this consumer holds have moved since a date: an id that merged into another (`merged`: `from` now answers as `to`), or an entity that split (`split`: `to` split off `from`, which keeps its id). Every id still answers; call this daily or so to update the ids you store. Oldest first.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Send entity ids only, never your own record or anything about a person.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "holdings",
                "moved"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "since",
                  "value": "<string>",
                  "description": "(Required) Moves on or after this day."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Reports",
      "description": {
        "content": "Figures over many entities at once: counts, distributions, shares and summaries, grouped by area or by field, with one entity benchmarked against the rest. Save a report and it runs again on every data release and says what moved. Figures only, never a list. The [reports guide](https://atlas.oromiq.com/developers/guides/reports/) walks through it.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Counts, distributions, shares and summaries over the entities a search finds, by area or field",
          "request": {
            "name": "Counts, distributions, shares and summaries over the entities a search finds, by area or field",
            "description": {
              "content": "Figures over many entities at once, as totals and percentages only: never a list of entities, addresses or people. For example, how many care homes in each region hold each rating, or how one home compares with the rest of its local authority. See the [reports guide](https://atlas.oromiq.com/developers/guides/reports/).\n\n**Which entities**: `conditions` as a search takes them (none required), an optional `level` and at most one `scope`: `area`, `near`, `related`, `savedSearch` or `holdings`. **What to measure**: up to 20 `measures`, each a `count`, a `distribution`, a `share` or a `summary`, broken down by up to 2 `groupBy`: an area, `operator` or a catalogue field. Wards and integrated care boards are keyed by ONS code, with names in `labels`.\n\n**What comes back**: `total` is how many entities were found; `overall` holds every measure over all of them, and `groups` each group's `count` and measures; `legend` says what each measure is, for a table or a chart. In each measure, `withValue` is how many entities in the group have a value for the field and `withoutValue` how many do not. A distribution lists each option with its `count`, how many entities have that option, and its `percent`, that count as a percentage of `withValue`; a share gives the `count` meeting the test and the same `percent`. Show `withValue` beside every percentage. A group with fewer than 5 entities gives its count in `withheld` and no measures, and so does the whole. Show `attributions`, `notices` and `currency` with the figures.\n\nAn enrichment-only field cannot be a condition, a grouping or a measure, and nothing is grouped or measured by a name, an address, a postcode or a person (`LICENCE_REFUSED`).\n\n`cost` says how the price was made up, and `charged` what the call spent. With too few tokens the query is refused with `TOKENS_EXHAUSTED`, saying what it would have cost.\n\n**Cost**: a report run, plus a price per 1,000 entities in scope, rounded up, up to the most one run takes; a subject adds a position, and each series or history part a baseline. `POST /v1/stats/cost` says the figure first, for nothing. See [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 2 groupings, 20 measures, 20 conditions, 500 groups and 10 seconds; past any of them the query is refused, never cut short. A distribution lists at most its 50 most common options, with the rest added together in `otherOptions`. `related` measures at most 1,000 entities. `limit` caps the groups returned, 100 by default and at most 500; `moreGroups` says when there were more.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show `attributions`, `notices` and `currency` wherever you show the figures, and show `withValue` beside every percentage so a figure is never read as covering more entities than it does.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "stats"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"measures\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"level\": \"<string>\",\n  \"asAt\": \"<string>\",\n  \"scope\": {\n    \"area\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"near\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"related\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"savedSearch\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"holdings\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  },\n  \"subject\": \"<string>\",\n  \"series\": \"<boolean>\",\n  \"sort\": {\n    \"by\": \"count\",\n    \"measure\": \"<integer>\",\n    \"option\": \"<string>\",\n    \"desc\": \"<boolean>\"\n  },\n  \"limit\": 100\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "What a stats query would take, without running it",
          "request": {
            "name": "What a stats query would take, without running it",
            "description": {
              "content": "What a stats query would take, without running it. Send the same body as `POST /v1/stats`: it is checked exactly as a run is (fields, licence rules, the subject in scope), priced on the entities in scope, and not run. The run then takes exactly `cost.tokens`.\n\n**What comes back**: `cost.entities` is how many entities the conditions and the scope find; `report` the run's price for them, `position` the subject's where the query names one, `baseline` the series and history parts, and `tokens` the whole.\n\n**Cost**: nothing.\n\n**Limits**: as `POST /v1/stats`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show `attributions`, `notices` and `currency` wherever you show the figures, and show `withValue` beside every percentage so a figure is never read as covering more entities than it does.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "stats",
                "cost"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"measures\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"level\": \"<string>\",\n  \"asAt\": \"<string>\",\n  \"scope\": {\n    \"area\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"near\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"related\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"savedSearch\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"holdings\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  },\n  \"subject\": \"<string>\",\n  \"series\": \"<boolean>\",\n  \"sort\": {\n    \"by\": \"count\",\n    \"measure\": \"<integer>\",\n    \"option\": \"<string>\",\n    \"desc\": \"<boolean>\"\n  },\n  \"limit\": 100\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Keep a stats query, re-run on every release with what moved",
          "request": {
            "name": "Keep a stats query, re-run on every release with what moved",
            "description": {
              "content": "Saves a stats query with a `label` and an `alert`, which says how far a figure must move between two runs to count as a move. Takes the same fields as `POST /v1/stats`, runs at once (a query that would be refused is refused now) and runs again on every release, each run compared with the one before. Read what moved with `GET /v1/reports/{reportId}`, or list the reports that moved with `GET /v1/reports?moved=true`. Only the query, its label and its figures are kept. The small-group rule and the refusals of `POST /v1/stats` apply.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: at most 50 reports a consumer, and the last 60 runs a report. A report cannot keep a `savedSearch` scope: save the conditions instead. A report whose answer could be too large is refused with `REPORT_TOO_LARGE`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show `attributions`, `notices` and `currency` wherever you show the figures, and show `withValue` beside every percentage so a figure is never read as covering more entities than it does.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "reports"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"measures\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"level\": \"<string>\",\n  \"asAt\": \"<string>\",\n  \"scope\": {\n    \"area\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"near\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"related\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"savedSearch\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"holdings\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  },\n  \"subject\": \"<string>\",\n  \"series\": \"<boolean>\",\n  \"sort\": {\n    \"by\": \"count\",\n    \"measure\": \"<integer>\",\n    \"option\": \"<string>\",\n    \"desc\": \"<boolean>\"\n  },\n  \"limit\": 100,\n  \"label\": \"<string>\",\n  \"alert\": {\n    \"count\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"points\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "This consumer's saved reports, the most recently moved first",
          "request": {
            "name": "This consumer's saved reports, the most recently moved first",
            "description": {
              "content": "This consumer's saved reports, the most recently moved first, without their figures. `moved=true` lists only those whose latest run moved. Read one with `GET /v1/reports/{reportId}`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: 50 a page by default, at most 100. Follow `next` with `cursor`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show `attributions`, `notices` and `currency` wherever you show the figures, and show `withValue` beside every percentage so a figure is never read as covering more entities than it does.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "reports"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "moved",
                  "value": "<string>",
                  "description": "true: only the reports whose latest run moved."
                },
                {
                  "disabled": false,
                  "key": "cursor",
                  "value": "<string>",
                  "description": "An opaque page token: send back the `next` value of the previous page. Leave out for the first page."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "50",
                  "description": "Reports per page, at most 100. 50 when left out."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A saved report: its latest answer and its runs, each saying what moved",
          "request": {
            "name": "A saved report: its latest answer and its runs, each saying what moved",
            "description": {
              "content": "One saved report: its query, its `alert`, its `latest` answer (as `POST /v1/stats` returns one, with attribution lines, notices and currency) and its `runs`, newest first. Each run says how many entities it found (`total`), whether anything moved, and lists its `moves`, largest first: the group (`key`, null for the whole), the measure (its index in `measures`, -1 for the group's size), `what` moved, its `unit` and the values `from` and `to`. A group reaching 5 entities or falling under 5 is always a move. A run that could not give figures says why in `error`. Readable only while the report's layers are all still subscribed; otherwise `LAYER_NOT_SUBSCRIBED`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: the last 60 runs, and at most 200 moves a run.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show `attributions`, `notices` and `currency` wherever you show the figures, and show `withValue` beside every percentage so a figure is never read as covering more entities than it does.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "reports",
                ":reportId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "reportId",
                  "description": "(Required) A saved report's id, rp_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Delete a saved report and its runs",
          "request": {
            "name": "Delete a saved report and its runs",
            "description": {
              "content": "Deletes a saved report and its runs. A consumer keeps at most 50 reports.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show `attributions`, `notices` and `currency` wherever you show the figures, and show `withValue` beside every percentage so a figure is never read as covering more entities than it does.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "reports",
                ":reportId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "reportId",
                  "description": "(Required) A saved report's id, rp_ and a random part."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Benchmarks",
      "description": {
        "content": "A benchmarked fact measured across a cohort as a series over time, and where one entity stands against that cohort.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "A cohort baseline as a time series",
          "request": {
            "name": "A cohort baseline as a time series",
            "description": {
              "content": "A benchmarked fact measured across a group of entities, as a daily series: the share of care homes in a region holding each rating, for one. Figures are totals over the group, never one entity's.\n\n- `baselineKey` is a benchmarked fact's catalogue key, such as `cqc.rating` or `cqc.beds`. A key that is not benchmarked answers `CONDITIONS_INVALID`, whose message lists the facts that are.\n- `cohort` is who is measured: `all`, `region:<name>`, `localAuthority:<name>`, or `<fact key>:<value>`, such as `cqc.serviceType:Care home service with nursing`. A cohort with nothing measured answers an empty series.\n- Each point gives `count`, how many entities were measured, and `metrics`. A cohort with fewer than 5 entities gives its `count` with empty `metrics`.\n- `kind` says how to read `metrics`: a distribution gives `pct.<option>` and `count.<option>`; a mean gives `mean`, `median`, `p25`, `p75`, `min`, `max` and `stddev`; a share gives `pct`.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: the consumer must be subscribed to the layer the key names (`cqc.rating` reads `cqc`), otherwise `LAYER_NOT_SUBSCRIBED` with nothing charged.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each layer's attribution line wherever you show the figures.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "baselines",
                ":baselineKey"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "cohort",
                  "value": "<string>",
                  "description": "(Required) Who is measured. all is the whole layer. region:<name> and localAuthority:<name> are an area. <fact key>:<value> is a cohort by another fact of the layer, such as cqc.serviceType:Care home service with nursing. The cohorts a fact offers are in its catalogue entry's benchmark."
                },
                {
                  "disabled": false,
                  "key": "from",
                  "value": "<string>",
                  "description": "Only points on or after this date."
                },
                {
                  "disabled": false,
                  "key": "to",
                  "value": "<string>",
                  "description": "Only points on or before this date."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "baselineKey",
                  "description": "(Required) A benchmarked fact, by its catalogue key: cqc.rating, gender_pay_gap.medianHourlyGapPercent."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Where an entity or portfolio stands against a cohort",
          "request": {
            "name": "Where an entity or portfolio stands against a cohort",
            "description": {
              "content": "Where one entity stands against a cohort on a benchmarked fact: `above` means better than most of the cohort, `below` means worse, and `inline` means much the same. The answer carries the entity's `value`, how far it is from the cohort (`delta`), the cohort's `count` and `metrics`, and its `trajectory` over the last year.\n\n- `delta` for a choice, such as a rating, is the percent of the cohort on worse options less the percent on better ones. For a number, it is the value less the cohort mean. Where lower is better, above and below follow the fact's better direction.\n- `position` is `unknown` when the entity has no value for the fact, its option has no place in the order (the CQC's Insufficient evidence to rate), or the cohort has fewer than 5 entities, which shows its `count` alone.\n- `cohort` takes the same values as `GET /v1/baselines/{baselineKey}`.\n\n`charged` says what the call spent.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: one entity and one fact a call. The consumer must be subscribed to the layer the key names, otherwise `LAYER_NOT_SUBSCRIBED` with nothing charged. An entity the fact's layer does not know answers `NOT_FOUND`.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show each layer's attribution line wherever you show the figures.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "positions"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"entityId\": \"<string>\",\n  \"baselineKey\": \"<string>\",\n  \"cohort\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Alerts",
      "description": {
        "content": "Standing searches and watches that tell you as data arrives, through a feed you poll. The [alerts guide](https://atlas.oromiq.com/developers/guides/alerts/) walks through it.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "The client's standing searches and watches",
          "request": {
            "name": "The client's standing searches and watches",
            "description": {
              "content": "The calling consumer's alerts: its standing searches and watches. Each says whether new data is being checked against it (`matching`), and if not, why (`stopped`, `notice`); a `notice` can also say why fewer events are sent while it goes on, such as a paused watch.\n\n`heldBackLastDay` on an interest counts the events dropped past its limit of 1,000 an hour in the last 24 hours; beside `data`, it counts those dropped past the consumer's limit of 5,000 an hour across its interests.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Add a standing search or watch",
          "request": {
            "name": "Add a standing search or watch",
            "description": {
              "content": "Adds an alert: a standing search (`kind: \"search\"`, with `conditions` as `POST /v1/search` takes them, narrowing rule included) or a watch (`kind: \"watch\"`, with the `entityIds` to follow). Events arrive through `GET /v1/interests/events` and your webhook.\n\n- `fields`: the catalogue keys whose change counts. Left out, any change you could see counts. Never a field about a person.\n- `on`: `entered`, `changed`, `left`. Left out, `entered` and `changed`. A watch is told of `changed` only.\n- `matching` in the answer says whether new data is checked against the interest. A search whose conditions cannot be checked as data arrives is kept with `matching: false` and a `notice`; a watch that would need the same is refused with `WATCH_NOT_LIVE`.\n- A new interest sends nothing for what already matches: run the same conditions as a search for the current list.\n- An interest over a layer answered only for a held entity, such as the ICO's, is refused.\n\nA watch costs nothing.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: at most 50 interests per consumer, and 1,000 events an interest an hour; past that, one `interest.too_broad` event and the rest are dropped.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"<string>\",\n  \"layers\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"label\": \"<string>\",\n  \"level\": \"<string>\",\n  \"conditions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"entityIds\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ],\n  \"fields\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"on\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The calling consumer's interest events, with a cursor or a time window, waiting up to 30 seconds",
          "request": {
            "name": "The calling consumer's interest events, with a cursor or a time window, waiting up to 30 seconds",
            "description": {
              "content": "The calling consumer's feed: every event of its alerts, oldest first, kept 30 days.\n\n- Keep `next` and send it back as `after`. A cursor is yours alone; one past the end of your feed is refused.\n- `wait`, up to 30 seconds, holds the call until an event arrives.\n- `from` and `to` read a window again, if you lost your cursor; `interestId` keeps to one interest. Page with `next` and the same bounds; a call answering no events has read the window.\n- Read `type` first and ignore any type you do not know: `interest.change`, `interest.too_broad`, `consumer.too_broad`, `report.moved` and `person.notice`.\n- A `person.notice` says a person this consumer was given has objected or asked for erasure: act on it by its `actBy`. `GET /v1/people/notices` lists the same.\n- An event with data from a layer you are no longer subscribed to is withheld. People are never named in an event, and a postcode is its outward code only.\n\nCounted in your usage.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests",
                "events"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "after",
                  "value": "<string>",
                  "description": "The event id to resume after: the previous answer's `next`. Left out, the feed starts with the oldest event still kept, 30 days back."
                },
                {
                  "disabled": false,
                  "key": "wait",
                  "value": "0",
                  "description": "With nothing new, how many seconds to hold the call open for an event before returning, at most 30. 0 returns at once."
                },
                {
                  "disabled": false,
                  "key": "from",
                  "value": "<dateTime>",
                  "description": "Only events made at or after this instant, for a client that lost its cursor or wants a window again. With `after`, the later of the two starts the page. Events are kept 30 days."
                },
                {
                  "disabled": false,
                  "key": "to",
                  "value": "<dateTime>",
                  "description": "Only events made before this instant. A page that reaches it returns `next` as usual; once a call returns no events, the window is read."
                },
                {
                  "disabled": false,
                  "key": "interestId",
                  "value": "<string>",
                  "description": "Only this standing search's or watch's events, also once it has been deleted."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "100",
                  "description": "Events per page, at most 500. 100 by default."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Remove a standing search or watch",
          "request": {
            "name": "Remove a standing search or watch",
            "description": {
              "content": "Removes a standing search or watch, by its id. Its events stay in the feed for their 30 days.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests",
                ":interestId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "interestId",
                  "description": "(Required) The id of the standing search or watch."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Webhooks",
      "description": {
        "content": "A signed webhook on an alert, so events reach you as they happen.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Register the consumer's webhook; its signing secret is shown once",
          "request": {
            "name": "Register the consumer's webhook; its signing secret is shown once",
            "description": {
              "content": "Registers the consumer's webhook: one https address, to which Atlas posts each event. The answer holds `secret`, **shown this once**. Registering again replaces the webhook with a new secret, resumes a paused one and starts from the newest event; ask for earlier events with `POST /v1/interests/webhook/redeliver`.\n\n- Each delivery is a POST of up to 50 events and the cursor after them, `{ data, next }`, with `x-atlas-timestamp` (Unix seconds) and `x-atlas-signature` (`v1=` and the hex HMAC SHA-256 of the timestamp, a full stop and the raw body, keyed with the secret).\n- Answer 2xx within 10 seconds. A failure is retried with growing gaps for 24 hours, then the webhook is paused. A redirect is a failure.\n- An address that is, or resolves to, a private, loopback or link-local one is refused. Check the signature on every delivery; do not rely on the sending address.\n\nEach delivery is counted in your usage.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests",
                "webhook"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"<uri>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The consumer's webhook: its address, whether it is paused and why, its last delivery",
          "request": {
            "name": "The consumer's webhook: its address, whether it is paused and why, its last delivery",
            "description": {
              "content": "The consumer's webhook: its address, whether it is paused and why, and its last delivery, never its secret. A `notice` says when deliveries are stopped on Atlas's side; events stay in the feed meanwhile.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests",
                "webhook"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Remove the consumer's webhook",
          "request": {
            "name": "Remove the consumer's webhook",
            "description": {
              "content": "Removes the consumer's webhook. Nothing more is posted; events stay in the feed.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests",
                "webhook"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Send a window of events to the webhook again",
          "request": {
            "name": "Send a window of events to the webhook again",
            "description": {
              "content": "Sends a window of events to the webhook again, in order, marked `x-atlas-redelivery: true`, after anything new. `failedOnly` keeps to events no delivery was answered for. The answer says how many are `queued`. A second request replaces the first. Use an event's `id` to ignore one you already have.\n\nEach delivery is counted in your usage.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.\n\n**Your duties**: Show an event's `attributions` wherever you show its data, and `currency.asOf` where `currency.required` is true. Check every webhook delivery's signature.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "interests",
                "webhook",
                "redeliver"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": {\n    \"value\": \"<Error: Too many levels of nesting to fake this schema>\",\n    \"description\": \"Resend the events made at or after this instant. Events are kept 30 days.\"\n  },\n  \"to\": \"<dateTime>\",\n  \"interestId\": \"<string>\",\n  \"failedOnly\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Account",
      "description": {
        "content": "Your own subscriptions, usage, statement and bill. Called with the client key. The [account guide](https://atlas.oromiq.com/developers/guides/account/) walks through it.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "How this client may call Atlas: whether its consumers may hold keys of their own",
          "request": {
            "name": "How this client may call Atlas: whether its consumers may hold keys of their own",
            "description": {
              "content": "How this client may call Atlas: whether its consumers may hold keys of their own, and which are billed at a custom price.\n\n- **`consumerKeys.allowed`**: when false (the default), no consumer key is made or accepted: call with the client key and name the consumer in `x-atlas-consumer`. Consumer keys are turned on on request.\n- **`customPrices`**: the consumers billed at an agreed price in place of their plan's. Their tokens are still counted and limited by their plan.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "account"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The client's plan, packs, pool of tokens and the way it pays",
          "request": {
            "name": "The client's plan, packs, pool of tokens and the way it pays",
            "description": {
              "content": "Your plan: what every consumer of the account draws on. The plan is the account's, not a consumer's: its tokens are one pool every consumer spends from, its packs give every consumer their layers, and its price is on the account's bill.\n\n- **`tokens.month`**: the pool this month: the allowance, what was granted or bought, what every consumer has spent, and what is left. On an annual plan `tokens.year` is the year's pool, twelve months in one.\n- **`tenants`**: how many consumers the plan includes, how many made a charged call this month, and what each beyond those included costs a month.\n- **`packs`**: the core layers every plan has, the packs you have switched on, how many the plan includes, and what each beyond them costs a month. `PUT /v1/plan/packs` changes them.\n- **`overage`**: off by default, so the allowance is a hard limit. On, calls past the allowance are charged at the top-up rate up to the cap. `PUT /v1/plan/overage` sets it.\n- **`sandbox`**: true on the sandbox plan, where every answer carries the `x-atlas-sandbox` header. `POST /v1/plan/upgrade` moves to a paid plan.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "plan"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Choose the layer packs the client has",
          "request": {
            "name": "Choose the layer packs the client has",
            "description": {
              "content": "Choose the layer packs the account has. Core comes with every plan; each pack beyond those the plan includes costs its monthly price, on the account's bill from this month. Every consumer reads the packs' layers at once. A pack taken away stops its layers for every consumer; a saved search or report over them is refused until it is back.\n\n**Send**: `packs`, the pack keys, as `GET /v1/pricing` lists them. The answer is the plan as it stands.\n\n**Cost**: the packs beyond the plan's allowance, each month.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "plan",
                "packs"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"packs\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Turn overage on or off, with its cap",
          "request": {
            "name": "Turn overage on or off, with its cap",
            "description": {
              "content": "Overage on or off. Off, the allowance is a hard limit: a call that would pass it is refused with `TOKENS_EXHAUSTED` and never billed. On, calls past the allowance are charged at the plan's top-up rate, up to `capPence` a month (or without limit when the cap is null), and the month's overage is a line on the bill. A consumer's own cap still holds. The sandbox plan has no overage.\n\n**Cost**: nothing to set; the overage itself at the top-up rate.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "plan",
                "overage"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enabled\": \"<boolean>\",\n  \"capPence\": \"<integer>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Move the client to another plan",
          "request": {
            "name": "Move the client to another plan",
            "description": {
              "content": "Move the account to another published plan, monthly or annual. From the sandbox, or to a dearer plan, the move is paid in advance: on an account paid by card, the plan's price is charged to the card on file, and when there is none the answer carries `checkoutUrl`, where a card is given, after which the move is made. An account paid by invoice moves at once and is invoiced. A move to a cheaper plan takes effect from next month.\n\n**Cost**: the new plan's price, in advance.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "plan",
                "upgrade"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"tier\": \"<string>\",\n  \"billing\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Make the client's key anew, shown once",
          "request": {
            "name": "Make the client's key anew, shown once",
            "description": {
              "content": "Your client key, made anew. The key is in the answer once and never shown again: store it now. Any key the account had before is revoked at the same moment, so a rotation hands over the new key first. Your servers call with it as a bearer token, naming the consumer in `x-atlas-consumer`.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "account",
                "key"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The calling consumer's layer subscriptions",
          "request": {
            "name": "The calling consumer's layer subscriptions",
            "description": {
              "content": "The layers the calling consumer is subscribed to, each with when it was subscribed: the layers it may name in `layers`. `layers: [\"subscribed\"]` (or `layers=subscribed`) stands for all of them. Only the client changes them, with `PUT /v1/consumers/{consumerId}/subscriptions`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "subscriptions"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The client's itemised bill for a period, one line per consumer",
          "request": {
            "name": "The client's itemised bill for a period, one line per consumer",
            "description": {
              "content": "The client's itemised bill for a month: one line per consumer that existed in it (suspended and deleted ones included, under the label each had), with its plan and price, any tokens bought, tokens used by kind and calls made, and the total.\n\n- A line's `amount` is its plan's monthly price (`tierPrice`, or its custom price) plus any top-ups. Tokens used never add to the bill.\n- A month under way is current at every moment; once it ends it is `closed` and never changes.\n- **`subtotal`** is what the lines add up to; **`discount`** is any percent off agreed with Atlas and what it takes off; **`total`** is what you pay.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `month` is YYYY-MM (UTC); left out, the current month. Amounts are in pence.\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "month",
                  "value": "<string>",
                  "description": "YYYY-MM; default the current month."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "How this client pays: its billing email, whether a card is on file, and its standing",
          "request": {
            "name": "How this client pays: its billing email, whether a card is on file, and its standing",
            "description": {
              "content": "How this client pays Atlas: whether billing is set up (a billing email), whether a card is on file, whether the account is suspended for a payment that failed, and any discount agreed.\n\n- Each month's plans are charged in advance, to the card on file, when the month opens; a consumer added in the month is charged its full month at once; a move to a dearer plan the difference. Tokens beyond a plan's allowance are bought with `POST /v1/billing/top-up-session`.\n- **`suspendedForPayment`** true means every consumer call is refused until an invoice is paid; the billing operations and `GET /v1/billing` still answer, so the account can be put right.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing",
                "account"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Set the billing email, which sets billing up",
          "request": {
            "name": "Set the billing email, which sets billing up",
            "description": {
              "content": "Sets where invoices and receipts go. Setting it the first time sets billing up: Atlas can then charge the account, once a card is given with `POST /v1/billing/card-session`.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing",
                "account"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"<email>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A page where the client gives a card",
          "request": {
            "name": "A page where the client gives a card",
            "description": {
              "content": "A page, hosted by the payment provider, where a person gives the card each charge is taken from. Send the person to `url`; the card never passes through Atlas or your servers. Ask for a new page each time: one lasts a short while.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing",
                "card-session"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A page where the client manages its cards and sees its invoices",
          "request": {
            "name": "A page where the client manages its cards and sees its invoices",
            "description": {
              "content": "A page, hosted by the payment provider, where a person sees the account's invoices and receipts and changes its cards. Send the person to `url`.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing",
                "portal-session"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A page where the client buys tokens for one consumer",
          "request": {
            "name": "A page where the client buys tokens for one consumer",
            "description": {
              "content": "A page, hosted by the payment provider, where a person pays for tokens for one consumer: `tokens` at the plan's top-up price, less any discount. Send the person to `url`; the tokens are added to the consumer once the payment settles, within a minute, and show on the bill as tokens bought. `pence` is the price before VAT.\n\n**Cost**: the price given.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing",
                "top-up-session"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"consumerId\": \"<string>\",\n  \"tokens\": \"<integer>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The client's invoices, newest first",
          "request": {
            "name": "The client's invoices, newest first",
            "description": {
              "content": "The client's invoices, newest first, as the payment provider holds them: each with its id, its hosted page (where an open one can be paid), its status and its amount after any discount.\n\n**Cost**: nothing.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "billing",
                "invoices"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The calling consumer's calls, refusals and tokens for a month (this month by default)",
          "request": {
            "name": "The calling consumer's calls, refusals and tokens for a month (this month by default)",
            "description": {
              "content": "The calling consumer's month: its calls and rate-limit refusals, failed calls by outcome, each operation's calls, its tokens (allowance, granted, bought, spent, balance, cap and when the month renews), tokens spent by kind, a daily series, and, for the current month, `unusualUse`: whether its calls are far above its own recent normal, a sign its key may be misused. A call that would take more tokens than `tokens.balance` is refused with `TOKENS_EXHAUSTED`, and nothing is charged. Counts only, never what was searched or read.\n\nCounts are a minute or so behind.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `month` is YYYY-MM (UTC); left out, the current month. The month renews at midnight UTC on the first.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "usage"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "month",
                  "value": "<string>",
                  "description": "YYYY-MM; default the current month."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The calling consumer's token movements for a month, newest first",
          "request": {
            "name": "The calling consumer's token movements for a month, newest first",
            "description": {
              "content": "The calling consumer's token movements for a month, newest first: every charge (a full read, a history unlock, search rows, a lookup, a prefill, people, a benchmark, a network map, a report run, a standing search's month, a held entity's month), every refund, grant, top-up and the month's renewal.\n\nCharges are negative and everything else positive; `spentToDate` is the month's spending up to and including the row, net of refunds. A refund (`kind: refund`, with `refundOf`) is a charge given back because its answer could not be sent. A row never says who granted tokens or why, or what was searched: a search charge names its saved search and how many rows it was for.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `limit` up to 200 rows a page (100 by default); follow `next` for more. `month` is YYYY-MM (UTC); left out, the current month.\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "statement"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "month",
                  "value": "<string>",
                  "description": "YYYY-MM; default the current month."
                },
                {
                  "disabled": false,
                  "key": "cursor",
                  "value": "<string>",
                  "description": "An opaque page token: send back the `next` value of the previous page. Leave out for the first page."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "100",
                  "description": "Rows per page, at most 200."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Consumers",
      "description": {
        "content": "Your consumers: make them, give them plans, subscriptions and keys, and read their usage and statements.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "The consumers the client manages",
          "request": {
            "name": "The consumers the client manages",
            "description": {
              "content": "Every consumer of this client, oldest first, each with its label, status, plan, subscriptions, keys (the active one and any revoked, never the key itself) and any monthly token cap. A consumer is a party inside your account that reads data, such as a tenant, an environment or a customer of yours; keep the mapping from consumer id to your own ids. A label is yours to choose; never use your own id for the party as a label.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Make a consumer inside the client and get its id",
          "request": {
            "name": "Make a consumer inside the client and get its id",
            "description": {
              "content": "Makes a consumer inside this client and returns it with its new id. Each consumer draws on your plan's tokens up to its own cap, and has its own subscriptions, holdings and usage.\n\n- **`tier`**: leave it out, and the consumer is on your plan (`GET /v1/plan`). An account without a plan names a current one from `GET /v1/plans`.\n- **`subscriptions`** (optional) subscribes it to layers at once, beside the layers your packs already give it; change them with `PUT /v1/consumers/{consumerId}/subscriptions`.\n- **`label`** (optional, up to 120 characters) is what you call it, never your own id for the party.\n- The consumer has no key. Call for it with the client key and `x-atlas-consumer`, or, where your account allows consumer keys, make one with `POST /v1/consumers/{consumerId}/keys`.\n\nYour plan includes a number of consumers; one beyond them is billed at the plan's price for an extra consumer in the month it makes a charged call, or refused where the plan allows no more.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"label\": \"<string>\",\n  \"tier\": \"<string>\",\n  \"subscriptions\": [\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "One consumer: its label, status, tier and subscriptions",
          "request": {
            "name": "One consumer: its label, status, tier and subscriptions",
            "description": {
              "content": "One consumer of this client: its label, status, plan, subscriptions, keys (the active one and any revoked, never the key itself), any monthly token cap, and whether it is billed at a custom price. A consumer of another client returns `CONSUMER_NOT_FOUND`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Rename, suspend or resume a consumer",
          "request": {
            "name": "Rename, suspend or resume a consumer",
            "description": {
              "content": "Renames a consumer, suspends or resumes it, or sets its monthly token cap. Send only what changes.\n\n- **`status`**: `suspended` refuses every call the consumer makes (`CONSUMER_SUSPENDED`) until it is `active` again. Its holdings and saved searches are kept.\n- **`tokenCap`**: the most tokens it may spend in a month, at most its plan's allowance; `null` removes the cap. A call that would pass it is refused with `TOKENS_EXHAUSTED`.\n- **`label`**: up to 120 characters. The bill shows the new label from now on.\n\nSuspending a consumer does not take its plan off the month's bill.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"label\": \"<string>\",\n  \"status\": \"<string>\",\n  \"tokenCap\": \"<integer>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Delete a consumer and everything Atlas holds for it",
          "request": {
            "name": "Delete a consumer and everything Atlas holds for it",
            "description": {
              "content": "Deletes a consumer and erases everything Atlas holds for it: holdings, subscriptions, token account, usage counts, keys, saved searches, the record of rows served to it, and its watches. It cannot be undone. The answer counts what was erased.\n\nThe consumer's line on this month's bill stays, under the label it had, and the month's plan price is still due.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Move a consumer to another plan",
          "request": {
            "name": "Move a consumer to another plan",
            "description": {
              "content": "Moves a consumer to another plan. `GET /v1/plans` lists the plans and marks the retired ones, which a consumer already on keeps but none can move to.\n\nThe new plan's rate, allowance and prices apply from then on. The month's bill line takes the new plan's price (an agreed custom price stands), never pro rata.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "tier"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"tier\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A consumer's layer subscriptions",
          "request": {
            "name": "A consumer's layer subscriptions",
            "description": {
              "content": "The layers a consumer is subscribed to, each with when it was subscribed, in layer order. A call whose `layers` names any other layer is refused with `LAYER_NOT_SUBSCRIBED`. The consumer reads its own list with `GET /v1/subscriptions`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "subscriptions"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Subscribe a consumer to layers, or take some away",
          "request": {
            "name": "Subscribe a consumer to layers, or take some away",
            "description": {
              "content": "Subscribes a consumer to layers (`add`) or removes some (`remove`), in one call, and returns its subscriptions afterwards.\n\n- A layer added must be listed in `GET /v1/layers`; any other is refused with `LAYER_NOT_AVAILABLE`, and nothing changes.\n- Removing a layer not subscribed does nothing. Adding one already subscribed keeps its original date.\n- A removed layer can no longer be read by the consumer.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: up to 30 layers in each list.\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "subscriptions"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A consumer's calls, refusals and tokens for a month (this month by default)",
          "request": {
            "name": "A consumer's calls, refusals and tokens for a month (this month by default)",
            "description": {
              "content": "One consumer's month, the same answer the consumer reads with `GET /v1/usage`: its calls and rate-limit refusals, failed calls by outcome, each operation's calls, its tokens (allowance, granted, bought, spent, balance, cap and when the month renews), tokens spent by kind, a daily series, and, for the current month, `unusualUse`: whether its calls are far above its own recent normal, a sign its key may be misused. Counts only, never what was searched or read.\n\nCounts are a minute or so behind.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `month` is YYYY-MM (UTC); left out, the current month.\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "usage"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "month",
                  "value": "<string>",
                  "description": "YYYY-MM; default the current month."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "A consumer's token movements for a month, newest first",
          "request": {
            "name": "A consumer's token movements for a month, newest first",
            "description": {
              "content": "One consumer's token movements for a month, newest first, the same answer the consumer reads with `GET /v1/statement`: every charge (a full read, a history unlock, search rows, a lookup, a prefill, people, a benchmark, a network map, a report run, a standing search's month, a held entity's month), every refund, grant, top-up and the month's renewal.\n\nCharges are negative and everything else positive; `spentToDate` is the month's spending up to and including the row, net of refunds. A refund (`kind: refund`, with `refundOf`) is a charge given back because its answer could not be sent. A row never says who granted tokens or why, or what was searched: a search charge names its saved search and how many rows it was for.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `limit` up to 200 rows a page (100 by default); follow `next` for more. `month` is YYYY-MM (UTC); left out, the current month.\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "statement"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "month",
                  "value": "<string>",
                  "description": "YYYY-MM; default the current month."
                },
                {
                  "disabled": false,
                  "key": "cursor",
                  "value": "<string>",
                  "description": "An opaque page token: send back the `next` value of the previous page. Leave out for the first page."
                },
                {
                  "disabled": false,
                  "key": "limit",
                  "value": "100",
                  "description": "Rows per page, at most 200."
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Make a consumer's key, shown once; the previous active one is revoked",
          "request": {
            "name": "Make a consumer's key, shown once; the previous active one is revoked",
            "description": {
              "content": "Makes a key of the consumer's own (`ck_` and 40 characters) and returns it this once: store it, as it cannot be shown again. Making one revokes the consumer's previous active key at the same moment (`replaced: true`). A consumer has at most one active key.\n\nOnly where your account allows consumer keys (`GET /v1/account`); otherwise refused with `CONSUMER_KEYS_NOT_ALLOWED`.\n\nOptional limits, enforced on every call the key makes:\n\n- **`expiresAt`**: when it stops working (`CONSUMER_KEY_EXPIRED` after).\n- **`allowedAddresses`**: up to 20 IPv4 or IPv6 addresses or CIDR ranges it works from (`CONSUMER_KEY_ADDRESS_NOT_ALLOWED` from any other).\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\nNever put a key in a browser or an app you ship: call Atlas from your servers.\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "keys"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"expiresAt\": \"<dateTime>\",\n  \"allowedAddresses\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Revoke a consumer's key",
          "request": {
            "name": "Revoke a consumer's key",
            "description": {
              "content": "Revokes one of a consumer's keys at once: calls with it are refused from then on (`UNAUTHENTICATED`). The key stays in the consumer's list with `revokedAt` set. To replace a key, make a new one with `POST /v1/consumers/{consumerId}/keys`, which revokes the old one.\n\nA key that does not exist, is not this consumer's, or is already revoked returns `NOT_FOUND`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client itself: the client key with no `x-atlas-consumer` header. A consumer is refused with `CONSUMER_CANNOT_MANAGE`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "consumers",
                ":consumerId",
                "keys",
                ":keyId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "consumerId",
                  "description": "(Required) A consumer inside a client: a tenant the client manages. Issued by Atlas; the client keeps its own mapping."
                },
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "keyId",
                  "description": "(Required) A consumer key's id. It starts ckey_."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Assistants",
      "description": {
        "content": "The assistants (such as a chat app) your people have connected to Atlas through its MCP endpoint, each reading as one of your consumers: what a sign-in asks for, the decision, the connections it made, and cutting one off.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "What an assistant asks for when it signs in: who it is and where it goes next",
          "request": {
            "name": "What an assistant asks for when it signs in: who it is and where it goes next",
            "description": {
              "content": "What an assistant asks for when it signs in to Atlas through the MCP endpoint, for the page where a person decides: what the assistant calls itself and its OAuth client id (as it gave them, not checked by Atlas), the host the person is sent back to, what it asks to do (always `atlas`: read as the consumer chosen), and when the request lapses. The client console calls this on the page the sign-in lands on; your own integration need not.\n\nA request already decided, lapsed, or never made answers `CONNECTION_REQUEST_NOT_FOUND`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "connections",
                "requests",
                ":requestId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "requestId",
                  "description": "(Required) A sign-in an assistant has started and not yet had decided."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Approve an assistant’s sign-in as one of your consumers, or refuse it",
          "request": {
            "name": "Approve an assistant’s sign-in as one of your consumers, or refuse it",
            "description": {
              "content": "Approves an assistant's sign-in as one of your consumers, or refuses it. Approved, the assistant reads data as that consumer through the MCP endpoint, within the consumer's subscriptions and paid for in its tokens, and never writes; the connection it makes lasts until it is revoked, thirty days after its last use, or a year after it was made. Refused, the assistant is told so. Either way `redirectTo` is where to send the person next: the assistant's own address, carrying the outcome.\n\nA request already decided, lapsed, or never made answers `CONNECTION_REQUEST_NOT_FOUND`. Approving needs an active consumer of this client: another answers `CONSUMER_NOT_FOUND`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "connections",
                "requests",
                ":requestId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "requestId",
                  "description": "(Required) A sign-in an assistant has started and not yet had decided."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"approve\": \"<boolean>\",\n  \"consumerId\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The assistants connected to your consumers, newest first",
          "request": {
            "name": "The assistants connected to your consumers, newest first",
            "description": {
              "content": "Every assistant connected to one of your consumers, newest first, revoked ones included: the consumer each reads as, what the assistant calls itself, when it was approved, when it last read anything, when it ends of itself, and when it was revoked. Nothing here names a person: a connection is the assistant's, approved from the client console.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "connections"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Cut an assistant off: its connection stops at once",
          "request": {
            "name": "Cut an assistant off: its connection stops at once",
            "description": {
              "content": "Cuts an assistant off at once: every read with that connection is refused from then on, and the assistant has to sign in again, which lands on your console for a new decision. The connection stays in the list with `revokedAt` set.\n\nA connection that does not exist or is not this client's answers `CONNECTION_NOT_FOUND`.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** a consumer: the client key with `x-atlas-consumer` naming one of its consumers, or a consumer key where the account allows them. The client alone is refused with `CONSUMER_REQUIRED`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "connections",
                ":connectionId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "connectionId",
                  "description": "(Required) An assistant’s connection to one of your consumers."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "The consumer the call reads data as: one of your consumers, with the client key. Not sent with a consumer key, which names its own.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "Reference",
      "description": {
        "content": "What a program reads to plan its calls: the layers and the fields each sends, what changed and when, the plans and the prices.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Every live layer a consumer may subscribe to, with its licence",
          "request": {
            "name": "Every live layer a consumer may subscribe to, with its licence",
            "description": {
              "content": "Lists every layer a consumer may subscribe to: its key, name, publisher, summary, licence, the attribution line to show wherever its data is shown, whether it is enrichment-only (read on held entities only, never searched) and any deprecation. Show the attribution line with the layer's data; the CQC's includes its non-endorsement. Read one layer's fields with `GET /v1/layers/{layer}/schema`. `surface` is the same value as the `x-atlas-surface` header.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client or any of its consumers.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "layers"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "One of your consumers, to call as that consumer; left out, the call is the client's own. Not sent with a consumer key.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "What one layer sends: its fields, a JSON Schema and an example per field",
          "request": {
            "name": "What one layer sends: its fields, a JSON Schema and an example per field",
            "description": {
              "content": "Describes what one layer sends: each fact, status and date on an entity (`fields`) and each attached list with its item fields (`lists`), each with its client key, label, type, options, help, licence, whether it can be about a person, whether it is searchable and narrows, whether its history is kept, any benchmark, any deprecation and an example value. `schema` is a JSON Schema (draft 2020-12) for the layer's part of an entity. Read it again when `surface`, or the `x-atlas-surface` header, changes. An enrichment-only layer shows no example values and no searchable field.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Called by** the client or any of its consumers.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "layers",
                ":layer",
                "schema"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "<string>",
                  "key": "layer",
                  "description": "(Required) A layer key, such as companies_house, cqc or fsa. `GET /v1/layers` lists every layer with its licence."
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "One of your consumers, to call as that consumer; left out, the call is the client's own. Not sent with a consumer key.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "What changed for clients, per layer and key, since a date",
          "request": {
            "name": "What changed for clients, per layer and key, since a date",
            "description": {
              "content": "Lists what changed in the data for clients, per layer and client key, oldest first: a field added, removed, retyped, given new options, made searchable or not, deprecated or relabelled, and a layer added, removed or deprecated. Each change says when it took effect, whether it breaks a client reading the field as it was (only ever after a deprecation notice, with `until` the first day it may go) and, in a sentence, what changed. Poll with `since` set to the day you last read it, or when the `x-atlas-surface` header changes. Changes to the API's operations and shapes are in the contract changelog.\n\n**Cost**: see [pricing](https://atlas.oromiq.com/pricing/).\n\n**Limits**: `since` is a date (YYYY-MM-DD); `layers` keeps only those layer keys, comma-separated.\n\n**Called by** the client or any of its consumers.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "changelog"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "since",
                  "value": "<string>",
                  "description": "Only changes that reached clients on or after this day. Omit for every change."
                },
                {
                  "disabled": false,
                  "key": "layers",
                  "value": "<string>",
                  "description": "Comma-separated layer keys to keep. Omit for every layer."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "One of your consumers, to call as that consumer; left out, the call is the client's own. Not sent with a consumer key.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The plans: prices, allowances, consumers and packs included, rights and rate, with the price list",
          "request": {
            "name": "The plans: prices, allowances, consumers and packs included, rights and rate, with the price list",
            "description": {
              "content": "The plans and what each allows: its monthly and annual price, monthly token allowance, the consumers and layer packs it includes, what it licenses, its rate (calls a second and the burst), and whether and at what price tokens can be bought beyond the allowance. `tokens` is what each action costs in tokens and `rules` how a price scales or lapses, the same for every plan.\n\n- **`tokensPerMonth`** is a hard limit: a call that would pass it is refused with `TOKENS_EXHAUSTED`.\n- **What is listed:** a client sees the published plans, its own plans, and any other plan one of its consumers is on. A consumer key sees the published plans and its own plan.\n- **`current`** names the plan your client is on. Absent until Atlas has set one.\n- **`retired`** plans stay with the consumers already on them; no consumer can be given one.\n- Prices are in pence.\n\n**Cost**: nothing.\n\n**Called by** the client or any of its consumers.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "plans"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "One of your consumers, to call as that consumer; left out, the call is the client's own. Not sent with a consumer key.",
                "key": "x-atlas-consumer",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "The prices: the tokens each action takes and the published plans, with no key",
          "request": {
            "name": "The prices: the tokens each action takes and the published plans, with no key",
            "description": {
              "content": "The prices, with no key: what each action costs in tokens, the rules a price scales or lapses by, the operations that cost nothing, the published plans with their prices, allowances, consumers and packs included, rights and rate, and the layer packs. What the pricing page shows.\n\n- **`tokens`** names each action and what it takes. An action that finds nothing takes nothing.\n- **`rules`** are the figures a price scales by (a report per 1,000 entities in its scope, a network per node returned) and the days a row, a history, a summary or a dossier stays free.\n- **`free`** lists the operations that cost nothing, by operation id.\n- **`plans`** are the published plans, in order. A plan made for one client is not listed: `GET /v1/plans` lists it to that client.\n- **`packs`** are the layer packs: core comes with every plan; a plan includes some number of the others.\n- Prices are in pence. `asOf` is when they were last set.\n\n**Cost**: nothing, and no key is needed.\n\n**Called by** anyone: no key is needed.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "v1",
                "pricing"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    }
  ],
  "event": [],
  "variable": [
    {
      "type": "string",
      "value": "https://api.atlas.oromiq.com",
      "key": "baseUrl"
    }
  ],
  "info": {
    "name": "Atlas API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": {
      "content": "Atlas holds UK public register data about organisations and premises, joined into one set of entities, and returns it as JSON over HTTPS at `https://api.atlas.oromiq.com/v1`. This reference gives every operation, every field and every error code. The [guides](https://atlas.oromiq.com/developers/guides/) explain the ideas, starting with [Concepts](https://atlas.oromiq.com/developers/guides/concepts/), which defines every word used here.\n\n## Authentication\n\nSend your key as a bearer token on every call: `Authorization: Bearer <key>`. Your client key manages your account. Data is read as a consumer (a party inside your account, such as a tenant or an environment), so on every data call name one of your consumers in the `x-atlas-consumer` header. Keep keys on your servers, never in a browser or an app you ship.\n\n## Where to start\n\n1. `POST /v1/consumers` makes a consumer with a plan and the layers it may read.\n2. `GET /v1/catalogue?layers=subscribed` lists the fields you can search on and the operators each takes.\n3. `POST /v1/search/count` says how many entities match your conditions. `POST /v1/search` returns them a page at a time: send back `next` as `cursor` for the next page.\n4. `GET /v1/entities/{entityId}` returns everything the layers hold about one entity.\n5. `PUT /v1/holdings` tells Atlas which entities you keep records of. Some data, such as people, is answered only for those.\n\n## Answers\n\nEvery answer is JSON with the result in `data`. A list pages by cursor. Every answer carries the headers `x-atlas-surface` (the version of the fields and options you receive), `x-atlas-release` (the version of the data) and `x-ratelimit-limit`, `x-ratelimit-remaining` and `x-ratelimit-reset`. Every operation names the layers it reads in `layers`; a layer the consumer is not subscribed to is refused with `LAYER_NOT_SUBSCRIBED` and the list of what it may read.\n\n## Your duties\n\nEach register has a licence, and most ask that its attribution line is shown with its data. The lines travel in every answer that carries data, and each operation below ends with what you must do with what it returns.\n\n## Errors\n\nEvery error comes with an HTTP status and the same body, `{ \"error\": { \"code\", \"message\" } }`. The `code` is stable and machine-readable; the `message` is for a person and often says what to send instead. Anything a failed call charged is given back. Each operation lists the codes it can answer; the [errors guide](https://atlas.oromiq.com/developers/guides/errors/) explains every one and how to fix it.\n\n- **400** The request cannot be answered as sent: `CONDITIONS_INVALID`, `EXCLUDE_TOO_LARGE`, `INTEREST_CURSOR_INVALID`, `INTEREST_FIELD_INVALID`, `INTEREST_WINDOW_INVALID`, `INVALID_JSON`, `INVALID_REQUEST`, `LAYER_NOT_AVAILABLE`, `LICENCE_REFUSED`, `NARROWING_REQUIRED`, `PACK_NOT_FOUND`, `SCOPE_UNAVAILABLE`, `SEARCH_CURSOR_INVALID`, `STATS_INVALID`, `TENANT_LIMIT_REACHED`, `TIER_NOT_AVAILABLE`, `TIER_REQUIRED`, `TIER_RETIRED`, `TOKEN_CAP_ABOVE_ALLOWANCE`, `TOPUP_NOT_OFFERED`, `VALIDATION`, `VIA_NOT_CONNECTED`, `WATCH_ENTITY_NOT_IN_LAYERS`, `WATCH_NOT_LIVE`, `WEBHOOK_URL_NOT_ALLOWED`\n- **401** No current key: `CONSUMER_KEY_EXPIRED`, `UNAUTHENTICATED`\n- **402** Not enough tokens: `TOKENS_EXHAUSTED`\n- **403** Refused for this caller: `CLIENT_SUSPENDED`, `CONNECTION_NOT_ALLOWED`, `CONSUMER_CANNOT_MANAGE`, `CONSUMER_KEYS_NOT_ALLOWED`, `CONSUMER_KEY_ADDRESS_NOT_ALLOWED`, `CONSUMER_NOT_FOUND`, `CONSUMER_REQUIRED`, `CONSUMER_SUSPENDED`, `INTEREST_LAYER_NOT_ALLOWED`, `INTEREST_PERSON_FIELD`, `LAYER_NOT_SUBSCRIBED`\n- **404** Not found: `CONNECTION_NOT_FOUND`, `CONNECTION_REQUEST_NOT_FOUND`, `CONSUMER_NOT_FOUND`, `INTEREST_NOT_FOUND`, `LINK_NOT_FOUND`, `NOT_FOUND`, `REPORT_NOT_FOUND`, `SAVED_SEARCH_NOT_FOUND`, `WATCH_ENTITY_NOT_FOUND`, `WEBHOOK_NOT_FOUND`\n- **409** In conflict with what is already recorded: `BILLING_NOT_SET_UP`, `INTEREST_LIMIT_REACHED`, `LINK_ALREADY_REVIEWED`, `WEBHOOK_PAUSED`\n- **413** The body is too large: `PAYLOAD_TOO_LARGE`\n- **422** Cannot be answered as asked: `NO_AREA`, `REPORT_TOO_LARGE`, `STATS_TIMEOUT`, `STATS_TOO_LARGE`, `TOO_BROAD`, `TOO_MANY_GROUPS`, `TOO_MANY_REPORTS`\n- **429** Over the rate: `RATE_LIMITED`\n- **500** Atlas could not answer: `CONTRACT_MISMATCH`, `INTERNAL`, `TOO_MANY_GROUPS`\n- **501** Not available: `NOT_IMPLEMENTED`\n- **503** Temporarily unavailable: `GEOGRAPHY_UNAVAILABLE`, `NOT_CONFIGURED`, `NOT_READY`, `VIA_UNAVAILABLE`",
      "type": "text/plain"
    }
  }
}
