/projects/{project_id}/advisorsGet advisor issuesAnalyzes the database for security and performance issues. Returns a list of issues categorized by severity (ERROR, WARN, INFO).
Requires read access to the project and Data API enabled.
Parameters
project_idstringpathrequiredNeon project ID
branch_idstringqueryBranch ID to analyze. If not specified, the project's default branch is used.
database_namestringqueryDatabase name to analyze. Required if branch has multiple databases.
categorystringqueryFilter issues by category
min_severitystringqueryMinimum severity level to include. For example, WARN returns WARN and ERROR issues, excluding INFO.
Responses
issuesarray of objectrequiredShow child attributes
Show array items
cache_keystringrequiredUnique key for caching this issue result
categoriesarray of stringrequiredCategories this issue belongs to
Show child attributes
descriptionstringrequiredDetailed description of what this check detects
detailstringrequiredSpecific details about this instance of the issue
facingstringrequiredWhether this issue affects external API exposure or is internal only
levelstringrequiredSeverity level of the issue
metadataobjectrequiredAdditional context-specific metadata
namestringrequiredUnique identifier for the issue type
remediationstringrequiredURL to documentation on how to fix this issue
titlestringrequiredHuman-readable title
{
"issues": [
{
"cache_key": "string",
"categories": [
"SECURITY"
],
"description": "string",
"detail": "Table `public.users` is public, but RLS has not been enabled.",
"facing": "EXTERNAL",
"level": "ERROR",
"metadata": {
"additionalProp1": null
},
"name": "rls_disabled_in_public",
"remediation": "https://neon.com/docs/data-api/database-advisor",
"title": "RLS Disabled in Public"
}
]
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}