{"openapi":"3.1.0","info":{"title":"ProAudits Public API","version":"1.0","description":"Read access to a company's **ProAudits** data for other programs: the structure and the stores, reference data,\naggregated figures of audits, deviations, the action plan and photo checks, and the store checklists. The API is\ncalled server to server; it answers no browser origin (no CORS).\n\n## Authentication\n\nEvery call carries an API key, in either header:\n\n| Header | Value |\n| --- | --- |\n| `Authorization` | `Bearer pak_…` |\n| `X-API-Key` | `pak_…` |\n\nWhen both are sent, `Authorization` is used. A key in the query string is refused with 400\n`CREDENTIAL_IN_QUERY` and should be treated as exposed. Keys are issued in ProAudits: a personal key acts as its\nowner, with the owner's current role and place in the company structure; a service key acts as a service, with the\nreach it was given. Every key carries scopes, and each operation below names the scopes it requires.\n\nThe key identifies the company. No request names a company and no response returns its id.\n\n## Reach\n\nEvery answer is computed inside the credential's reach: the whole company, or the structure nodes the credential is\nbound to and everything below them. Nothing above the reach is returned — no id, no name, no total. An id outside\nthe reach answers the same 404 as an id that does not exist. `GET /api/public/v1/me` says what the reach is; call it\nfirst.\n\n## Answers\n\nA success is `{ \"data\": …, \"meta\": …, \"page\": … }`: `data` is the operation's own shape, `meta` says how the\nanswer was made (always `requestId` and `generatedAt`), and `page` is there on lists. Names are camelCase and\nids end in `Id`; enumeration values are lower case with underscores. A date is `YYYY-MM-DD`, a month\n`YYYY-MM`, an instant ISO 8601 in UTC. A metrics period takes the audits started or finished within it, as the\ndashboards count them; the days of the store checklists are the company's own, in its time zone.\n\n## Lists\n\nA list takes `limit` (default 50, at most 200) and `cursor`. While `page.hasMore` is true, pass\n`page.nextCursor` as `cursor` to read on — the same address is in the `Link` header with `rel=\"next\"`. A\ncursor belongs to its list and to the other parameters it was made with; with anything else it answers 400\n`INVALID_CURSOR`.\n\n## Conditional requests\n\nThe reference lists and the metrics catalogue carry an `ETag` and `Cache-Control: private, max-age=…`. Send the\ntag back in `If-None-Match` and an unchanged answer is a 304 without a body. Every other answer is\n`Cache-Control: no-store`.\n\n## Limits\n\nEach operation has a weight (`x-proaudits-weight`), and each credential its own allowance per weight. These\nare the starting numbers; the `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` headers of an\naccepted call state the allowance in force.\n\n| Weight | Calls a minute | At once | Answered within |\n| --- | --- | --- | --- |\n| `light` | 120 | 4 | 5 s |\n| `medium` | 30 | 2 | 15 s |\n\nPast the allowance of a minute the answer is 429 `RATE_LIMITED` with `Retry-After`; more calls at once than the\ncredential may run is 429 `CONCURRENCY_LIMITED`; a busy API is 429 `CAPACITY_EXCEEDED`. A call that is not\nanswered in its time is 504 `OPERATION_TIMEOUT`.\n\n## Errors\n\nAn error is an RFC 9457 problem document, `application/problem+json`:\n\n```json\n{\n  \"type\": \"https://proaudits.com/problems/invalid-request\",\n  \"title\": \"Invalid request\",\n  \"status\": 400,\n  \"detail\": \"The request has an unknown or malformed parameter or field.\",\n  \"code\": \"INVALID_REQUEST\",\n  \"requestId\": \"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c\",\n  \"errors\": [{ \"pointer\": null, \"parameter\": \"types\", \"code\": \"UNKNOWN_VALUE\", \"detail\": \"…\" }]\n}\n```\n\nBranch on `code`; `title` and `detail` are for people and never repeat the request back. `errors` is present\nwhen the problem is about particular fields, parameters or scopes, each with one of\n`REQUIRED`, `INVALID_TYPE`, `INVALID_FORMAT`, `UNKNOWN_FIELD`, `UNKNOWN_VALUE`, `OUT_OF_RANGE`, `TOO_LONG`, `TOO_MANY`, `NOT_ALLOWED_TOGETHER`, `NOT_AVAILABLE`, `NOT_FOUND`, `MISSING_SCOPE`, `CATEGORY_DISABLED`.\n\n| Status | Code | Meaning |\n| --- | --- | --- |\n| 400 | `INVALID_REQUEST` | The request has an unknown or malformed parameter or field. |\n| 400 | `MALFORMED_JSON` | The request body is not valid JSON. |\n| 400 | `INVALID_CURSOR` | The cursor is malformed or belongs to another query. Start again without a cursor. |\n| 400 | `CREDENTIAL_IN_QUERY` | API keys are not accepted in the query string. Send the key in the Authorization header as a Bearer token, or in X-API-Key, and treat a key that was sent in a URL as exposed. |\n| 401 | `UNAUTHENTICATED` | Send an API key in the Authorization header as a Bearer token, or in X-API-Key. |\n| 401 | `INVALID_CREDENTIAL` | The credential is not valid. |\n| 401 | `CREDENTIAL_EXPIRED` | The API key has expired. Rotate it or issue a new one. |\n| 401 | `CREDENTIAL_REVOKED` | The API key has been revoked. |\n| 403 | `PLAN_NOT_ALLOWED` | The company's subscription plan does not include API integrations. |\n| 403 | `API_ACCESS_DISABLED` | An administrator of the company has not switched external API access on. |\n| 403 | `API_CONSENT_REQUIRED` | An administrator of the company has to accept the current data consent before the API can be used. |\n| 403 | `PRINCIPAL_INACTIVE` | The person this key acts as is no longer active in the company. |\n| 403 | `ROLE_PERMISSION_REQUIRED` | The role of the person this key acts as does not allow API access. |\n| 403 | `INSUFFICIENT_SCOPE` | The credential lacks a scope this operation requires. |\n| 403 | `DATA_CATEGORY_DISABLED` | The company has not opened this category of data to the API. |\n| 403 | `IP_NOT_ALLOWED` | This key cannot be used from the caller's address. |\n| 403 | `FORBIDDEN` | The credential is not allowed to do this. |\n| 404 | `NOT_FOUND` | The requested resource does not exist. |\n| 404 | `STORE_NOT_FOUND` | No such store within the reach of this credential. |\n| 404 | `NODE_NOT_FOUND` | No such structure node within the reach of this credential. |\n| 413 | `PAYLOAD_TOO_LARGE` | The request body is larger than this API accepts. |\n| 415 | `UNSUPPORTED_MEDIA_TYPE` | Send the request body as application/json in UTF-8. |\n| 422 | `INVALID_QUERY` | The query cannot be run as it is written. |\n| 422 | `INVALID_PERIOD` | The period is not valid. |\n| 429 | `RATE_LIMITED` | The request limit is spent. Retry after the time in the Retry-After header. |\n| 429 | `CONCURRENCY_LIMITED` | This credential already runs as many requests at once as it may. Retry shortly. |\n| 429 | `CAPACITY_EXCEEDED` | The API is busy. Retry shortly. |\n| 500 | `INTERNAL_ERROR` | The request failed on our side. Quote the requestId when you report it. |\n| 503 | `SERVICE_UNAVAILABLE` | The API is temporarily unavailable. Retry shortly. |\n| 504 | `OPERATION_TIMEOUT` | The operation did not finish in time. Narrow the request and retry. |"},"servers":[{"url":"/","description":"Current host"}],"tags":[{"name":"Context","description":"Who the credential acts as and what it can see."},{"name":"Directory","description":"Stores, structure nodes and reference values: the ids every other operation takes."},{"name":"Metrics","description":"Aggregated figures of audits, deviations, the action plan and photo checks."},{"name":"Checklists","description":"Planned, done and missed store checklists by day and week."}],"paths":{"/api/public/v1/me":{"get":{"operationId":"get_context","summary":"Company context and the caller's access","description":"Who the credential acts as and what it can see: the company's language and time zone, today's date there, the credential's scopes and expiry, the caller's role, the reach in the structure (the whole company, or the listed root nodes and everything below them), the data categories the company has opened and the features it uses. Call it first: every other operation answers inside this reach. `today` is the date in the company's time zone, or in UTC when the company has none; weeks start on Monday. A person with no structure keys has an empty `roots` list and sees no stores.\n\n**Scopes:** none — any valid credential. **Weight:** light.","tags":["Context"],"security":[{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-proaudits-weight":"light","parameters":[],"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetContextData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"additionalProperties":false},"example":{"data":{"company":{"locale":"ru","timeZone":"Asia/Almaty","weekStartsOn":"monday"},"today":{"date":"2026-11-18","timeZone":"Asia/Almaty"},"credential":{"kind":"personal_key","name":"Power BI reports","keyId":"1a2b3c4d5e6f7a8b","scopes":["org:read","analytics:read","checklists:read"],"expiresAt":"2027-02-16T09:30:00.000Z"},"subject":{"kind":"person","name":"Aigerim Seitkali","role":{"id":"5","name":"Area manager","level":"area_manager"},"isAdministrator":false},"reach":{"kind":"nodes","roots":[{"id":"almaty","name":"Almaty","isStore":false}]},"access":{"peopleData":false,"freeText":false},"features":{"storeChecklists":true,"adHocTasks":false}},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"}}}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}},"/api/public/v1/directory/search":{"get":{"operationId":"search_directory","summary":"Find stores, structure nodes, processes, checklists and other names","description":"Turns a name into an id. Searches the names of stores, structure nodes (a `node` is a group of the structure, such as a region or a city; a store is its own type), processes, checklists (`template`), roles, store concepts and checklist groups (`group`, whose id is its name), and returns the closest matches with a score from 0 to 1, best first. Use the ids in the filters of the other operations. Stores and nodes are searched inside the credential's reach only; `context` is the name of the parent node within that reach, or null. The match is fuzzy: it ignores case and word endings and tolerates small typos; a name with no close match returns an empty list. `types` narrows the search (a comma list, default all); `limit` is 1 to 50, default 10.\n\n**Scopes:** `org:read`. **Weight:** light.","tags":["Directory"],"security":[{"ApiKeyBearer":["org:read"]},{"ApiKeyHeader":["org:read"]}],"x-proaudits-weight":"light","parameters":[{"name":"q","in":"query","required":true,"description":"The name to look for, or a part of it.","schema":{"type":"string","minLength":1,"maxLength":100},"example":"абай"},{"name":"types","in":"query","required":false,"description":"What to search, as a comma list. Default: every type.","style":"form","explode":false,"schema":{"default":["store","node","process","template","role","store_concept","group"],"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["store","node","process","template","role","store_concept","group"]}},"example":["store"]},{"name":"limit","in":"query","required":false,"description":"The most results to return.","schema":{"default":10,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SearchDirectoryData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"additionalProperties":false},"example":{"data":{"results":[{"type":"store","id":"store-184","name":"Абай 10","context":"Алматы","score":0.9}]},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"}}}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}},"/api/public/v1/stores":{"get":{"operationId":"list_stores","summary":"List stores","description":"The stores within the credential's reach, ordered by name, 50 per page (`limit` up to 200; pass `page.nextCursor` as `cursor` for the next page). `nodeId` keeps the stores below that structure node; `conceptId` keeps the stores of that store concept. Each store has its place in the structure as the credential sees it (`parentNodeId`, `path` from the top of the reach down to the parent), its concept and its coordinates when both are set. A `nodeId` that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.\n\n**Scopes:** `org:read`. **Weight:** light.","tags":["Directory"],"security":[{"ApiKeyBearer":["org:read"]},{"ApiKeyHeader":["org:read"]}],"x-proaudits-weight":"light","parameters":[{"name":"nodeId","in":"query","required":false,"description":"Keeps the stores below this structure node.","schema":{"type":"string","minLength":1,"maxLength":200},"example":"almaty"},{"name":"conceptId","in":"query","required":false,"description":"Keeps the stores of this store concept.","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"limit","in":"query","required":false,"description":"The size of a page.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"example":50},{"name":"cursor","in":"query","required":false,"description":"`page.nextCursor` of the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"ETag":{"$ref":"#/components/headers/ETag"},"Cache-Control":{"$ref":"#/components/headers/Cache-Control"},"Link":{"$ref":"#/components/headers/Link"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListStoresData"},"meta":{"$ref":"#/components/schemas/Meta"},"page":{"$ref":"#/components/schemas/Page"}},"required":["data","meta","page"],"additionalProperties":false},"example":{"data":{"items":[{"id":"store-184","name":"Абай 10","parentNodeId":"almaty","path":[{"id":"almaty","name":"Алматы"}],"concept":{"id":"1","name":"Restaurant"},"location":{"latitude":43.2389,"longitude":76.8897}}]},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"},"page":{"limit":50,"hasMore":false,"nextCursor":null}}}}},"304":{"description":"Not modified: `If-None-Match` named the current answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}},"/api/public/v1/structure/nodes":{"get":{"operationId":"list_structure_nodes","summary":"List structure nodes","description":"The nodes of the company structure within the credential's reach — groups (regions, cities) and stores — ordered by name, 50 per page (`limit` up to 200; pass `page.nextCursor` as `cursor` for the next page). `parentId` keeps the direct children of that node; `kind` keeps stores or groups. `level` is the depth in the tree the credential sees: 0 is a top node of the reach, and it is the number `nodeLevel` of the metrics query takes. `path` lists the ancestors from the top of the reach down to the parent. A `parentId` that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND.\n\n**Scopes:** `org:read`. **Weight:** light.","tags":["Directory"],"security":[{"ApiKeyBearer":["org:read"]},{"ApiKeyHeader":["org:read"]}],"x-proaudits-weight":"light","parameters":[{"name":"parentId","in":"query","required":false,"description":"Keeps the direct children of this node.","schema":{"type":"string","minLength":1,"maxLength":200},"example":"almaty"},{"name":"kind","in":"query","required":false,"description":"Keeps the stores, or the groups (every node that is not a store).","schema":{"type":"string","enum":["store","group"]},"example":"store"},{"name":"limit","in":"query","required":false,"description":"The size of a page.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"`page.nextCursor` of the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"ETag":{"$ref":"#/components/headers/ETag"},"Cache-Control":{"$ref":"#/components/headers/Cache-Control"},"Link":{"$ref":"#/components/headers/Link"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListStructureNodesData"},"meta":{"$ref":"#/components/schemas/Meta"},"page":{"$ref":"#/components/schemas/Page"}},"required":["data","meta","page"],"additionalProperties":false},"example":{"data":{"items":[{"id":"store-184","name":"Абай 10","parentNodeId":"almaty","isStore":true,"level":1,"path":[{"id":"almaty","name":"Алматы"}]}]},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"},"page":{"limit":50,"hasMore":false,"nextCursor":null}}}}},"304":{"description":"Not modified: `If-None-Match` named the current answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}},"/api/public/v1/metrics/catalog":{"get":{"operationId":"list_metrics","summary":"List the metrics a query can ask for","description":"The catalogue of the metrics query: every measure with its value format (`count`; `fraction`, a share from 0 to 1; `minutes`), whether its values add up (`additive`), whether a higher value is better, and the dimensions and filters it takes; every dimension and filter; the preset periods and the comparisons; and the limits of one query. Call it before the first query, and build queries from these ids only. It lists what this credential may use: the cuts by auditor and auditee appear only for a company that has opened people data to the API. Labels come in English or Russian (`lang`, default `en`); descriptions are in English. `filters[].directoryType` is the `types` value of the directory search that finds the values for that filter.\n\n**Scopes:** `analytics:read`. **Weight:** light.","tags":["Metrics"],"security":[{"ApiKeyBearer":["analytics:read"]},{"ApiKeyHeader":["analytics:read"]}],"x-proaudits-weight":"light","parameters":[{"name":"lang","in":"query","required":false,"description":"The language of the labels.","schema":{"default":"en","type":"string","enum":["en","ru"]},"example":"en"}],"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"ETag":{"$ref":"#/components/headers/ETag"},"Cache-Control":{"$ref":"#/components/headers/Cache-Control"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListMetricsData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"additionalProperties":false},"example":{"data":{"measures":[{"id":"audits.avg_score","label":"Average score","description":"Average audit result (0-100%). 'Средний балл', 'результат', 'оценка'.","format":"fraction","additive":false,"higherIsBetter":true,"dimensions":["time.day","time.week","time.month","time.quarter","store","node","template","process","role","store_concept","audit_type"],"filters":["processIds","templateIds","nodeIds","storeIds","storeConceptIds","auditTypes","roleIds"]}],"dimensions":[{"id":"store","label":"Store","description":"The store the audit was made at.","kind":"category"}],"filters":[{"key":"storeIds","label":"Stores","description":"Ids of stores (GET /stores).","valueKind":"id","directoryType":"store"},{"key":"auditTypes","label":"Audit types","description":"Checklist types.","valueKind":"enum","directoryType":null,"values":["one_page_checklist","detailed_audit","certification"]}],"periods":["last_7d","last_30d","last_90d","last_3_months","last_12_months","this_month","prev_month","this_year"],"comparisons":["previous_period","same_period_last_year"],"limits":{"maxMeasures":6,"maxDimensions":3,"defaultRows":50,"maxRows":200,"maxCustomPeriodDays":1830,"maxFilterValues":50,"maxItemAnswers":200000}},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"}}}}},"304":{"description":"Not modified: `If-None-Match` named the current answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"ETag":{"$ref":"#/components/headers/ETag"}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}},"/api/public/v1/metrics/query":{"post":{"operationId":"query_metrics","summary":"Query metrics","description":"Computes measures over a period, broken down by up to 3 dimensions, inside the credential's reach — the figures the dashboards show. Put every measure a question needs into one call (up to 6 together), not one call per measure. Take the ids of measures, dimensions and filters from the metrics catalogue, and the ids of stores, nodes, processes, checklists, roles and concepts from the directory. An audit counts in a period when it was started or finished in it (finished audits only); an action of the action plan when its plan month overlaps it. `period` is a preset (`{ \"preset\": \"prev_month\" }`) or the caller's own dates (`{ \"from\", \"to\" }`, both included, at most 1830 days); presets are counted from `today` (the caller's local date; default the UTC date). `compareWith` answers both periods in one call: each row has the measures for `period`, then the same measures for the previous period or the same period a year earlier (columns of role `comparison`; their dates are in `meta.comparisonPeriod`). Do not ask for that period in a call of its own. A call repeated with the same input is charged again; reuse its answer. The answer is a table: `columns` says what each cell of a row is — a dimension cell is `{ id, label }`, a measure or comparison cell is a number or null; a `fraction` is a share from 0 to 1. Rows are ordered by `sort` (default: the first measure, largest first) and cut at `limit` (default 50, at most 200); `meta.truncated` is true when there were more rows than that. A time bucket is always the first dimension, and such a query is a calendar: its rows go by the bucket, earliest first, it takes no `sort`, and a cut at `limit` leaves out the latest rows. A bucket too fine for the period is replaced by the next one that fits — `columns` names the one used. With a time bucket and another dimension together the comparison cells are null. Without dimensions the answer is one row of totals. A filter that a measure does not take is ignored for it and listed in `meta.ignoredFilters`. A store or node id that does not exist or lies outside the reach answers 404; the cuts by auditor and auditee answer 403 DATA_CATEGORY_DISABLED until the company opens people data. An item measure by `item`, `group` or `tag`, or under the `groups` or `tagIds` filter, reads every item answer of the audits it covers, unless it counts failed items alone in the default order; such a query over more item answers than `limits.maxItemAnswers` of the metrics catalogue answers 422 INVALID_QUERY, saying how many it covers: shorten the period or narrow it with `storeIds`, `nodeIds` or `templateIds`.\n\n**Scopes:** `analytics:read`. **Weight:** medium.","tags":["Metrics"],"security":[{"ApiKeyBearer":["analytics:read"]},{"ApiKeyHeader":["analytics:read"]}],"x-proaudits-weight":"medium","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryMetricsInput"},"example":{"measures":["audits.count","audits.avg_score"],"dimensions":["store"],"period":{"preset":"prev_month"},"limit":3}}}},"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QueryMetricsData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"additionalProperties":false},"example":{"data":{"columns":[{"key":"store","role":"dimension","label":"Store","format":null},{"key":"audits.count","role":"measure","label":"Audits","format":"count"},{"key":"audits.avg_score","role":"measure","label":"Average score","format":"fraction"}],"rows":[[{"id":"store-184","label":"Абай 10"},42,0.873]]},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"}}}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"413":{"$ref":"#/components/responses/Problem413"},"415":{"$ref":"#/components/responses/Problem415"},"422":{"$ref":"#/components/responses/Problem422"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}},"/api/public/v1/checklists/status":{"get":{"operationId":"get_checklist_status","summary":"Store checklist status for a day, a week or a span of them","description":"How the stores within the credential's reach did with their scheduled checklists — the figures of the app's «Филиалы» page. For a day (`date`, default today in the company's time zone): per store the day's scheduled checklists (`total`), done (late ones included), in progress, missed, done late, carried over from earlier days (today only), the store's open and overdue tasks, and the open and overdue actions of its action plan (null where the action plan cannot be read). For a week (`weekStart`, any day of it): per store and per day total, done, late and missed; a closed day comes from the saved history, a future day counts its planned checklists only. For a span add `to`: `date` to `to` gives per store every day's total, done, late and missed (at most 31 days), `weekStart` to `to` every Monday to Sunday week's (at most 13 weeks); each entry names its `date` or its `from` and `to`, a store's row also sums the span, and `summary` has the same per day or week for all the stores; in progress, carry-over, tasks and actions come with a single day only. For several days or weeks make one call with `to`, not one call per period. A call repeated with the same input is charged again; reuse its answer. `summary` covers every store of the answer, not the page. Stores are ordered by name, 50 per page (`limit` up to 200 stores, whatever the span; pass `page.nextCursor` as `cursor`). `nodeId` keeps the stores below that node; one that does not exist or lies outside the reach answers 404 NODE_NOT_FOUND. A person whose reach is a single store and whose role does not open the store page gets no stores and `meta.reason: \"level\"`, as in the app; a reach without stores gives `meta.reason: \"no_stores\"`. At most 500 stores are computed (the first by name; `meta.truncated`). Days within 366 days of today.\n\n**Scopes:** `checklists:read`. **Weight:** medium.","tags":["Checklists"],"security":[{"ApiKeyBearer":["checklists:read"]},{"ApiKeyHeader":["checklists:read"]}],"x-proaudits-weight":"medium","parameters":[{"name":"date","in":"query","required":false,"description":"The day to report; default today in the company's time zone. Not with `weekStart`.","schema":{"type":"string","format":"date"},"example":"2026-11-17"},{"name":"weekStart","in":"query","required":false,"description":"Any day of a week: the Monday to Sunday week it falls in is reported day by day. Not with `date`.","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"description":"The last day of a span, answered by this one call: with `date`, every day from `date` to `to` (at most 31); with `weekStart`, every week from the week of `weekStart` to the week of `to` (at most 13).","schema":{"type":"string","format":"date"}},{"name":"nodeId","in":"query","required":false,"description":"Keeps the stores below this structure node.","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"limit","in":"query","required":false,"description":"The size of a page.","schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"`page.nextCursor` of the page before; leave it out for the first page. A cursor belongs to its list and to the other parameters it was made with.","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Link":{"$ref":"#/components/headers/Link"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetChecklistStatusData"},"meta":{"$ref":"#/components/schemas/Meta"},"page":{"$ref":"#/components/schemas/Page"}},"required":["data","meta","page"],"additionalProperties":false},"example":{"data":{"kind":"day","date":"2026-11-17","timeZone":"Asia/Almaty","summary":{"total":120,"done":97,"inProgress":6,"missed":11,"late":4,"carryOver":0,"openTasks":9,"overdueTasks":2,"openActions":31,"overdueActions":7},"items":[{"storeId":"store-184","storeName":"Абай 10","total":4,"done":3,"inProgress":0,"missed":1,"late":1,"carryOver":0,"openTasks":1,"overdueTasks":0,"openActions":2,"overdueActions":1,"overdueActionsOverWeek":0,"source":"live"}]},"meta":{"requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c","generatedAt":"2026-11-18T09:30:00.000Z"},"page":{"limit":50,"hasMore":false,"nextCursor":null}}}}},"400":{"$ref":"#/components/responses/Problem400"},"401":{"$ref":"#/components/responses/Problem401"},"403":{"$ref":"#/components/responses/Problem403"},"404":{"$ref":"#/components/responses/Problem404"},"429":{"$ref":"#/components/responses/Problem429"},"500":{"$ref":"#/components/responses/Problem500"},"503":{"$ref":"#/components/responses/Problem503"},"504":{"$ref":"#/components/responses/Problem504"}}}}},"components":{"securitySchemes":{"ApiKeyBearer":{"type":"http","scheme":"bearer","description":"An API key as a bearer token: `Authorization: Bearer pak_…`."},"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"The same API key in a header of its own, for clients that cannot set `Authorization`."}},"schemas":{"Problem":{"type":"object","description":"An error, as an RFC 9457 problem document. `code` is the stable identifier to branch on; `title` and `detail` are for people.","properties":{"type":{"type":"string","format":"uri","description":"An identifier of the kind of problem, the same on every installation."},"title":{"type":"string"},"status":{"type":"integer","description":"The HTTP status of the response."},"detail":{"type":"string","description":"What was expected or what to do. It never repeats the request back."},"code":{"type":"string","enum":["INVALID_REQUEST","MALFORMED_JSON","INVALID_CURSOR","CREDENTIAL_IN_QUERY","UNAUTHENTICATED","INVALID_CREDENTIAL","CREDENTIAL_EXPIRED","CREDENTIAL_REVOKED","PLAN_NOT_ALLOWED","API_ACCESS_DISABLED","API_CONSENT_REQUIRED","PRINCIPAL_INACTIVE","ROLE_PERMISSION_REQUIRED","INSUFFICIENT_SCOPE","DATA_CATEGORY_DISABLED","IP_NOT_ALLOWED","FORBIDDEN","NOT_FOUND","STORE_NOT_FOUND","NODE_NOT_FOUND","PAYLOAD_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","INVALID_QUERY","INVALID_PERIOD","RATE_LIMITED","CONCURRENCY_LIMITED","CAPACITY_EXCEEDED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","OPERATION_TIMEOUT"]},"requestId":{"type":["string","null"],"description":"The id of the call. Quote it when reporting a problem."},"errors":{"type":"array","description":"Present when the problem is about particular fields, parameters or scopes: one entry for each, 20 at most.","items":{"type":"object","properties":{"pointer":{"type":["string","null"],"description":"A JSON Pointer (RFC 6901) into the request body; null when the entry is not about a body field."},"parameter":{"type":["string","null"],"description":"The query parameter; null when the entry is not about one."},"code":{"type":"string","enum":["REQUIRED","INVALID_TYPE","INVALID_FORMAT","UNKNOWN_FIELD","UNKNOWN_VALUE","OUT_OF_RANGE","TOO_LONG","TOO_MANY","NOT_ALLOWED_TOGETHER","NOT_AVAILABLE","NOT_FOUND","MISSING_SCOPE","CATEGORY_DISABLED"]},"detail":{"type":"string"}},"required":["pointer","parameter","code","detail"],"additionalProperties":false}}},"required":["type","title","status","detail","code","requestId"],"additionalProperties":false},"Meta":{"type":"object","description":"What an answer says about itself. `requestId` and `generatedAt` are always present; the other members appear on the operations they apply to.","properties":{"requestId":{"type":"string","description":"The id of the call: the `X-Request-Id` the request carried, or one the API gave it."},"generatedAt":{"type":"string","format":"date-time"},"reach":{"type":"object","description":"Whether the answer covers the whole company (`full`) or the part of its structure the credential reaches (`nodes`).","properties":{"kind":{"type":"string","enum":["full","nodes"]}},"required":["kind"]},"period":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}},"required":["from","to"],"description":"The dates a metrics query was computed for, both included."},"comparisonPeriod":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}},"required":["from","to"]},{"type":"null"}],"description":"The dates of the comparison a metrics query asked for; null without one."},"periodRule":{"type":"string","enum":["audits_started_or_finished"],"description":"Which audits a period of a metrics query takes: those started or finished within it, as the dashboards count."},"truncated":{"type":"boolean","description":"The answer is not the whole answer: a metrics table had more rows than `limit` or read more data than one answer may be computed from, or a checklist status reached its cap of stores."},"ignoredFilters":{"type":"array","items":{"type":"string"},"description":"The filters of a metrics query that at least one of its measures does not take."},"unavailableMeasures":{"type":"array","items":{"type":"string"},"description":"The measures of a metrics query that could not be computed; their cells are null."},"weekStartsOn":{"type":"string","enum":["monday"],"description":"The first day of the weeks a metrics query is counted in: a week bucket is an ISO week."},"timeZone":{"type":"string","description":"The IANA time zone the days of a checklist status are counted in: the company's."},"reason":{"anyOf":[{"type":"string","enum":["level","no_stores"]},{"type":"null"}],"description":"Why a checklist status lists no stores: `level` — the caller's role does not open the store page, `no_stores` — the reach has no stores; null otherwise."}},"required":["requestId","generatedAt"]},"Page":{"type":"object","description":"Where a list stands. Pass `nextCursor` as `cursor` to read the next page.","properties":{"limit":{"type":"integer"},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"],"description":"Null on the last page."}},"required":["limit","hasMore","nextCursor"],"additionalProperties":false},"GetContextData":{"type":"object","properties":{"company":{"type":"object","properties":{"locale":{"type":"string","enum":["ru","en","es","pt","de","fr","ja","ar","he","uz"]},"timeZone":{"anyOf":[{"type":"string"},{"type":"null"}]},"weekStartsOn":{"type":"string","const":"monday"}},"required":["locale","timeZone","weekStartsOn"],"additionalProperties":false},"today":{"type":"object","properties":{"date":{"type":"string","format":"date"},"timeZone":{"type":"string"}},"required":["date","timeZone"],"additionalProperties":false},"credential":{"type":"object","properties":{"kind":{"type":"string","enum":["personal_key","service_key","oauth_token"]},"name":{"type":"string"},"keyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["org:read","analytics:read","checklists:read"]}},"expiresAt":{"type":"string","format":"date-time"}},"required":["kind","name","keyId","scopes","expiresAt"],"additionalProperties":false},"subject":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"person"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"level":{"anyOf":[{"type":"string","enum":["employee","shift_manager","store_manager","area_manager","read_only","editor","admin"]},{"type":"null"}]}},"required":["id","name","level"],"additionalProperties":false},{"type":"null"}]},"isAdministrator":{"type":"boolean"}},"required":["kind","name","role","isAdministrator"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"service"}},"required":["kind"],"additionalProperties":false}]},"reach":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"full"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"nodes"},"roots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isStore":{"type":"boolean"}},"required":["id","name","isStore"],"additionalProperties":false}}},"required":["kind","roots"],"additionalProperties":false}]},"access":{"type":"object","properties":{"peopleData":{"type":"boolean"},"freeText":{"type":"boolean"}},"required":["peopleData","freeText"],"additionalProperties":false},"features":{"type":"object","properties":{"storeChecklists":{"type":"boolean"},"adHocTasks":{"type":"boolean"}},"required":["storeChecklists","adHocTasks"],"additionalProperties":false}},"required":["company","today","credential","subject","reach","access","features"],"additionalProperties":false},"SearchDirectoryData":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["store","node","process","template","role","store_concept","group"]},"id":{"type":"string"},"name":{"type":"string"},"context":{"anyOf":[{"type":"string"},{"type":"null"}]},"score":{"type":"number","minimum":0,"maximum":1}},"required":["type","id","name","context","score"],"additionalProperties":false}}},"required":["results"],"additionalProperties":false},"ListStoresData":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentNodeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"path":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"concept":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"location":{"anyOf":[{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}},"required":["latitude","longitude"],"additionalProperties":false},{"type":"null"}]}},"required":["id","name","parentNodeId","path","concept","location"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"ListStructureNodesData":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentNodeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStore":{"type":"boolean"},"level":{"type":"integer","minimum":0},"path":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["id","name","parentNodeId","isStore","level","path"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"ListMetricsData":{"type":"object","properties":{"measures":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["audits.count","audits.avg_score","audits.hit_rate","audits.avg_duration","audits.unique_auditors","audits.unique_auditees","audits.with_critical","items.failed_count","items.fail_rate","items.critical_failed_count","groups.avg_score","actions.created","actions.finished_rate","actions.missed_deadline_rate","actions.open","photo_checks.mismatch_count","photo_checks.mismatch_rate"]},"label":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["count","fraction","minutes"]},"additive":{"type":"boolean"},"higherIsBetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"dimensions":{"type":"array","items":{"type":"string","enum":["time.day","time.week","time.month","time.quarter","store","node","template","process","item","group","auditor","auditee","role","store_concept","audit_type","tag"]}},"filters":{"type":"array","items":{"type":"string","enum":["processIds","templateIds","nodeIds","storeIds","storeConceptIds","groups","auditTypes","roleIds","auditorIds","auditeeIds","tagIds"]}}},"required":["id","label","description","format","additive","higherIsBetter","dimensions","filters"],"additionalProperties":false}},"dimensions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["time.day","time.week","time.month","time.quarter","store","node","template","process","item","group","auditor","auditee","role","store_concept","audit_type","tag"]},"label":{"type":"string"},"description":{"type":"string"},"kind":{"type":"string","enum":["time","category"]}},"required":["id","label","description","kind"],"additionalProperties":false}},"filters":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["processIds","templateIds","nodeIds","storeIds","storeConceptIds","groups","auditTypes","roleIds","auditorIds","auditeeIds","tagIds"]},"label":{"type":"string"},"description":{"type":"string"},"valueKind":{"type":"string","enum":["id","name","enum"]},"directoryType":{"anyOf":[{"type":"string","enum":["store","node","process","template","role","store_concept","group"]},{"type":"null"}]},"values":{"type":"array","items":{"type":"string","enum":["one_page_checklist","detailed_audit","certification"]}}},"required":["key","label","description","valueKind","directoryType"],"additionalProperties":false}},"periods":{"type":"array","items":{"type":"string","enum":["last_7d","last_30d","last_90d","last_3_months","last_12_months","this_month","prev_month","this_year"]}},"comparisons":{"type":"array","items":{"type":"string","enum":["previous_period","same_period_last_year"]}},"limits":{"type":"object","properties":{"maxMeasures":{"type":"integer"},"maxDimensions":{"type":"integer"},"defaultRows":{"type":"integer"},"maxRows":{"type":"integer"},"maxCustomPeriodDays":{"type":"integer"},"maxFilterValues":{"type":"integer"},"maxItemAnswers":{"type":"integer"}},"required":["maxMeasures","maxDimensions","defaultRows","maxRows","maxCustomPeriodDays","maxFilterValues","maxItemAnswers"],"additionalProperties":false}},"required":["measures","dimensions","filters","periods","comparisons","limits"],"additionalProperties":false},"QueryMetricsData":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"role":{"type":"string","enum":["dimension","measure","comparison"]},"label":{"type":"string"},"format":{"anyOf":[{"type":"string","enum":["count","fraction","minutes"]},{"type":"null"}]}},"required":["key","role","label","format"],"additionalProperties":false}},"rows":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","label"],"additionalProperties":false},{"type":"number"},{"type":"null"}]}}}},"required":["columns","rows"],"additionalProperties":false},"QueryMetricsInput":{"type":"object","properties":{"measures":{"description":"What to compute: ids of measures from the metrics catalogue.","minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["audits.count","audits.avg_score","audits.hit_rate","audits.avg_duration","audits.unique_auditors","audits.unique_auditees","audits.with_critical","items.failed_count","items.fail_rate","items.critical_failed_count","groups.avg_score","actions.created","actions.finished_rate","actions.missed_deadline_rate","actions.open","photo_checks.mismatch_count","photo_checks.mismatch_rate"]}},"dimensions":{"description":"What to break the figures down by: ids of dimensions from the metrics catalogue. Default: none, one row of totals.","default":[],"maxItems":3,"type":"array","items":{"type":"string","enum":["time.day","time.week","time.month","time.quarter","store","node","template","process","item","group","auditor","auditee","role","store_concept","audit_type","tag"]}},"period":{"description":"A preset, counted from `today`, or the caller's own dates, both included.","anyOf":[{"type":"object","properties":{"preset":{"type":"string","enum":["last_7d","last_30d","last_90d","last_3_months","last_12_months","this_month","prev_month","this_year"]}},"required":["preset"],"additionalProperties":false},{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}},"required":["from","to"],"additionalProperties":false}]},"compareWith":{"description":"Adds each measure once more, for the previous period or for the same period a year earlier, in the same rows (columns of role `comparison`, dates in `meta.comparisonPeriod`): no separate call for that period.","default":null,"anyOf":[{"type":"string","enum":["previous_period","same_period_last_year"]},{"type":"null"}]},"filters":{"description":"Keeps the figures of the listed values; the metrics catalogue says what each filter takes.","default":{},"type":"object","properties":{"processIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"templateIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"nodeIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"storeIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"storeConceptIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"groups":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"auditTypes":{"maxItems":3,"type":"array","items":{"type":"string","enum":["one_page_checklist","detailed_audit","certification"]}},"roleIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"auditorIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"auditeeIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tagIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"sort":{"description":"The order of the rows: by a requested measure or by the label of the first dimension. Not taken with a time bucket.","default":null,"anyOf":[{"type":"object","properties":{"by":{"type":"string","enum":["audits.count","audits.avg_score","audits.hit_rate","audits.avg_duration","audits.unique_auditors","audits.unique_auditees","audits.with_critical","items.failed_count","items.fail_rate","items.critical_failed_count","groups.avg_score","actions.created","actions.finished_rate","actions.missed_deadline_rate","actions.open","photo_checks.mismatch_count","photo_checks.mismatch_rate","label"]},"direction":{"type":"string","enum":["asc","desc"]}},"required":["by","direction"],"additionalProperties":false},{"type":"null"}]},"limit":{"description":"The most rows to return.","default":50,"type":"integer","minimum":1,"maximum":200},"nodeLevel":{"description":"With the dimension `node`: the `level` (GET /structure/nodes) of the nodes to group by. Default: each store's parent.","default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":12},{"type":"null"}]},"today":{"description":"The caller's local date, which a preset is counted from; within two days of the server's. Default: the UTC date.","type":"string","format":"date"}},"required":["measures","period"],"additionalProperties":false},"GetChecklistStatusData":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"day"},"date":{"type":"string","format":"date"},"timeZone":{"type":"string"},"summary":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"inProgress":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"carryOver":{"type":"integer","minimum":0},"openTasks":{"type":"integer","minimum":0},"overdueTasks":{"type":"integer","minimum":0},"openActions":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"overdueActions":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["total","done","inProgress","missed","late","carryOver","openTasks","overdueTasks","openActions","overdueActions"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"storeId":{"type":"string"},"storeName":{"type":"string"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"inProgress":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"carryOver":{"type":"integer","minimum":0},"openTasks":{"type":"integer","minimum":0},"overdueTasks":{"type":"integer","minimum":0},"openActions":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"overdueActions":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"overdueActionsOverWeek":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"source":{"type":"string","enum":["live","history"]}},"required":["storeId","storeName","total","done","inProgress","missed","late","carryOver","openTasks","overdueTasks","openActions","overdueActions","overdueActionsOverWeek","source"],"additionalProperties":false}}},"required":["kind","date","timeZone","summary","items"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"week"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"timeZone":{"type":"string"},"summary":{"type":"object","properties":{"stores":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0}},"required":["stores","total","done","late","missed"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"storeId":{"type":"string"},"storeName":{"type":"string"},"week":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0}},"required":["total","done","late","missed"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"source":{"type":"string","enum":["live","history","planned"]}},"required":["date","total","done","late","missed","source"],"additionalProperties":false}}},"required":["storeId","storeName","week","days"],"additionalProperties":false}}},"required":["kind","from","to","timeZone","summary","items"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"days"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"timeZone":{"type":"string"},"summary":{"type":"object","properties":{"stores":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0}},"required":["date","total","done","late","missed"],"additionalProperties":false}}},"required":["stores","total","done","late","missed","days"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"storeId":{"type":"string"},"storeName":{"type":"string"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"source":{"type":"string","enum":["live","history","planned"]}},"required":["date","total","done","late","missed","source"],"additionalProperties":false}}},"required":["storeId","storeName","total","done","late","missed","days"],"additionalProperties":false}}},"required":["kind","from","to","timeZone","summary","items"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"weeks"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"timeZone":{"type":"string"},"summary":{"type":"object","properties":{"stores":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"weeks":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0}},"required":["from","to","total","done","late","missed"],"additionalProperties":false}}},"required":["stores","total","done","late","missed","weeks"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"storeId":{"type":"string"},"storeName":{"type":"string"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0},"weeks":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"late":{"type":"integer","minimum":0},"missed":{"type":"integer","minimum":0}},"required":["from","to","total","done","late","missed"],"additionalProperties":false}}},"required":["storeId","storeName","total","done","late","missed","weeks"],"additionalProperties":false}}},"required":["kind","from","to","timeZone","summary","items"],"additionalProperties":false}]}},"responses":{"Problem400":{"description":"`INVALID_REQUEST` — Invalid request; `MALFORMED_JSON` — Malformed JSON; `INVALID_CURSOR` — Invalid cursor; `CREDENTIAL_IN_QUERY` — Credential in the query string","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"INVALID_REQUEST":{"summary":"Invalid request","value":{"type":"https://proaudits.com/problems/invalid-request","title":"Invalid request","status":400,"detail":"The request has an unknown or malformed parameter or field.","code":"INVALID_REQUEST","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"MALFORMED_JSON":{"summary":"Malformed JSON","value":{"type":"https://proaudits.com/problems/malformed-json","title":"Malformed JSON","status":400,"detail":"The request body is not valid JSON.","code":"MALFORMED_JSON","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"INVALID_CURSOR":{"summary":"Invalid cursor","value":{"type":"https://proaudits.com/problems/invalid-cursor","title":"Invalid cursor","status":400,"detail":"The cursor is malformed or belongs to another query. Start again without a cursor.","code":"INVALID_CURSOR","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"CREDENTIAL_IN_QUERY":{"summary":"Credential in the query string","value":{"type":"https://proaudits.com/problems/credential-in-query","title":"Credential in the query string","status":400,"detail":"API keys are not accepted in the query string. Send the key in the Authorization header as a Bearer token, or in X-API-Key, and treat a key that was sent in a URL as exposed.","code":"CREDENTIAL_IN_QUERY","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem401":{"description":"`UNAUTHENTICATED` — Authentication required; `INVALID_CREDENTIAL` — Invalid credential; `CREDENTIAL_EXPIRED` — Credential expired; `CREDENTIAL_REVOKED` — Credential revoked","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"UNAUTHENTICATED":{"summary":"Authentication required","value":{"type":"https://proaudits.com/problems/unauthenticated","title":"Authentication required","status":401,"detail":"Send an API key in the Authorization header as a Bearer token, or in X-API-Key.","code":"UNAUTHENTICATED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"INVALID_CREDENTIAL":{"summary":"Invalid credential","value":{"type":"https://proaudits.com/problems/invalid-credential","title":"Invalid credential","status":401,"detail":"The credential is not valid.","code":"INVALID_CREDENTIAL","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"CREDENTIAL_EXPIRED":{"summary":"Credential expired","value":{"type":"https://proaudits.com/problems/credential-expired","title":"Credential expired","status":401,"detail":"The API key has expired. Rotate it or issue a new one.","code":"CREDENTIAL_EXPIRED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"CREDENTIAL_REVOKED":{"summary":"Credential revoked","value":{"type":"https://proaudits.com/problems/credential-revoked","title":"Credential revoked","status":401,"detail":"The API key has been revoked.","code":"CREDENTIAL_REVOKED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem403":{"description":"`PLAN_NOT_ALLOWED` — Plan without API access; `API_ACCESS_DISABLED` — API access is switched off; `API_CONSENT_REQUIRED` — Data consent required; `PRINCIPAL_INACTIVE` — Key owner is not active; `ROLE_PERMISSION_REQUIRED` — Role permission required; `INSUFFICIENT_SCOPE` — Insufficient scope; `DATA_CATEGORY_DISABLED` — Data category is not open; `IP_NOT_ALLOWED` — Address not allowed; `FORBIDDEN` — Forbidden","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"PLAN_NOT_ALLOWED":{"summary":"Plan without API access","value":{"type":"https://proaudits.com/problems/plan-not-allowed","title":"Plan without API access","status":403,"detail":"The company's subscription plan does not include API integrations.","code":"PLAN_NOT_ALLOWED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"API_ACCESS_DISABLED":{"summary":"API access is switched off","value":{"type":"https://proaudits.com/problems/api-access-disabled","title":"API access is switched off","status":403,"detail":"An administrator of the company has not switched external API access on.","code":"API_ACCESS_DISABLED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"API_CONSENT_REQUIRED":{"summary":"Data consent required","value":{"type":"https://proaudits.com/problems/api-consent-required","title":"Data consent required","status":403,"detail":"An administrator of the company has to accept the current data consent before the API can be used.","code":"API_CONSENT_REQUIRED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"PRINCIPAL_INACTIVE":{"summary":"Key owner is not active","value":{"type":"https://proaudits.com/problems/principal-inactive","title":"Key owner is not active","status":403,"detail":"The person this key acts as is no longer active in the company.","code":"PRINCIPAL_INACTIVE","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"ROLE_PERMISSION_REQUIRED":{"summary":"Role permission required","value":{"type":"https://proaudits.com/problems/role-permission-required","title":"Role permission required","status":403,"detail":"The role of the person this key acts as does not allow API access.","code":"ROLE_PERMISSION_REQUIRED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"INSUFFICIENT_SCOPE":{"summary":"Insufficient scope","value":{"type":"https://proaudits.com/problems/insufficient-scope","title":"Insufficient scope","status":403,"detail":"The credential lacks a scope this operation requires.","code":"INSUFFICIENT_SCOPE","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"DATA_CATEGORY_DISABLED":{"summary":"Data category is not open","value":{"type":"https://proaudits.com/problems/data-category-disabled","title":"Data category is not open","status":403,"detail":"The company has not opened this category of data to the API.","code":"DATA_CATEGORY_DISABLED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"IP_NOT_ALLOWED":{"summary":"Address not allowed","value":{"type":"https://proaudits.com/problems/ip-not-allowed","title":"Address not allowed","status":403,"detail":"This key cannot be used from the caller's address.","code":"IP_NOT_ALLOWED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"FORBIDDEN":{"summary":"Forbidden","value":{"type":"https://proaudits.com/problems/forbidden","title":"Forbidden","status":403,"detail":"The credential is not allowed to do this.","code":"FORBIDDEN","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem404":{"description":"`NOT_FOUND` — Not found; `STORE_NOT_FOUND` — Store not found; `NODE_NOT_FOUND` — Structure node not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"NOT_FOUND":{"summary":"Not found","value":{"type":"https://proaudits.com/problems/not-found","title":"Not found","status":404,"detail":"The requested resource does not exist.","code":"NOT_FOUND","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"STORE_NOT_FOUND":{"summary":"Store not found","value":{"type":"https://proaudits.com/problems/store-not-found","title":"Store not found","status":404,"detail":"No such store within the reach of this credential.","code":"STORE_NOT_FOUND","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"NODE_NOT_FOUND":{"summary":"Structure node not found","value":{"type":"https://proaudits.com/problems/node-not-found","title":"Structure node not found","status":404,"detail":"No such structure node within the reach of this credential.","code":"NODE_NOT_FOUND","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem413":{"description":"`PAYLOAD_TOO_LARGE` — Payload too large","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"Payload too large","value":{"type":"https://proaudits.com/problems/payload-too-large","title":"Payload too large","status":413,"detail":"The request body is larger than this API accepts.","code":"PAYLOAD_TOO_LARGE","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem415":{"description":"`UNSUPPORTED_MEDIA_TYPE` — Unsupported media type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"UNSUPPORTED_MEDIA_TYPE":{"summary":"Unsupported media type","value":{"type":"https://proaudits.com/problems/unsupported-media-type","title":"Unsupported media type","status":415,"detail":"Send the request body as application/json in UTF-8.","code":"UNSUPPORTED_MEDIA_TYPE","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem422":{"description":"`INVALID_QUERY` — Invalid query; `INVALID_PERIOD` — Invalid period","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"INVALID_QUERY":{"summary":"Invalid query","value":{"type":"https://proaudits.com/problems/invalid-query","title":"Invalid query","status":422,"detail":"The query cannot be run as it is written.","code":"INVALID_QUERY","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"INVALID_PERIOD":{"summary":"Invalid period","value":{"type":"https://proaudits.com/problems/invalid-period","title":"Invalid period","status":422,"detail":"The period is not valid.","code":"INVALID_PERIOD","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem429":{"description":"`RATE_LIMITED` — Too many requests; `CONCURRENCY_LIMITED` — Too many requests at once; `CAPACITY_EXCEEDED` — Capacity exceeded","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"RATE_LIMITED":{"summary":"Too many requests","value":{"type":"https://proaudits.com/problems/rate-limited","title":"Too many requests","status":429,"detail":"The request limit is spent. Retry after the time in the Retry-After header.","code":"RATE_LIMITED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"CONCURRENCY_LIMITED":{"summary":"Too many requests at once","value":{"type":"https://proaudits.com/problems/concurrency-limited","title":"Too many requests at once","status":429,"detail":"This credential already runs as many requests at once as it may. Retry shortly.","code":"CONCURRENCY_LIMITED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}},"CAPACITY_EXCEEDED":{"summary":"Capacity exceeded","value":{"type":"https://proaudits.com/problems/capacity-exceeded","title":"Capacity exceeded","status":429,"detail":"The API is busy. Retry shortly.","code":"CAPACITY_EXCEEDED","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem500":{"description":"`INTERNAL_ERROR` — Internal error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"INTERNAL_ERROR":{"summary":"Internal error","value":{"type":"https://proaudits.com/problems/internal-error","title":"Internal error","status":500,"detail":"The request failed on our side. Quote the requestId when you report it.","code":"INTERNAL_ERROR","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem503":{"description":"`SERVICE_UNAVAILABLE` — Service unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"SERVICE_UNAVAILABLE":{"summary":"Service unavailable","value":{"type":"https://proaudits.com/problems/service-unavailable","title":"Service unavailable","status":503,"detail":"The API is temporarily unavailable. Retry shortly.","code":"SERVICE_UNAVAILABLE","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}},"Problem504":{"description":"`OPERATION_TIMEOUT` — Operation timed out","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"OPERATION_TIMEOUT":{"summary":"Operation timed out","value":{"type":"https://proaudits.com/problems/operation-timeout","title":"Operation timed out","status":504,"detail":"The operation did not finish in time. Narrow the request and retry.","code":"OPERATION_TIMEOUT","requestId":"5f0c2b9e-7c1d-4a57-9d43-2f6f5a1f0b3c"}}}}}}},"headers":{"RateLimit-Limit":{"description":"How many calls of this operation's weight the credential may make in a minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"How many of them are left in the current minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current minute ends.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before sending the call again.","schema":{"type":"integer"}},"WWW-Authenticate":{"description":"The challenge of RFC 6750, for example `Bearer realm=\"proaudits\", error=\"invalid_token\"`. A 403 carries it with `INSUFFICIENT_SCOPE`, naming the scopes the operation requires.","schema":{"type":"string"}},"ETag":{"description":"A weak validator of this answer. Send it back in `If-None-Match`.","schema":{"type":"string"}},"Cache-Control":{"description":"`private, max-age=<seconds>`: the caller's own cache may keep the answer.","schema":{"type":"string"}},"Link":{"description":"The address of the next page, `<…>; rel=\"next\"`, while the list has more.","schema":{"type":"string"}}}}}