{
  "info": {
    "name": "Axiom API 0.1.1 - Bootstrap And Tenant Context",
    "description": "Generated from the public Axiom OpenAPI 0.1.1 contract. Use issued credentials and server-minted tenant context for admitted calls.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Identity",
      "item": [
        {
          "name": "List admitted tenants",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "X-Correlation-ID",
                "value": "{{correlation_id}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/me/tenants",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "me",
                "tenants"
              ],
              "description": "Set base_url from the issued developer-preview access pack."
            },
            "description": "Returns the tenants admitted for the authenticated actor. Use the returned tenant selection data to request a server-minted tenant context."
          }
        },
        {
          "name": "Mint tenant context",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "X-Correlation-ID",
                "value": "{{correlation_id}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/me/tenant-context",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "me",
                "tenant-context"
              ],
              "description": "Set base_url from the issued developer-preview access pack."
            },
            "description": "Mints a server-authoritative tenant-context token for one admitted tenant. Use that token as the X-Tenant-Context header on tenant-scoped API calls.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"tenant_id\": \"{{tenant_id}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.afr-dev.axiom.express",
      "type": "string"
    },
    {
      "key": "access_token",
      "value": "replace-with-issued-access-token",
      "type": "string"
    },
    {
      "key": "tenant_id",
      "value": "replace-with-admitted-tenant-id-from-list-tenants",
      "type": "string"
    },
    {
      "key": "tenant_context",
      "value": "replace-with-server-minted-tenant-context",
      "type": "string"
    },
    {
      "key": "correlation_id",
      "value": "axiom-example-correlation-id",
      "type": "string"
    },
    {
      "key": "example_profile",
      "value": "canonical-five-acts",
      "type": "string"
    }
  ]
}
