{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pushary-com/json-schema/pushary-com-server-identity-schema.json",
  "title": "ServerIdentity",
  "description": "Who this API key is: which key, which site, which plan.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pushary-com-openapi.json#/components/schemas/ServerIdentity",
  "type": "object",
  "required": [
    "keyId",
    "keyPrefix",
    "keyScope",
    "siteId",
    "siteSlug",
    "plan",
    "locked"
  ],
  "properties": {
    "keyId": {
      "type": "string",
      "description": "Key identifier."
    },
    "keyPrefix": {
      "type": "string",
      "description": "The public half of the key."
    },
    "keyName": {
      "type": "string",
      "description": "The label given at creation."
    },
    "keyScope": {
      "type": "string",
      "description": "What the key may reach.",
      "enum": [
        "full_access",
        "agent",
        "connector",
        "bound"
      ]
    },
    "siteId": {
      "type": "string",
      "description": "The site the key belongs to."
    },
    "siteSlug": {
      "type": "string",
      "description": "The site slug."
    },
    "siteName": {
      "type": "string",
      "description": "The site name."
    },
    "workspaceId": {
      "type": "string",
      "description": "The workspace the site belongs to."
    },
    "plan": {
      "type": "string",
      "description": "The billing plan behind the key."
    },
    "surfacePlan": {
      "type": "string",
      "description": "Which product surface the plan belongs to."
    },
    "subscriptionStatus": {
      "type": "string",
      "description": "Stripe subscription status, or `none`."
    },
    "locked": {
      "type": "boolean",
      "description": "True when the workspace is locked for billing."
    },
    "machineId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The machine this key was last used from."
    },
    "authorizedUserId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The user whose session minted the key."
    },
    "workspaceMembers": {
      "type": "integer",
      "description": "How many people are in the workspace."
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When it was created."
    },
    "lastUsedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When it was last used."
    }
  }
}