Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Get time-series metrics
PLANETSCALE_GET_BRANCH_METRICSRetrieve time-series metrics for a database branch. ```sh curl --get \ --header "Authorization: $PLANETSCALE_SERVICE_TOKEN" \ --data-urlencode "metrics=queries" \ --data-urlencode "period=15m" \ "https://api.planetscale.com/v1/organizations/acme/databases/app-db/branches/main/metrics" ``` Each series contains its metric name, display label, identifying labels, and sampled `[Unix timestamp, value]` points: ```json { "type": "MetricSeries", "start_date": "2026-09-09T17:00:00Z", "end_date": "2026-09-09T17:15:00Z", "interval": 60, "series": [ { "type": "TimeSeries", "metric": "queries", "label": "Queries", "labels": { "tablet_type": "primary" }, "points": [[1788973200, 42.0]] } ] } ```.
Retrieve a branch query
PLANETSCALE_GET_BRANCH_QUERYRetrieve a branch query.
List queries for an error fingerprint
PLANETSCALE_GET_BRANCH_QUERY_ERRORList queries for an error fingerprint.
Get time-series metrics for SQL queries
PLANETSCALE_GET_BRANCH_QUERY_METRICSGet time-series metrics for SQL queries.
Retrieve a query tag
PLANETSCALE_GET_BRANCH_QUERY_TAGRetrieve a query tag.
Get a branch resize request
PLANETSCALE_GET_BRANCH_RESIZE_REQUESTGet a branch resize request.
Get a branch schema
PLANETSCALE_GET_BRANCH_SCHEMAGet a branch schema. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Get table storage metrics
PLANETSCALE_GET_BRANCH_TABLE_METRICSRequest table storage metrics for a branch. The tool returns an operation success indicator rather than the metrics themselves.
Get time-series metrics grouped by query tags
PLANETSCALE_GET_BRANCH_TAG_METRICSGet time-series metrics grouped by query tags.
Get current user
PLANETSCALE_GET_CURRENT_USERGet the user associated with the current OAuth access token.
Get a database
PLANETSCALE_GET_DATABASEGet a database.
Get an IP restriction entry
PLANETSCALE_GET_DATABASE_POSTGRES_CIDRGet an IP restriction entry. PostgreSQL databases only.
Get database throttler configurations
PLANETSCALE_GET_DATABASE_THROTTLERGet database throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Get the data topology for a Neki branch
PLANETSCALE_GET_DATA_TOPOLOGYGet the data topology for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Get the default postgres role
PLANETSCALE_GET_DEFAULT_ROLEGet the default postgres role. PostgreSQL databases only.
Get the default shard configuration profile for a Neki branch
PLANETSCALE_GET_DEFAULT_SHARD_CONFIGURATION_PROFILEGet the default shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Get a deployment
PLANETSCALE_GET_DEPLOYMENTGet the deployment for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Get the deploy queue
PLANETSCALE_GET_DEPLOY_QUEUEThe deploy queue returns the current list of deploy requests in the order they will be deployed. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Get a deploy request
PLANETSCALE_GET_DEPLOY_REQUESTGet a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Get deploy request throttler configurations
PLANETSCALE_GET_DEPLOY_REQUEST_THROTTLERGet deploy request throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.