Developer Tools · Databases & Storage

PlanetScale

Manage PlanetScale organizations, databases, branches, deploy requests, backups, workflows, insights, and infrastructure through delegated OAuth access.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get time-series metrics

    Retrieve 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

    Retrieve a branch query.

  • List queries for an error fingerprint

    List queries for an error fingerprint.

  • Get time-series metrics for SQL queries

    Get time-series metrics for SQL queries.

  • Retrieve a query tag

    Retrieve a query tag.

  • Get a branch resize request

    Get a branch resize request.

  • Get a branch schema

    Get a branch schema. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.

  • Get table storage metrics

    Request 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

    Get time-series metrics grouped by query tags.

  • Get current user

    Get the user associated with the current OAuth access token.

  • Get a database

    Get a database.

  • Get an IP restriction entry

    Get an IP restriction entry. PostgreSQL databases only.

  • Get database throttler configurations

    Get database throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.

  • Get the data topology for a Neki branch

    Get the data topology for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.

  • Get the default postgres role

    Get the default postgres role. PostgreSQL databases only.

  • Get the default shard configuration profile for a Neki branch

    Get the default shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.

  • Get a deployment

    Get the deployment for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.

  • Get the deploy queue

    The 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

    Get a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.

  • Get deploy request throttler configurations

    Get deploy request throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.

PreviousPage 5 / 13Next