{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apisign-io/json-schema/apisign-io-organization-schema.json",
  "title": "Organization",
  "description": "The organization record, including billing and branding settings",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apisign-io-openapi.yml#/components/schemas/Organization",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "logo": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "billing_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "contract_sent_price": {
      "type": "integer",
      "description": "Price per contract send, in cents"
    },
    "auto_recharge_enabled": {
      "type": "boolean"
    },
    "auto_recharge_threshold": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Cents"
    },
    "auto_recharge_amount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Cents"
    },
    "brand_logo": {
      "type": [
        "string",
        "null"
      ]
    },
    "brand_color_accent": {
      "type": [
        "string",
        "null"
      ]
    },
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    }
  },
  "additionalProperties": true
}