{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-lite-llm-organization-table-with-members-schema.json",
  "title": "LiteLLM_OrganizationTableWithMembers",
  "description": "Returned by the /organization/info endpoint and /organization/list endpoint",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-organization-management-api-openapi.yml#/components/schemas/LiteLLM_OrganizationTableWithMembers",
  "properties": {
    "organization_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Organization Id"
    },
    "organization_alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Organization Alias"
    },
    "budget_id": {
      "type": "string",
      "title": "Budget Id"
    },
    "spend": {
      "type": "number",
      "title": "Spend",
      "default": 0.0
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    },
    "models": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Models",
      "default": []
    },
    "model_spend": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Spend",
      "default": {}
    },
    "created_by": {
      "type": "string",
      "title": "Created By"
    },
    "updated_by": {
      "type": "string",
      "title": "Updated By"
    },
    "users": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/LiteLLM_UserTable"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Users"
    },
    "litellm_budget_table": {
      "anyOf": [
        {
          "$ref": "#/$defs/LiteLLM_BudgetTable"
        },
        {
          "type": "null"
        }
      ]
    },
    "object_permission": {
      "anyOf": [
        {
          "$ref": "#/$defs/LiteLLM_ObjectPermissionTable"
        },
        {
          "type": "null"
        }
      ]
    },
    "object_permission_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Object Permission Id"
    },
    "members": {
      "items": {
        "$ref": "#/$defs/LiteLLM_OrganizationMembershipTable"
      },
      "type": "array",
      "title": "Members",
      "default": []
    },
    "teams": {
      "items": {
        "$ref": "#/$defs/LiteLLM_TeamTable"
      },
      "type": "array",
      "title": "Teams",
      "default": []
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "budget_id",
    "created_by",
    "updated_by",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "BudgetLimitEntry": {
      "properties": {
        "budget_duration": {
          "type": "string",
          "title": "Budget Duration"
        },
        "max_budget": {
          "type": "number",
          "title": "Max Budget"
        },
        "reset_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reset At"
        }
      },
      "type": "object",
      "required": [
        "budget_duration",
        "max_budget"
      ],
      "title": "BudgetLimitEntry",
      "description": "A single budget window with its own limit and independent reset schedule."
    },
    "LiteLLM_BudgetTable": {
      "properties": {
        "budget_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Id"
        },
        "soft_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Soft Budget"
        },
        "max_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Budget"
        },
        "max_parallel_requests": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Parallel Requests"
        },
        "tpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tpm Limit"
        },
        "rpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rpm Limit"
        },
        "model_max_budget": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Max Budget"
        },
        "budget_duration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Duration"
        },
        "allowed_models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Allowed Models"
        }
      },
      "type": "object",
      "title": "LiteLLM_BudgetTable",
      "description": "Represents user-controllable params for a LiteLLM_BudgetTable record.\n\nBudget-write paths use `model_fields.keys()` on this class as an allowlist\nfor user input. Keep server-managed fields (e.g. `budget_reset_at`) on\n`LiteLLM_BudgetTableFull` so they aren't user-settable."
    },
    "LiteLLM_ModelTable": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "model_aliases": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Aliases"
        },
        "created_by": {
          "type": "string",
          "title": "Created By"
        },
        "updated_by": {
          "type": "string",
          "title": "Updated By"
        },
        "team": {
          "anyOf": [
            {
              "$ref": "#/$defs/LiteLLM_TeamTable"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "created_by",
        "updated_by"
      ],
      "title": "LiteLLM_ModelTable"
    },
    "LiteLLM_ObjectPermissionTable": {
      "properties": {
        "object_permission_id": {
          "type": "string",
          "title": "Object Permission Id"
        },
        "mcp_servers": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Servers",
          "default": []
        },
        "mcp_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Access Groups",
          "default": []
        },
        "mcp_tool_permissions": {
          "anyOf": [
            {
              "additionalProperties": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Permissions"
        },
        "vector_stores": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vector Stores",
          "default": []
        },
        "agents": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agents",
          "default": []
        },
        "agent_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Access Groups",
          "default": []
        },
        "models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Models",
          "default": []
        },
        "mcp_toolsets": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Toolsets"
        },
        "blocked_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blocked Tools",
          "default": []
        },
        "search_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Search Tools",
          "default": []
        },
        "mcp_tool_search_enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Search Enabled"
        }
      },
      "type": "object",
      "required": [
        "object_permission_id"
      ],
      "title": "LiteLLM_ObjectPermissionTable",
      "description": "Represents a LiteLLM_ObjectPermissionTable record"
    },
    "LiteLLM_OrganizationMembershipTable": {
      "properties": {
        "user_id": {
          "type": "string",
          "title": "User Id"
        },
        "organization_id": {
          "type": "string",
          "title": "Organization Id"
        },
        "user_role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Role"
        },
        "spend": {
          "type": "number",
          "title": "Spend",
          "default": 0.0
        },
        "budget_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Id"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        },
        "user": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "User"
        },
        "litellm_budget_table": {
          "anyOf": [
            {
              "$ref": "#/$defs/LiteLLM_BudgetTable"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Email"
        }
      },
      "type": "object",
      "required": [
        "user_id",
        "organization_id",
        "created_at",
        "updated_at"
      ],
      "title": "LiteLLM_OrganizationMembershipTable",
      "description": "Tracks which organizations a user belongs to and their spend within it."
    },
    "LiteLLM_TeamTable": {
      "properties": {
        "team_alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Alias"
        },
        "team_id": {
          "type": "string",
          "title": "Team Id"
        },
        "organization_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Organization Id"
        },
        "admins": {
          "items": {},
          "type": "array",
          "title": "Admins",
          "default": []
        },
        "members": {
          "items": {},
          "type": "array",
          "title": "Members",
          "default": []
        },
        "members_with_roles": {
          "items": {
            "$ref": "#/$defs/Member"
          },
          "type": "array",
          "title": "Members With Roles",
          "default": []
        },
        "team_member_permissions": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Member Permissions"
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metadata"
        },
        "tpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tpm Limit"
        },
        "rpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rpm Limit"
        },
        "max_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Budget"
        },
        "soft_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Soft Budget"
        },
        "budget_duration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Duration"
        },
        "budget_limits": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/BudgetLimitEntry"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Limits"
        },
        "models": {
          "items": {},
          "type": "array",
          "title": "Models",
          "default": []
        },
        "blocked": {
          "type": "boolean",
          "title": "Blocked",
          "default": false
        },
        "router_settings": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Router Settings"
        },
        "access_group_ids": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Access Group Ids"
        },
        "default_team_member_models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Default Team Member Models"
        },
        "spend": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Spend"
        },
        "max_parallel_requests": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Parallel Requests"
        },
        "budget_reset_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Reset At"
        },
        "model_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Id"
        },
        "model_spend": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Spend",
          "default": {}
        },
        "model_max_budget": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Max Budget",
          "default": {}
        },
        "policies": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Policies"
        },
        "allow_team_guardrail_config": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Allow Team Guardrail Config",
          "default": false
        },
        "litellm_model_table": {
          "anyOf": [
            {
              "$ref": "#/$defs/LiteLLM_ModelTable"
            },
            {
              "type": "null"
            }
          ]
        },
        "object_permission": {
          "anyOf": [
            {
              "$ref": "#/$defs/LiteLLM_ObjectPermissionTable"
            },
            {
              "type": "null"
            }
          ]
        },
        "object_permission_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Object Permission Id"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "team_id"
      ],
      "title": "LiteLLM_TeamTable"
    },
    "LiteLLM_UserTable": {
      "properties": {
        "user_id": {
          "type": "string",
          "title": "User Id"
        },
        "user_alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Alias"
        },
        "team_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Id"
        },
        "sso_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sso User Id"
        },
        "organization_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Organization Id"
        },
        "object_permission_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Object Permission Id"
        },
        "teams": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Teams",
          "default": []
        },
        "user_role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Role"
        },
        "max_budget": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Budget"
        },
        "spend": {
          "type": "number",
          "title": "Spend",
          "default": 0.0
        },
        "user_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Email"
        },
        "models": {
          "items": {},
          "type": "array",
          "title": "Models",
          "default": []
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metadata"
        },
        "max_parallel_requests": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Parallel Requests"
        },
        "tpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tpm Limit"
        },
        "rpm_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rpm Limit"
        },
        "budget_duration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Duration"
        },
        "budget_reset_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Reset At"
        },
        "allowed_cache_controls": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Allowed Cache Controls",
          "default": []
        },
        "policies": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Policies",
          "default": []
        },
        "model_spend": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Spend",
          "default": {}
        },
        "model_max_budget": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Max Budget",
          "default": {}
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        },
        "organization_memberships": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/LiteLLM_OrganizationMembershipTable"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Organization Memberships"
        },
        "object_permission": {
          "anyOf": [
            {
              "$ref": "#/$defs/LiteLLM_ObjectPermissionTable"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "user_id"
      ],
      "title": "LiteLLM_UserTable"
    },
    "Member": {
      "properties": {
        "user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Id",
          "description": "The unique ID of the user to add. Either user_id or user_email must be provided"
        },
        "user_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Email",
          "description": "The email address of the user to add. Either user_id or user_email must be provided"
        },
        "role": {
          "type": "string",
          "enum": [
            "admin",
            "user"
          ],
          "title": "Role",
          "description": "The role of the user within the team. 'admin' users can manage team settings and members, 'user' is a regular team member"
        }
      },
      "type": "object",
      "required": [
        "role"
      ],
      "title": "Member"
    }
  }
}