{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cockroach-labs/main/json-schema/cockroach-labs-service-account-schema.json",
  "title": "ServiceAccount",
  "description": "A service account used for machine-to-machine authentication within a CockroachDB Cloud organization.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-service-accounts-api-openapi.yml#/components/schemas/ServiceAccount",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the service account."
    },
    "name": {
      "type": "string",
      "description": "Name of the service account."
    },
    "description": {
      "type": "string",
      "description": "Description of the service account's purpose."
    },
    "creator_id": {
      "type": "string",
      "description": "User ID of the account creator."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the service account was created."
    }
  }
}