openapi: 3.0.0 info: title: advisors API description: Advisors related endpoints version: 1.0.0 paths: /advisors/performance: get: deprecated: true description: This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable. operationId: v1-get-performance-advisors parameters: [] responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/V1ProjectAdvisorsResponse' '401': description: Unauthorized '403': description: Forbidden action '429': description: Rate limit exceeded security: - bearer: [] summary: Gets project performance advisors. tags: - Advisors x-badges: - name: 'OAuth scope: database:read' position: after x-endpoint-owners: - control-plane x-fga-permissions: - - advisors_read x-oauth-scope: database:read /advisors/security: get: deprecated: true description: This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable. operationId: v1-get-security-advisors parameters: - name: lint_type required: false in: query schema: example: sql type: string enum: - sql responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/V1ProjectAdvisorsResponse' '401': description: Unauthorized '403': description: Forbidden action '429': description: Rate limit exceeded security: - bearer: [] summary: Gets project security advisors. tags: - Advisors x-badges: - name: 'OAuth scope: database:read' position: after x-endpoint-owners: - control-plane x-fga-permissions: - - advisors_read x-oauth-scope: database:read components: schemas: V1ProjectAdvisorsResponse: type: object properties: lints: type: array items: type: object properties: name: enum: - unindexed_foreign_keys - auth_users_exposed - auth_rls_initplan - no_primary_key - unused_index - multiple_permissive_policies - policy_exists_rls_disabled - rls_enabled_no_policy - duplicate_index - security_definer_view - function_search_path_mutable - rls_disabled_in_public - extension_in_public - rls_references_user_metadata - materialized_view_in_api - foreign_table_in_api - unsupported_reg_types - auth_otp_long_expiry - auth_otp_short_length - ssl_not_enforced - log_connections_not_enabled - network_restrictions_not_set - password_requirements_min_length - pitr_not_enabled - auth_leaked_password_protection - auth_insufficient_mfa_options - auth_password_policy_missing - leaked_service_key - no_backup_admin - vulnerable_postgres_version - db_not_reachable - db_connection_failing - db_connection_limit_reached - instance_telemetry_lost - instance_db_down - instance_alert_firing - log_service_error_rate_high - project_not_active - advisor_check_unavailable type: string title: type: string level: type: string enum: - ERROR - WARN - INFO facing: type: string enum: - EXTERNAL categories: type: array items: type: string enum: - PERFORMANCE - SECURITY - HEALTH x-ignore-array-items-must-be-objects: true description: type: string detail: type: string remediation: type: string metadata: type: object properties: schema: type: string name: type: string entity: type: string type: enum: - table - view - materialized view - foreign table - auth - function - extension - compliance - health type: string fkey_name: type: string fkey_columns: x-ignore-array-items-must-be-objects: true type: array items: type: number cache_key: type: string observed_at: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ required: - name - title - level - facing - categories - description - detail - remediation - cache_key additionalProperties: {} required: - lints servers: - url: https://api.supabase.com/v1/projects/{ref} variables: ref: description: Supabase project reference (the Project ID shown in the dashboard under Settings -> General; 20 lowercase letters). Resolved from the SUPABASE_PROJECT_ID environment variable when it is set (x-stackQL-envVar); otherwise it must be supplied on every project-scoped query as WHERE ref = ''. A WHERE value always takes precedence over the environment. x-stackQL-envVar: SUPABASE_PROJECT_ID