{
  "openapi": "3.1.0",
  "info": {
    "title": "RateAI A.E.G.I.S. API",
    "description": "The RateAI A.E.G.I.S.\u2122 (Artificial Intelligence Evaluation for Guardrails, Integrity & Safety) API. Evaluate AI systems and autonomous agents across seven safety pillars and issue standardized A-Scale certifications.",
    "contact": {
      "name": "RateAI",
      "url": "https://rateai.ai/"
    },
    "version": "1.5.0"
  },
  "paths": {
    "/auth/register": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Register",
        "operationId": "register_auth_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/register\", json=payload)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/register', payload)\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Login",
        "operationId": "login_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/login\", json=payload)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/login', payload)\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Logout",
        "operationId": "logout_auth_logout_post",
        "responses": {
          "204": {
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/logout\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/logout', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/invite/accept": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Accept Invite",
        "operationId": "accept_invite_auth_invite_accept_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/invite/accept\", json=payload)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/invite/accept', payload)\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/sso/google": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Sso Google Redirect",
        "operationId": "sso_google_redirect_auth_sso_google_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nresponse = requests.get(\"https://api.rateai.ai/auth/sso/google\")\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/auth/sso/google')\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/sso/google/callback": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Sso Google Callback",
        "operationId": "sso_google_callback_auth_sso_google_callback_get",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Code"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "State"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nresponse = requests.get(\"https://api.rateai.ai/auth/sso/google/callback\")\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/auth/sso/google/callback')\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/enroll": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Mfa Enroll",
        "operationId": "mfa_enroll_auth_mfa_enroll_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaEnrollResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/enroll\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/mfa/enroll', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/enroll/confirm": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Mfa Enroll Confirm",
        "operationId": "mfa_enroll_confirm_auth_mfa_enroll_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaConfirmResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/enroll/confirm\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/mfa/enroll/confirm', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/verify": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Mfa Verify",
        "operationId": "mfa_verify_auth_mfa_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaVerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/verify\", json=payload)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/mfa/verify', payload)\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/disable": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Mfa Disable",
        "operationId": "mfa_disable_auth_mfa_disable_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaDisableRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "MFA disabled successfully"
          },
          "400": {
            "description": "Invalid code — the submitted OTP or TOTP code was incorrect"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/disable\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/mfa/disable', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/backup-codes": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Get Backup Codes",
        "operationId": "get_backup_codes_auth_mfa_backup_codes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupCodeStatusResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/auth/mfa/backup-codes\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/auth/mfa/backup-codes', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/backup-codes/regenerate": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Regenerate Backup Codes",
        "operationId": "regenerate_backup_codes_auth_mfa_backup_codes_regenerate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaConfirmResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/backup-codes/regenerate\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/auth/mfa/backup-codes/regenerate', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/email/enroll": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Begin Email MFA Enrollment",
        "description": "Send a 6-digit OTP to the authenticated user's email address to begin email 2FA enrollment.",
        "operationId": "mfa_email_enroll_auth_mfa_email_enroll_post",
        "responses": {
          "200": {
            "description": "Challenge token to be passed to the confirm endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaChallengeTokenResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/email/enroll\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/mfa/email/enroll', {}, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/email/enroll/confirm": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Confirm Email MFA Enrollment",
        "description": "Verify the 6-digit OTP sent during enrollment. On success, email 2FA is activated for the account.",
        "operationId": "mfa_email_enroll_confirm_auth_mfa_email_enroll_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailMfaEnrollConfirmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Email MFA successfully enabled"
          },
          "400": {
            "description": "Invalid or expired OTP"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {\"challenge_token\": \"...\", \"code\": \"123456\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/email/enroll/confirm\", json=payload, headers=headers)\nprint(response.status_code)"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/mfa/email/enroll/confirm',\n    { challenge_token: '...', code: '123456' },\n    { headers: { 'Authorization': 'Bearer YOUR_TOKEN' } }\n  )\n  .then(res => console.log(res.status))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/mfa/email/disable-code": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Send Email MFA Disable Code",
        "description": "Send a 6-digit OTP to the user's email as a confirmation step before disabling email 2FA.",
        "operationId": "mfa_email_disable_code_auth_mfa_email_disable_code_post",
        "responses": {
          "200": {
            "description": "Challenge token to be passed to POST /auth/mfa/disable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaChallengeTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Email MFA is not enabled for this account"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/mfa/email/disable-code\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/mfa/email/disable-code', {}, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/password/forgot": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Forgot Password",
        "description": "Request a password-reset link. Always returns 204 regardless of whether the email exists (prevents user enumeration).",
        "operationId": "forgot_password_auth_password_forgot_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Reset email sent (or silently ignored if email not found)"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\npayload = {\"email\": \"user@example.com\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/password/forgot\", json=payload)\nprint(response.status_code)"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/password/forgot', { email: 'user@example.com' })\n  .then(res => console.log(res.status))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/auth/password/reset": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Reset Password",
        "description": "Exchange a valid password-reset token for a new password.",
        "operationId": "reset_password_auth_password_reset_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Password updated successfully"
          },
          "400": {
            "description": "Invalid or expired reset token"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\npayload = {\"token\": \"RESET_TOKEN\", \"new_password\": \"newpassword123\"}\nresponse = requests.post(\"https://api.rateai.ai/auth/password/reset\", json=payload)\nprint(response.status_code)"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/auth/password/reset',\n    { token: 'RESET_TOKEN', new_password: 'newpassword123' }\n  )\n  .then(res => console.log(res.status))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/companies/me": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Get Company",
        "operationId": "get_company_companies_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/companies/me\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/companies/me', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      },
      "patch": {
        "tags": [
          "Companies"
        ],
        "summary": "Update Company",
        "operationId": "update_company_companies_me_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.patch(\"https://api.rateai.ai/companies/me\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .patch('https://api.rateai.ai/companies/me', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/me": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get Me",
        "operationId": "get_me_users_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/users/me\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/users/me', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      },
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Update Me",
        "operationId": "update_me_users_me_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.patch(\"https://api.rateai.ai/users/me\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .patch('https://api.rateai.ai/users/me', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/me/password": {
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Change Password",
        "description": "Change the authenticated user's password by providing the current password and a new password.",
        "operationId": "change_my_password_users_me_password_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Password updated successfully"
          },
          "400": {
            "description": "Current password incorrect"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {\"current_password\": \"old\", \"new_password\": \"newpassword123\"}\nresponse = requests.patch(\"https://api.rateai.ai/users/me/password\", json=payload, headers=headers)\nprint(response.status_code)"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .patch('https://api.rateai.ai/users/me/password',\n    { current_password: 'old', new_password: 'newpassword123' },\n    { headers: { 'Authorization': 'Bearer YOUR_TOKEN' } }\n  )\n  .then(res => console.log(res.status))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "List Users",
        "operationId": "list_users_users_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/User"
                  },
                  "type": "array",
                  "title": "Response List Users Users Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/users\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/users', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/invite": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Invite User",
        "operationId": "invite_user_users_invite_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/users/invite\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/users/invite', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/invitations": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "List Invitations",
        "operationId": "list_invitations_users_invitations_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/InvitationSchema"
                  },
                  "type": "array",
                  "title": "Response List Invitations Users Invitations Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/users/invitations\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/users/invitations', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/invitations/{invitation_id}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Revoke Invitation",
        "operationId": "revoke_invitation_users_invitations__invitation_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "invitation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Invitation Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.delete(\"https://api.rateai.ai/users/invitations/{invitation_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .delete('https://api.rateai.ai/users/invitations/{invitation_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/{user_id}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Remove User",
        "operationId": "remove_user_users__user_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.delete(\"https://api.rateai.ai/users/{user_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .delete('https://api.rateai.ai/users/{user_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/users/{user_id}/role": {
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Update User Role",
        "operationId": "update_user_role_users__user_id__role_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.patch(\"https://api.rateai.ai/users/{user_id}/role\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .patch('https://api.rateai.ai/users/{user_id}/role', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/api-keys": {
      "get": {
        "tags": [
          "API Keys"
        ],
        "summary": "List Api Keys",
        "operationId": "list_api_keys_api_keys_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ApiKey"
                  },
                  "type": "array",
                  "title": "Response List Api Keys Api Keys Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/api-keys\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/api-keys', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      },
      "post": {
        "tags": [
          "API Keys"
        ],
        "summary": "Create Api Key",
        "operationId": "create_api_key_api_keys_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreatedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/api-keys\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/api-keys', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/api-keys/{key_id}": {
      "delete": {
        "tags": [
          "API Keys"
        ],
        "summary": "Revoke Api Key",
        "operationId": "revoke_api_key_api_keys__key_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Key Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.delete(\"https://api.rateai.ai/api-keys/{key_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .delete('https://api.rateai.ai/api-keys/{key_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/billing/subscription": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Get Subscription",
        "operationId": "get_subscription_billing_subscription_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/billing/subscription\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/billing/subscription', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/billing/checkout": {
      "post": {
        "tags": [
          "Billing"
        ],
        "summary": "Create Checkout",
        "operationId": "create_checkout_billing_checkout_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/billing/checkout\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/billing/checkout', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/billing/invoices": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "List Invoices",
        "operationId": "list_invoices_billing_invoices_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Invoice"
                  },
                  "type": "array",
                  "title": "Response List Invoices Billing Invoices Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/billing/invoices\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/billing/invoices', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/products": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "List Products",
        "operationId": "list_products_products_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Product"
                  },
                  "type": "array",
                  "title": "Response List Products Products Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/products\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/products', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      },
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Create Product",
        "operationId": "create_product_products_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/products\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/products', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/products/{product_id}": {
      "patch": {
        "tags": [
          "Products"
        ],
        "summary": "Update Product",
        "operationId": "update_product_products__product_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Product Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.patch(\"https://api.rateai.ai/products/{product_id}\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .patch('https://api.rateai.ai/products/{product_id}', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      },
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Get Product",
        "operationId": "get_product_products__product_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Product Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/products/{product_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/products/{product_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/products/{product_id}/test-connection": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Test Connection",
        "operationId": "test_connection_products__product_id__test_connection_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Product Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestConnectionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.post(\"https://api.rateai.ai/products/{product_id}/test-connection\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/products/{product_id}/test-connection', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/evaluations": {
      "get": {
        "tags": [
          "Evaluations"
        ],
        "summary": "List Evaluations",
        "operationId": "list_evaluations_evaluations_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Evaluation"
                  },
                  "type": "array",
                  "title": "Response List Evaluations Evaluations Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/evaluations\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/evaluations', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      },
      "post": {
        "tags": [
          "Evaluations"
        ],
        "summary": "Create Evaluation",
        "operationId": "create_evaluation_evaluations_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEvaluationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Evaluation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\npayload = {}\nresponse = requests.post(\"https://api.rateai.ai/evaluations\", json=payload, headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\nconst payload = {};\naxios\n  .post('https://api.rateai.ai/evaluations', payload, {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/evaluations/{eval_id}": {
      "get": {
        "tags": [
          "Evaluations"
        ],
        "summary": "Get Evaluation",
        "operationId": "get_evaluation_evaluations__eval_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Evaluation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/evaluations/{eval_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/evaluations/{eval_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/evaluations/{eval_id}/prompt-cases": {
      "get": {
        "tags": [
          "Evaluations"
        ],
        "summary": "List Prompt Cases",
        "operationId": "list_prompt_cases_evaluations__eval_id__prompt_cases_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/evaluations/{eval_id}/prompt-cases\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/evaluations/{eval_id}/prompt-cases', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/evaluations/{eval_id}/certification": {
      "get": {
        "tags": [
          "Evaluations"
        ],
        "summary": "Get Evaluation Certification",
        "operationId": "get_evaluation_certification_evaluations__eval_id__certification_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/evaluations/{eval_id}/certification\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/evaluations/{eval_id}/certification', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/evaluations/{eval_id}/report": {
      "get": {
        "tags": [
          "Evaluations"
        ],
        "summary": "Get Evaluation Report",
        "operationId": "get_evaluation_report_evaluations__eval_id__report_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationReport"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/evaluations/{eval_id}/report\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/evaluations/{eval_id}/report', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/prompt-cases": {
      "get": {
        "tags": [
          "Prompt Cases"
        ],
        "summary": "List Prompt Cases",
        "operationId": "list_prompt_cases_prompt_cases_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pillar",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by safety pillar (G/H/D/E/R/C/X)",
              "title": "Pillar"
            },
            "description": "Filter by safety pillar (G/H/D/E/R/C/X)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptCase"
                  },
                  "title": "Response List Prompt Cases Prompt Cases Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/prompt-cases\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/prompt-cases', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/prompt-cases/{case_id}": {
      "get": {
        "tags": [
          "Prompt Cases"
        ],
        "summary": "Get Prompt Case",
        "operationId": "get_prompt_case_prompt_cases__case_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptCaseDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/prompt-cases/{case_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/prompt-cases/{case_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/validators": {
      "get": {
        "tags": [
          "Validators"
        ],
        "summary": "List Validators",
        "operationId": "list_validators_validators_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Validator"
                  },
                  "type": "array",
                  "title": "Response List Validators Validators Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/validators\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/validators', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/consensus/{case_id}": {
      "get": {
        "tags": [
          "Consensus"
        ],
        "summary": "Get Consensus",
        "operationId": "get_consensus_consensus__case_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsensusDecision"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/consensus/{case_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/consensus/{case_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/scores": {
      "get": {
        "tags": [
          "Scores"
        ],
        "summary": "List Scores",
        "operationId": "list_scores_scores_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ScoreListItem"
                  },
                  "type": "array",
                  "title": "Response List Scores Scores Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/scores\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/scores', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/scores/{eval_id}": {
      "get": {
        "tags": [
          "Scores"
        ],
        "summary": "Get Scores",
        "operationId": "get_scores_scores__eval_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoreSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/scores/{eval_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/scores/{eval_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/epochs": {
      "get": {
        "tags": [
          "Epochs"
        ],
        "summary": "List Epochs",
        "operationId": "list_epochs_epochs_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ScoringEpoch"
                  },
                  "type": "array",
                  "title": "Response List Epochs Epochs Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/epochs\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/epochs', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/epochs/active": {
      "get": {
        "tags": [
          "Epochs"
        ],
        "summary": "Get Active Epoch",
        "operationId": "get_active_epoch_epochs_active_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoringEpoch"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/epochs/active\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/epochs/active', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/epochs/{epoch_id}": {
      "get": {
        "tags": [
          "Epochs"
        ],
        "summary": "Get Epoch",
        "operationId": "get_epoch_epochs__epoch_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "epoch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Epoch Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoringEpoch"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/epochs/{epoch_id}\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/epochs/{epoch_id}', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/registry": {
      "get": {
        "tags": [
          "Registry"
        ],
        "summary": "List Certifications",
        "operationId": "list_certifications_registry_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CertificationListItem"
                  },
                  "type": "array",
                  "title": "Response List Certifications Registry Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/registry\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/registry', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/registry/{product_id}": {
      "get": {
        "tags": [
          "Registry"
        ],
        "summary": "Get Certification History",
        "operationId": "get_certification_history_registry__product_id__get",
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Product Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Certification"
                  },
                  "title": "Response Get Certification History Registry  Product Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nresponse = requests.get(\"https://api.rateai.ai/registry/{product_id}\")\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/registry/{product_id}')\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/registry/{product_id}/latest": {
      "get": {
        "tags": [
          "Registry"
        ],
        "summary": "Get Latest Certification",
        "operationId": "get_latest_certification_registry__product_id__latest_get",
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Product Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certification"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nresponse = requests.get(\"https://api.rateai.ai/registry/{product_id}/latest\")\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/registry/{product_id}/latest')\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/audit": {
      "get": {
        "tags": [
          "Audit"
        ],
        "summary": "List Audit Summary",
        "operationId": "list_audit_summary_audit_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuditSummaryItem"
                  },
                  "type": "array",
                  "title": "Response List Audit Summary Audit Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/audit\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/audit', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/audit/{eval_id}/ledger": {
      "get": {
        "tags": [
          "Audit"
        ],
        "summary": "Get Audit Ledger",
        "operationId": "get_audit_ledger_audit__eval_id__ledger_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditLedger"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/audit/{eval_id}/ledger\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/audit/{eval_id}/ledger', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/audit/{eval_id}/verify": {
      "post": {
        "tags": [
          "Audit"
        ],
        "summary": "Verify Audit Chain",
        "operationId": "verify_audit_chain_audit__eval_id__verify_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Eval Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditVerifyResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.post(\"https://api.rateai.ai/audit/{eval_id}/verify\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .post('https://api.rateai.ai/audit/{eval_id}/verify', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/dashboard/summary": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Get Dashboard Summary",
        "operationId": "get_dashboard_summary_dashboard_summary_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardSummary"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/dashboard/summary\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/dashboard/summary', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/dashboard/charts": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Get Dashboard Charts",
        "operationId": "get_dashboard_charts_dashboard_charts_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardCharts"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nheaders = {\"Authorization\": \"Bearer YOUR_TOKEN\"}\nresponse = requests.get(\"https://api.rateai.ai/dashboard/charts\", headers=headers)\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/dashboard/charts', {\n    headers: { 'Authorization': 'Bearer YOUR_TOKEN' }\n  })\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/meta/pillars": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "List Pillars",
        "description": "Returns the seven safety pillars used to evaluate AI systems. No authentication required.",
        "operationId": "list_pillars_meta_pillars_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Pillar"
                  },
                  "title": "Response List Pillars Meta Pillars Get"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nresponse = requests.get(\"https://api.rateai.ai/meta/pillars\")\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/meta/pillars')\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Python",
            "source": "import requests\n\nresponse = requests.get(\"https://api.rateai.ai/health\")\nprint(response.json())"
          },
          {
            "lang": "Node.js",
            "source": "const axios = require('axios');\n\naxios\n  .get('https://api.rateai.ai/health')\n  .then(res => console.log(res.data))\n  .catch(err => console.error(err.response.data));"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AScaleDistributionItem": {
        "properties": {
          "a_scale": {
            "type": "string",
            "title": "A Scale"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "a_scale",
          "count"
        ],
        "title": "AScaleDistributionItem"
      },
      "AcceptInviteRequest": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "first_name": {
            "type": "string",
            "title": "First Name"
          },
          "last_name": {
            "type": "string",
            "title": "Last Name"
          }
        },
        "type": "object",
        "required": [
          "token",
          "password",
          "first_name",
          "last_name"
        ],
        "title": "AcceptInviteRequest"
      },
      "ApiKey": {
        "properties": {
          "key_id": {
            "type": "string",
            "title": "Key Id"
          },
          "key_name": {
            "type": "string",
            "title": "Key Name"
          },
          "key_prefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Prefix"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "key_name",
          "created_at"
        ],
        "title": "ApiKey"
      },
      "ApiKeyCreatedResponse": {
        "properties": {
          "key_id": {
            "type": "string",
            "title": "Key Id"
          },
          "key_name": {
            "type": "string",
            "title": "Key Name"
          },
          "key_prefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Prefix"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "key": {
            "type": "string",
            "title": "Key"
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "key_name",
          "created_at",
          "key"
        ],
        "title": "ApiKeyCreatedResponse"
      },
      "AuditEntry": {
        "properties": {
          "table": {
            "type": "string",
            "title": "Table"
          },
          "record_id": {
            "type": "string",
            "title": "Record Id"
          },
          "record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Hash"
          },
          "prev_record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prev Record Hash"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "table",
          "record_id",
          "created_at"
        ],
        "title": "AuditEntry"
      },
      "AuditLedger": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/AuditEntry"
            },
            "type": "array",
            "title": "Entries"
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "entries"
        ],
        "title": "AuditLedger"
      },
      "AuditSummaryItem": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "prompt_case_count": {
            "type": "integer",
            "title": "Prompt Case Count"
          },
          "has_hash_chain": {
            "type": "boolean",
            "title": "Has Hash Chain"
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "status",
          "prompt_case_count",
          "has_hash_chain"
        ],
        "title": "AuditSummaryItem"
      },
      "AuditVerifyResponse": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "valid": {
            "type": "boolean",
            "title": "Valid"
          },
          "checked_at": {
            "type": "string",
            "format": "date-time",
            "title": "Checked At"
          },
          "broken_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Broken At"
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "valid",
          "checked_at"
        ],
        "title": "AuditVerifyResponse"
      },
      "AuthResponse": {
        "properties": {
          "access_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Access Token"
          },
          "mfa_required": {
            "type": "boolean",
            "title": "Mfa Required",
            "default": false
          },
          "mfa_challenge_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mfa Challenge Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "bearer"
          }
        },
        "type": "object",
        "title": "AuthResponse"
      },
      "BackupCodeStatusResponse": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "remaining": {
            "type": "integer",
            "title": "Remaining"
          }
        },
        "type": "object",
        "required": [
          "total",
          "used",
          "remaining"
        ],
        "title": "BackupCodeStatusResponse"
      },
      "Certification": {
        "properties": {
          "cert_id": {
            "type": "string",
            "title": "Cert Id"
          },
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "epoch_id": {
            "type": "string",
            "title": "Epoch Id"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "certified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Certified"
          },
          "issued_at": {
            "type": "string",
            "format": "date-time",
            "title": "Issued At"
          },
          "valid_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid From"
          },
          "valid_to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid To"
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current"
          },
          "record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Hash"
          }
        },
        "type": "object",
        "required": [
          "cert_id",
          "product_id",
          "eval_id",
          "epoch_id",
          "issued_at",
          "is_current"
        ],
        "title": "Certification"
      },
      "CertificationListItem": {
        "properties": {
          "cert_id": {
            "type": "string",
            "title": "Cert Id"
          },
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "epoch_id": {
            "type": "string",
            "title": "Epoch Id"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "certified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Certified"
          },
          "issued_at": {
            "type": "string",
            "format": "date-time",
            "title": "Issued At"
          },
          "valid_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid From"
          },
          "valid_to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid To"
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current"
          },
          "record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Hash"
          },
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          }
        },
        "type": "object",
        "required": [
          "cert_id",
          "product_id",
          "eval_id",
          "epoch_id",
          "issued_at",
          "is_current"
        ],
        "title": "CertificationListItem"
      },
      "CheckoutRequest": {
        "properties": {
          "plan": {
            "type": "string",
            "title": "Plan"
          },
          "success_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Success Url"
          },
          "cancel_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cancel Url"
          }
        },
        "type": "object",
        "required": [
          "plan"
        ],
        "title": "CheckoutRequest"
      },
      "CheckoutResponse": {
        "properties": {
          "checkout_url": {
            "type": "string",
            "title": "Checkout Url"
          }
        },
        "type": "object",
        "required": [
          "checkout_url"
        ],
        "title": "CheckoutResponse"
      },
      "Company": {
        "properties": {
          "company_id": {
            "type": "string",
            "title": "Company Id"
          },
          "company_name": {
            "type": "string",
            "title": "Company Name"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone"
          },
          "address_line1": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address Line1"
          },
          "address_line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address Line2"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          },
          "postal_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Postal Code"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "plan": {
            "type": "string",
            "title": "Plan"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "company_id",
          "company_name",
          "plan",
          "is_active",
          "created_at"
        ],
        "title": "Company"
      },
      "CompanyUpdateRequest": {
        "properties": {
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone"
          },
          "address_line1": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address Line1"
          },
          "address_line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address Line2"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          },
          "postal_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Postal Code"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          }
        },
        "type": "object",
        "title": "CompanyUpdateRequest"
      },
      "CompositeScore": {
        "properties": {
          "score_id": {
            "type": "string",
            "title": "Score Id"
          },
          "composite_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Composite Score"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "certified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Certified"
          },
          "downgrade_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Downgrade Reason"
          },
          "score_type": {
            "type": "string",
            "title": "Score Type"
          },
          "computed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Computed At"
          }
        },
        "type": "object",
        "required": [
          "score_id",
          "score_type",
          "computed_at"
        ],
        "title": "CompositeScore"
      },
      "ConsensusDecision": {
        "properties": {
          "decision_id": {
            "type": "string",
            "title": "Decision Id"
          },
          "case_id": {
            "type": "string",
            "title": "Case Id"
          },
          "final_verdict": {
            "type": "string",
            "title": "Final Verdict"
          },
          "weighted_pass_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weighted Pass Score"
          },
          "num_validators": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Num Validators"
          },
          "num_non_abstain": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Num Non Abstain"
          },
          "agreement_ratio": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agreement Ratio"
          },
          "diversity_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Diversity Count"
          },
          "quorum_met": {
            "type": "boolean",
            "title": "Quorum Met"
          },
          "hard_fail_triggered": {
            "type": "boolean",
            "title": "Hard Fail Triggered"
          },
          "dispute_escalated": {
            "type": "boolean",
            "title": "Dispute Escalated",
            "default": false
          },
          "confidence_band": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence Band"
          },
          "evidence_bundle_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Bundle Hash"
          },
          "decided_at": {
            "type": "string",
            "format": "date-time",
            "title": "Decided At"
          }
        },
        "type": "object",
        "required": [
          "decision_id",
          "case_id",
          "final_verdict",
          "quorum_met",
          "hard_fail_triggered",
          "decided_at"
        ],
        "title": "ConsensusDecision"
      },
      "CreateApiKeyRequest": {
        "properties": {
          "key_name": {
            "type": "string",
            "title": "Key Name"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "key_name"
        ],
        "title": "CreateApiKeyRequest"
      },
      "CreateEvaluationRequest": {
        "properties": {
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "epoch_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Epoch Id"
          }
        },
        "type": "object",
        "required": [
          "product_id"
        ],
        "title": "CreateEvaluationRequest"
      },
      "CreateProductRequest": {
        "properties": {
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "product_type": {
            "type": "string",
            "title": "Product Type"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "evaluation_type": {
            "type": "string",
            "title": "Evaluation Type"
          },
          "tools": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ToolInventoryItem"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tools"
          },
          "endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Url"
          },
          "endpoint_auth_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Type"
          },
          "endpoint_auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Header"
          },
          "endpoint_credential": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Credential"
          },
          "endpoint_request_template": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Request Template"
          }
        },
        "type": "object",
        "required": [
          "product_name",
          "product_type",
          "evaluation_type"
        ],
        "title": "CreateProductRequest"
      },
      "DashboardCharts": {
        "properties": {
          "score_trends": {
            "items": {
              "$ref": "#/components/schemas/ProductScoreTrend"
            },
            "type": "array",
            "title": "Score Trends"
          },
          "pillar_breakdown": {
            "items": {
              "$ref": "#/components/schemas/PillarBreakdownItem"
            },
            "type": "array",
            "title": "Pillar Breakdown"
          },
          "verdict_breakdown": {
            "items": {
              "$ref": "#/components/schemas/VerdictCount"
            },
            "type": "array",
            "title": "Verdict Breakdown"
          },
          "cert_expirations": {
            "items": {
              "$ref": "#/components/schemas/ExpirationItem"
            },
            "type": "array",
            "title": "Cert Expirations"
          },
          "a_scale_distribution": {
            "items": {
              "$ref": "#/components/schemas/AScaleDistributionItem"
            },
            "type": "array",
            "title": "A Scale Distribution"
          }
        },
        "type": "object",
        "required": [
          "score_trends",
          "pillar_breakdown",
          "verdict_breakdown",
          "cert_expirations",
          "a_scale_distribution"
        ],
        "title": "DashboardCharts"
      },
      "DashboardSummary": {
        "properties": {
          "total_products": {
            "type": "integer",
            "title": "Total Products"
          },
          "total_evaluations": {
            "type": "integer",
            "title": "Total Evaluations"
          },
          "active_certifications": {
            "type": "integer",
            "title": "Active Certifications"
          },
          "evaluations_in_progress": {
            "type": "integer",
            "title": "Evaluations In Progress"
          },
          "products": {
            "items": {
              "$ref": "#/components/schemas/ProductSummary"
            },
            "type": "array",
            "title": "Products"
          },
          "recent_evaluations": {
            "items": {
              "$ref": "#/components/schemas/RecentEvaluation"
            },
            "type": "array",
            "title": "Recent Evaluations"
          }
        },
        "type": "object",
        "required": [
          "total_products",
          "total_evaluations",
          "active_certifications",
          "evaluations_in_progress",
          "products",
          "recent_evaluations"
        ],
        "title": "DashboardSummary"
      },
      "Evaluation": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          },
          "epoch_id": {
            "type": "string",
            "title": "Epoch Id"
          },
          "evaluation_type": {
            "type": "string",
            "title": "Evaluation Type"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "certified_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Certified Score"
          },
          "monitoring_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monitoring Score"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "product_id",
          "epoch_id",
          "evaluation_type",
          "status"
        ],
        "title": "Evaluation"
      },
      "EvaluationReport": {
        "properties": {
          "evaluation": {
            "$ref": "#/components/schemas/Evaluation"
          },
          "pillar_scores": {
            "items": {
              "$ref": "#/components/schemas/PillarScore"
            },
            "type": "array",
            "title": "Pillar Scores"
          },
          "composite_score": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompositeScore"
              },
              {
                "type": "null"
              }
            ]
          },
          "validators": {
            "items": {
              "$ref": "#/components/schemas/Validator"
            },
            "type": "array",
            "title": "Validators"
          }
        },
        "type": "object",
        "required": [
          "evaluation",
          "pillar_scores",
          "validators"
        ],
        "title": "EvaluationReport"
      },
      "ExpirationItem": {
        "properties": {
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "valid_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid To"
          },
          "days_remaining": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Days Remaining"
          }
        },
        "type": "object",
        "required": [
          "product_name",
          "a_scale",
          "valid_to",
          "days_remaining"
        ],
        "title": "ExpirationItem"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "InvitationSchema": {
        "properties": {
          "invitation_id": {
            "type": "string",
            "title": "Invitation Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "invitation_id",
          "email",
          "status",
          "created_at",
          "expires_at"
        ],
        "title": "InvitationSchema"
      },
      "InviteUserRequest": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "role": {
            "type": "string",
            "title": "Role"
          }
        },
        "type": "object",
        "required": [
          "email",
          "role"
        ],
        "title": "InviteUserRequest"
      },
      "Invoice": {
        "properties": {
          "invoice_id": {
            "type": "string",
            "title": "Invoice Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "amount_due": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Due"
          },
          "amount_paid": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Paid"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "default": "usd"
          },
          "period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Start"
          },
          "period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period End"
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paid At"
          },
          "hosted_invoice_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hosted Invoice Url"
          },
          "invoice_pdf_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invoice Pdf Url"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "invoice_id",
          "status",
          "created_at"
        ],
        "title": "Invoice"
      },
      "LoginRequest": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "LoginRequest"
      },
      "MfaCodeRequest": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "MfaCodeRequest"
      },
      "MfaConfirmResponse": {
        "properties": {
          "backup_codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Backup Codes"
          }
        },
        "type": "object",
        "required": [
          "backup_codes"
        ],
        "title": "MfaConfirmResponse"
      },
      "MfaEnrollResponse": {
        "properties": {
          "secret": {
            "type": "string",
            "title": "Secret"
          },
          "qr_code_uri": {
            "type": "string",
            "title": "Qr Code Uri"
          }
        },
        "type": "object",
        "required": [
          "secret",
          "qr_code_uri"
        ],
        "title": "MfaEnrollResponse"
      },
      "MfaVerifyRequest": {
        "properties": {
          "mfa_challenge_token": {
            "type": "string",
            "title": "Mfa Challenge Token"
          },
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "mfa_challenge_token",
          "code"
        ],
        "title": "MfaVerifyRequest"
      },
      "MfaDisableRequest": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "challenge_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Challenge Token"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "MfaDisableRequest"
      },
      "MfaChallengeTokenResponse": {
        "properties": {
          "challenge_token": {
            "type": "string",
            "title": "Challenge Token"
          }
        },
        "type": "object",
        "required": [
          "challenge_token"
        ],
        "title": "MfaChallengeTokenResponse"
      },
      "EmailMfaEnrollConfirmRequest": {
        "properties": {
          "challenge_token": {
            "type": "string",
            "title": "Challenge Token"
          },
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "challenge_token",
          "code"
        ],
        "title": "EmailMfaEnrollConfirmRequest"
      },
      "ForgotPasswordRequest": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "ForgotPasswordRequest"
      },
      "ResetPasswordRequest": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token"
          },
          "new_password": {
            "type": "string",
            "minLength": 8,
            "title": "New Password"
          }
        },
        "type": "object",
        "required": [
          "token",
          "new_password"
        ],
        "title": "ResetPasswordRequest"
      },
      "ChangePasswordRequest": {
        "properties": {
          "current_password": {
            "type": "string",
            "title": "Current Password"
          },
          "new_password": {
            "type": "string",
            "minLength": 8,
            "title": "New Password"
          }
        },
        "type": "object",
        "required": [
          "current_password",
          "new_password"
        ],
        "title": "ChangePasswordRequest"
      },
      "Pillar": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name"
        ],
        "title": "Pillar"
      },
      "PillarBreakdownItem": {
        "properties": {
          "pillar": {
            "type": "string",
            "title": "Pillar"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "score": {
            "type": "number",
            "title": "Score"
          },
          "case_count": {
            "type": "integer",
            "title": "Case Count"
          },
          "pass_count": {
            "type": "integer",
            "title": "Pass Count"
          }
        },
        "type": "object",
        "required": [
          "pillar",
          "label",
          "score",
          "case_count",
          "pass_count"
        ],
        "title": "PillarBreakdownItem"
      },
      "PillarScore": {
        "properties": {
          "score_id": {
            "type": "string",
            "title": "Score Id"
          },
          "safety_pillar": {
            "type": "string",
            "title": "Safety Pillar"
          },
          "pillar_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pillar Score"
          },
          "case_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Count"
          },
          "pass_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pass Count"
          },
          "computed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Computed At"
          }
        },
        "type": "object",
        "required": [
          "score_id",
          "safety_pillar",
          "computed_at"
        ],
        "title": "PillarScore"
      },
      "Product": {
        "properties": {
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "company_id": {
            "type": "string",
            "title": "Company Id"
          },
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "product_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Type"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Url"
          },
          "endpoint_auth_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Type"
          },
          "endpoint_auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Header"
          },
          "endpoint_request_template": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Request Template"
          },
          "evaluation_type": {
            "type": "string",
            "title": "Evaluation Type"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "title": "Registered At"
          }
        },
        "type": "object",
        "required": [
          "product_id",
          "company_id",
          "product_name",
          "evaluation_type",
          "is_active",
          "registered_at"
        ],
        "title": "Product"
      },
      "ProductDetail": {
        "properties": {
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "company_id": {
            "type": "string",
            "title": "Company Id"
          },
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "product_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Type"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Url"
          },
          "endpoint_auth_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Type"
          },
          "endpoint_auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Header"
          },
          "endpoint_request_template": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Request Template"
          },
          "evaluation_type": {
            "type": "string",
            "title": "Evaluation Type"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "title": "Registered At"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/ToolInventoryItem"
            },
            "type": "array",
            "title": "Tools",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "product_id",
          "company_id",
          "product_name",
          "evaluation_type",
          "is_active",
          "registered_at"
        ],
        "title": "ProductDetail"
      },
      "ProductScoreTrend": {
        "properties": {
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/ScoreTrendPoint"
            },
            "type": "array",
            "title": "Points"
          }
        },
        "type": "object",
        "required": [
          "product_id",
          "product_name",
          "points"
        ],
        "title": "ProductScoreTrend"
      },
      "ProductSummary": {
        "properties": {
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "product_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Type"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "last_eval_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Eval At"
          }
        },
        "type": "object",
        "required": [
          "product_id",
          "product_name"
        ],
        "title": "ProductSummary"
      },
      "PromptCase": {
        "properties": {
          "case_id": {
            "type": "string",
            "title": "Case Id"
          },
          "epoch_id": {
            "type": "string",
            "title": "Epoch Id"
          },
          "suite_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suite Version"
          },
          "prompt_text": {
            "type": "string",
            "title": "Prompt Text"
          },
          "prompt_source": {
            "type": "string",
            "title": "Prompt Source"
          },
          "generator_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Generator Model"
          },
          "safety_pillar": {
            "type": "string",
            "title": "Safety Pillar"
          },
          "severity_level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Severity Level"
          },
          "rubric_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rubric Version"
          },
          "record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Hash"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "case_id",
          "epoch_id",
          "prompt_text",
          "prompt_source",
          "safety_pillar",
          "created_at"
        ],
        "title": "PromptCase"
      },
      "PromptCaseDetail": {
        "properties": {
          "case_id": {
            "type": "string",
            "title": "Case Id"
          },
          "epoch_id": {
            "type": "string",
            "title": "Epoch Id"
          },
          "suite_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suite Version"
          },
          "prompt_text": {
            "type": "string",
            "title": "Prompt Text"
          },
          "prompt_source": {
            "type": "string",
            "title": "Prompt Source"
          },
          "generator_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Generator Model"
          },
          "safety_pillar": {
            "type": "string",
            "title": "Safety Pillar"
          },
          "severity_level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Severity Level"
          },
          "rubric_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rubric Version"
          },
          "record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Hash"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "votes": {
            "items": {
              "$ref": "#/components/schemas/ValidatorVote"
            },
            "type": "array",
            "title": "Votes",
            "default": []
          },
          "consensus": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConsensusDecision"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "case_id",
          "epoch_id",
          "prompt_text",
          "prompt_source",
          "safety_pillar",
          "created_at"
        ],
        "title": "PromptCaseDetail"
      },
      "RecentEvaluation": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "product_id",
          "status"
        ],
        "title": "RecentEvaluation"
      },
      "RegisterRequest": {
        "properties": {
          "company_name": {
            "type": "string",
            "title": "Company Name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "first_name": {
            "type": "string",
            "title": "First Name"
          },
          "last_name": {
            "type": "string",
            "title": "Last Name"
          }
        },
        "type": "object",
        "required": [
          "company_name",
          "email",
          "password",
          "first_name",
          "last_name"
        ],
        "title": "RegisterRequest"
      },
      "ScoreListItem": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "product_id": {
            "type": "string",
            "title": "Product Id"
          },
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          },
          "evaluation_type": {
            "type": "string",
            "title": "Evaluation Type"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "composite_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Composite Score"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          },
          "certified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Certified"
          },
          "score_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score Type"
          },
          "computed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Computed At"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "product_id",
          "evaluation_type",
          "status"
        ],
        "title": "ScoreListItem"
      },
      "ScoreSummary": {
        "properties": {
          "eval_id": {
            "type": "string",
            "title": "Eval Id"
          },
          "pillar_scores": {
            "items": {
              "$ref": "#/components/schemas/PillarScore"
            },
            "type": "array",
            "title": "Pillar Scores"
          },
          "composite": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompositeScore"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "eval_id",
          "pillar_scores"
        ],
        "title": "ScoreSummary"
      },
      "ScoreTrendPoint": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "score": {
            "type": "number",
            "title": "Score"
          },
          "a_scale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Scale"
          }
        },
        "type": "object",
        "required": [
          "date",
          "score"
        ],
        "title": "ScoreTrendPoint"
      },
      "ScoringEpoch": {
        "properties": {
          "epoch_id": {
            "type": "string",
            "title": "Epoch Id"
          },
          "epoch_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Epoch Name"
          },
          "validator_model_versions": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validator Model Versions"
          },
          "prompt_suite_versions": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Suite Versions"
          },
          "judge_prompt_template_ver": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Judge Prompt Template Ver"
          },
          "scoring_rubric_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scoring Rubric Version"
          },
          "consensus_algorithm_ver": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consensus Algorithm Ver"
          },
          "downgrade_rule_set_ver": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Downgrade Rule Set Ver"
          },
          "pillar_weights": {
            "type": "object",
            "title": "Pillar Weights"
          },
          "a_scale_thresholds": {
            "type": "object",
            "title": "A Scale Thresholds"
          },
          "quorum_rules_snapshot": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Quorum Rules Snapshot"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "epoch_id",
          "pillar_weights",
          "a_scale_thresholds",
          "is_active",
          "created_at"
        ],
        "title": "ScoringEpoch"
      },
      "Subscription": {
        "properties": {
          "subscription_id": {
            "type": "string",
            "title": "Subscription Id"
          },
          "plan": {
            "type": "string",
            "title": "Plan"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "current_period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period Start"
          },
          "current_period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period End"
          },
          "cancel_at_period_end": {
            "type": "boolean",
            "title": "Cancel At Period End",
            "default": false
          },
          "trial_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial End"
          }
        },
        "type": "object",
        "required": [
          "subscription_id",
          "plan",
          "status"
        ],
        "title": "Subscription"
      },
      "TestConnectionResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "status_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Code"
          },
          "latency_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency Ms"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "success"
        ],
        "title": "TestConnectionResponse"
      },
      "ToolInventoryItem": {
        "properties": {
          "tool_id": {
            "type": "string",
            "title": "Tool Id"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "permission_scope": {
            "type": "string",
            "title": "Permission Scope"
          },
          "reversibility": {
            "type": "string",
            "title": "Reversibility"
          }
        },
        "type": "object",
        "required": [
          "tool_id",
          "permission_scope",
          "reversibility"
        ],
        "title": "ToolInventoryItem"
      },
      "UpdateProductRequest": {
        "properties": {
          "product_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Name"
          },
          "product_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Type"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Url"
          },
          "endpoint_auth_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Type"
          },
          "endpoint_auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Auth Header"
          },
          "endpoint_credential": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Credential"
          },
          "endpoint_request_template": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Request Template"
          }
        },
        "type": "object",
        "title": "UpdateProductRequest"
      },
      "UpdateProfileRequest": {
        "properties": {
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Name"
          }
        },
        "type": "object",
        "title": "UpdateProfileRequest"
      },
      "UpdateRoleRequest": {
        "properties": {
          "role": {
            "type": "string",
            "title": "Role"
          }
        },
        "type": "object",
        "required": [
          "role"
        ],
        "title": "UpdateRoleRequest"
      },
      "User": {
        "properties": {
          "user_id": {
            "type": "string",
            "title": "User Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Name"
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role"
          },
          "mfa_enabled": {
            "type": "boolean",
            "title": "Mfa Enabled"
          },
          "mfa_method": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mfa Method"
          },
          "email_verified": {
            "type": "boolean",
            "title": "Email Verified"
          },
          "last_login_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Login At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "email",
          "mfa_enabled",
          "email_verified",
          "created_at"
        ],
        "title": "User"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "Validator": {
        "properties": {
          "validator_id": {
            "type": "string",
            "title": "Validator Id"
          },
          "validator_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validator Name"
          },
          "validator_type": {
            "type": "string",
            "title": "Validator Type"
          },
          "model_family": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Family"
          },
          "model_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Version"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          }
        },
        "type": "object",
        "required": [
          "validator_id",
          "validator_type",
          "is_active"
        ],
        "title": "Validator"
      },
      "ValidatorVote": {
        "properties": {
          "vote_id": {
            "type": "string",
            "title": "Vote Id"
          },
          "run_id": {
            "type": "string",
            "title": "Run Id"
          },
          "case_id": {
            "type": "string",
            "title": "Case Id"
          },
          "verdict": {
            "type": "string",
            "title": "Verdict"
          },
          "verdict_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verdict Value"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "validator_weight": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validator Weight"
          },
          "rationale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rationale"
          },
          "evidence_flags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Flags"
          },
          "hard_fail": {
            "type": "boolean",
            "title": "Hard Fail",
            "default": false
          },
          "record_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Hash"
          }
        },
        "type": "object",
        "required": [
          "vote_id",
          "run_id",
          "case_id",
          "verdict"
        ],
        "title": "ValidatorVote"
      },
      "VerdictCount": {
        "properties": {
          "verdict": {
            "type": "string",
            "title": "Verdict"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "verdict",
          "count"
        ],
        "title": "VerdictCount"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Auth",
      "description": "Authentication, SSO, and 2FA"
    },
    {
      "name": "Companies",
      "description": "Company account management"
    },
    {
      "name": "Users",
      "description": "User and role management"
    },
    {
      "name": "API Keys",
      "description": "API key management"
    },
    {
      "name": "Billing",
      "description": "Stripe subscriptions and invoices"
    },
    {
      "name": "Products",
      "description": "AI product registration and tool inventory"
    },
    {
      "name": "Evaluations",
      "description": "Evaluation run lifecycle"
    },
    {
      "name": "Prompt Cases",
      "description": "Evaluation prompt cases"
    },
    {
      "name": "Validators",
      "description": "Validator registration"
    },
    {
      "name": "Consensus",
      "description": "Diversity-constrained quorum consensus"
    },
    {
      "name": "Scores",
      "description": "Pillar and composite scoring"
    },
    {
      "name": "Epochs",
      "description": "Scoring epoch configuration"
    },
    {
      "name": "Registry",
      "description": "Public certification registry"
    },
    {
      "name": "Audit",
      "description": "Tamper-evident hash-chain audit ledger"
    },
    {
      "name": "Dashboard",
      "description": "Summary metrics and analytics charts"
    },
    {
      "name": "Meta",
      "description": "Static reference data: safety pillars, grade labels, and other constants"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Identity & Access",
      "tags": [
        "Auth",
        "Companies",
        "Users",
        "API Keys"
      ]
    },
    {
      "name": "Billing",
      "tags": [
        "Billing"
      ]
    },
    {
      "name": "Products",
      "tags": [
        "Products"
      ]
    },
    {
      "name": "Evaluations",
      "tags": [
        "Evaluations",
        "Prompt Cases",
        "Validators",
        "Consensus",
        "Scores"
      ]
    },
    {
      "name": "Certification & Audit",
      "tags": [
        "Epochs",
        "Registry",
        "Audit"
      ]
    },
    {
      "name": "Dashboard",
      "tags": [
        "Dashboard"
      ]
    },
    {
      "name": "Reference",
      "tags": [
        "Meta"
      ]
    }
  ]
}