{
  "info": {
    "_postman_id": "7b24bd09-fc82-56c9-8eb7-00d942677709",
    "name": "N1 Core API",
    "description": "Generated by `pnpm docs:gen` from the schema and the examples files. Do not edit by hand. Synthetic demo-shop data only. Pick the Local or Staging environment and paste a demo-shop token into tokenApp (and tokenAdmin / tokenConsole for staff endpoints).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "AUTH",
      "item": [
        {
          "name": "Session",
          "item": [
            {
              "id": "bae5669f-1446-51ed-86cc-8e3c0f1da71a",
              "name": "session: Shop owner, demo shop A (app)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Authorization",
                    "value": "Bearer {{tokenApp}}"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "graphql",
                  "graphql": {
                    "query": "query Session {\n  session {\n    audience\n    tenantId\n    userId\n    roles\n  }\n}",
                    "variables": "{}"
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/graphql",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "graphql"
                  ]
                },
                "description": "Who the server thinks the caller is"
              }
            },
            {
              "id": "ad377a11-de6e-521e-827a-631e101ced62",
              "name": "session: N1 staff member (console)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Authorization",
                    "value": "Bearer {{tokenConsole}}"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "graphql",
                  "graphql": {
                    "query": "query Session {\n  session {\n    audience\n    tenantId\n    roles\n  }\n}",
                    "variables": "{}"
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/console/graphql",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "console",
                    "graphql"
                  ]
                },
                "description": "Who the server thinks the caller is"
              }
            }
          ]
        }
      ]
    },
    {
      "name": "PLATFORM",
      "item": [
        {
          "name": "Health",
          "item": [
            {
              "id": "9abe64f0-dab1-5298-8208-fbb9e4a5ed1e",
              "name": "GET /healthz: Alive",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/healthz",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "healthz"
                  ]
                },
                "description": "Is the process alive"
              }
            },
            {
              "id": "7205e7aa-341a-5173-8f7a-d866dedcf4a1",
              "name": "GET /readyz: Ready",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/readyz",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "readyz"
                  ]
                },
                "description": "Can this instance take traffic"
              }
            },
            {
              "id": "0393c851-d7d4-5f4f-8006-1cbcf43759d8",
              "name": "GET /readyz: Ready, with the internal health token",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "x-n1-health-token",
                    "value": "<health token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/readyz",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "readyz"
                  ]
                },
                "description": "Can this instance take traffic"
              }
            }
          ]
        }
      ]
    }
  ]
}
