planetscale Bouncers API

Manage PgBouncer connection pooling instances for database branches, including creating, listing, resizing, and deleting bouncers.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /organizations/{organization}/databases/{database}/branches/{branch}/bouncers List connection poolers on a branch · List bouncers #
Ask an LLM
“Which PgBouncer connection poolers exist on my database branch?”
“Can I see all the connection pooling instances for a branch?”
Tell an agent
List the bouncers on branch {branch} of {organization}/{database}.
Show every connection pooler instance for {branch}.
POST /organizations/{organization}/databases/{database}/branches/{branch}/bouncers Create a connection pooler on a branch · Create a bouncer #
Ask an LLM
“How do I add a PgBouncer connection pooler to a database branch?”
“Can I set the pool size when creating a bouncer?”
Tell an agent
Create bouncer {name} on branch {branch} in {organization}/{database}.
Add a connection pooler named {name} to {branch} with pool size {pool_size}.
GET /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer_name} Get a connection pooler on a branch · Get a bouncer #
Ask an LLM
“What are the details of one PgBouncer instance on a branch?”
“Can I look up a single connection pooler by name?”
Tell an agent
Get bouncer {bouncer_name} on branch {branch} in {organization}/{database}.
Show connection pooler {bouncer_name} on {branch}.
DELETE /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer_name} Delete a connection pooler on a branch · Delete a bouncer #
Ask an LLM
“How do I remove a PgBouncer connection pooler from a branch?”
“Can I delete a connection pooler instance I no longer need?”
Tell an agent destructive · confirm first
Delete bouncer {bouncer_name} from branch {branch} in {organization}/{database}.
Remove connection pooler {bouncer_name} on {branch}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/planetscale:planetscale-bouncers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

planetscale-bouncers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PlanetScale Platform Bouncers API
  description: The PlanetScale Platform API provides programmatic access to manage PlanetScale serverless MySQL-compatible databases. It allows developers to create and manage databases, branches, deploy requests, passwords, backups, service tokens, organization members, teams, bouncers, and billing data. The API supports authentication via service tokens and OAuth, enabling integration into CI/CD pipelines and infrastructure-as-code workflows.
  version: 1.0.0
  contact:
    name: PlanetScale Support
    url: https://support.planetscale.com
  termsOfService: https://planetscale.com/legal/tos
  license:
    name: Proprietary
    url: https://planetscale.com/legal/tos
servers:
- url: https://api.planetscale.com/v1
  description: PlanetScale Production API
security:
- serviceToken: []
tags:
- name: Bouncers
  description: Manage PgBouncer connection pooling instances for database branches, including creating, listing, resizing, and deleting bouncers.
paths:
  /organizations/{organization}/databases/{database}/branches/{branch}/bouncers:
    get:
      operationId: listBouncers
      summary: List bouncers
      description: Returns a list of PgBouncer connection pooling instances for the specified branch.
      tags:
      - Bouncers
      parameters:
      - $ref: '#/components/parameters/OrganizationParam'
      - $ref: '#/components/parameters/DatabaseParam'
      - $ref: '#/components/parameters/BranchParam'
      responses:
        '200':
          description: Successful response with list of bouncers
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Bouncer'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    post:
      operationId: createBouncer
      summary: Create a bouncer
      description: Creates a new PgBouncer connection pooling instance for the specified branch.
      tags:
      - Bouncers
      parameters:
      - $ref: '#/components/parameters/OrganizationParam'
      - $ref: '#/components/parameters/DatabaseParam'
      - $ref: '#/components/parameters/BranchParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  description: The name of the bouncer instance.
                pool_size:
                  type: integer
                  description: The connection pool size.
      responses:
        '201':
          description: Bouncer created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Bouncer'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer_name}:
    get:
      operationId: getBouncer
      summary: Get a bouncer
      description: Returns details about a specific PgBouncer instance.
      tags:
      - Bouncers
      parameters:
      - $ref: '#/components/parameters/OrganizationParam'
      - $ref: '#/components/parameters/DatabaseParam'
      - $ref: '#/components/parameters/BranchParam'
      - $ref: '#/components/parameters/BouncerNameParam'
      responses:
        '200':
          description: Successful response with bouncer details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Bouncer'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteBouncer
      summary: Delete a bouncer
      description: Deletes a PgBouncer connection pooling instance.
      tags:
      - Bouncers
      parameters:
      - $ref: '#/components/parameters/OrganizationParam'
      - $ref: '#/components/parameters/DatabaseParam'
      - $ref: '#/components/parameters/BranchParam'
      - $ref: '#/components/parameters/BouncerNameParam'
      responses:
        '204':
          description: Bouncer deleted successfully
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    BouncerNameParam:
      name: bouncer_name
      in: path
      required: true
      description: The name of the PgBouncer instance.
      schema:
        type: string
    DatabaseParam:
      name: database
      in: path
      required: true
      description: The name of the database.
      schema:
        type: string
    OrganizationParam:
      name: organization
      in: path
      required: true
      description: The name of the organization.
      schema:
        type: string
    BranchParam:
      name: branch
      in: path
      required: true
      description: The name of the branch.
      schema:
        type: string
  responses:
    Unauthorized:
      description: Authentication failed. The service token or OAuth token is missing, invalid, or lacks the required permissions.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: The request was well-formed but contains invalid parameters or violates business rules.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Bouncer:
      type: object
      description: A PgBouncer connection pooling instance for a database branch.
      properties:
        id:
          type: string
          description: The unique identifier of the bouncer.
        name:
          type: string
          description: The name of the bouncer instance.
        state:
          type: string
          description: The current state of the bouncer.
          enum:
          - pending
          - ready
          - resizing
        pool_size:
          type: integer
          description: The connection pool size.
        created_at:
          type: string
          format: date-time
          description: The timestamp when the bouncer was created.
        updated_at:
          type: string
          format: date-time
          description: The timestamp when the bouncer was last updated.
    Error:
      type: object
      description: An error response from the PlanetScale API.
      properties:
        code:
          type: string
          description: A machine-readable error code.
        message:
          type: string
          description: A human-readable error message.
  securitySchemes:
    serviceToken:
      type: apiKey
      in: header
      name: Authorization
      description: Service token authentication. Use the format 'ServiceToken {token_id}:{token_value}' in the Authorization header.
    bearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 bearer token authentication. Obtain tokens via the PlanetScale OAuth authorization code flow.
externalDocs:
  description: PlanetScale API Documentation
  url: https://planetscale.com/docs/api/reference/getting-started-with-planetscale-api