{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/context-link-ai/json-schema/context-link-ai-get-api-accounts-response-schema.json",
  "title": "GetApiAccountsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/context-link-ai-openapi-generated.yml#/components/schemas/GetApiAccountsResponse",
  "type": "object",
  "properties": {
    "api_accounts": {
      "type": "array",
      "description": "Summary rows for each account."
    },
    "api_accounts[].id": {
      "type": "integer",
      "description": "Context Link internal ID."
    },
    "api_accounts[].uid": {
      "type": "string",
      "description": "Customer identifier."
    },
    "api_accounts[].label": {
      "type": "string",
      "description": "Display name."
    },
    "api_accounts[].site_url": {
      "type": "string",
      "description": "Website URL (null if none)."
    },
    "api_accounts[].sync_status": {
      "type": "string",
      "description": "Crawl state."
    },
    "api_accounts[].index_ready": {
      "type": "boolean",
      "description": "Whether the website crawl succeeded."
    },
    "api_accounts[].posts": {
      "type": "integer",
      "description": "Document count."
    },
    "api_accounts[].chunks": {
      "type": "integer",
      "description": "Embedded passage count."
    },
    "usage": {
      "type": "object",
      "description": "Organisation‑wide totals."
    },
    "usage.api_users_count": {
      "type": "integer",
      "description": "Number of API accounts provisioned."
    },
    "usage.api_users_allowance": {
      "type": "integer",
      "description": "Total slots covered by bundles."
    },
    "usage.bundles": {
      "type": "integer",
      "description": "Number of bundles."
    },
    "usage.slots_available": {
      "type": "integer",
      "description": "Remaining slots before auto‑add."
    },
    "pagination": {
      "type": "object",
      "description": "Paging information."
    }
  }
}