$50 Metal Postgres databases are here. Learn more
Navigation

Schema recommendation API endpoints

We've added new API endpoints for managing schema recommendations. You can now list, view, and dismiss schema recommendations for your databases through the API.

These endpoints work with both Vitess and Postgres databases. To use them with a service token, grant your token read_database permission. Grant write_database to dismiss recommendations.

You can also use the pscale CLI to access these endpoints:

pscale api organizations/{org-name}/databases/{database-name}/schema-recommendations | jq