{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assinafy-com-br/json-schema/assinafy-com-br-account-schema.json",
  "title": "Account",
  "description": "A workspace account (organization).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assinafy-com-br-accounts-api-openapi.yml#/components/schemas/Account",
  "properties": {
    "resource": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "primary_color": {
      "type": [
        "string",
        "null"
      ]
    },
    "secondary_color": {
      "type": [
        "string",
        "null"
      ]
    },
    "notification_sender_type": {
      "type": "string",
      "enum": [
        "User",
        "Account"
      ]
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "is_delete_allowed": {
      "type": "boolean"
    },
    "limits": {
      "description": "Limits of the workspace's current plan. Returned only by `GET /v1/accounts/{accountId}`, not in account lists. More keys may be added.",
      "properties": {
        "webhook_endpoints": {
          "description": "How many webhook endpoints the workspace can have: `1`, or `3` with the Multiple Webhooks feature. Creating one past the limit returns `403`.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "type": "object"
}