Skip to content
For LLMsView as Markdown·

PlanetScale

Manage MySQL-compatible databases, branches, and deploy requests with PlanetScale.

DetailValue
CategoryDatabase
Base URLhttps://api.planetscale.com/v1
AuthenticationBearer Token
Endpoints8
Connector keyplanetscale

Using PlanetScale in a workflow

  1. Go to Connections and click New Connection.
  2. Pick PlanetScale from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /organizations/{organization}/databasesList databases
POST /organizations/{organization}/databasesCreate a database
GET /organizations/{organization}/databases/{database}Get database details
GET /organizations/{organization}/databases/{database}/branchesList branches
POST /organizations/{organization}/databases/{database}/branchesCreate a branch
GET /organizations/{organization}/databases/{database}/deploy-requestsList deploy requests
POST /organizations/{organization}/databases/{database}/deploy-requestsCreate deploy request
GET /organizations/{organization}/databases/{database}/branches/{branch}/schemaGet branch schema

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /organizations/{organization}/databases

List databases

DetailValue
Operation IDdatabase.listDatabases
MethodGET
Path/organizations/{organization}/databases

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.listDatabases.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

POST /organizations/{organization}/databases

Create a database

DetailValue
Operation IDdatabase.createDatabase
MethodPOST
Path/organizations/{organization}/databases

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.createDatabase.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

GET /organizations/{organization}/databases/{database}

Get database details

DetailValue
Operation IDdatabase.getDatabase
MethodGET
Path/organizations/{organization}/databases/{database}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.getDatabase.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

GET /organizations/{organization}/databases/{database}/branches

List branches

DetailValue
Operation IDdatabase.listBranches
MethodGET
Path/organizations/{organization}/databases/{database}/branches

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.listBranches.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

POST /organizations/{organization}/databases/{database}/branches

Create a branch

DetailValue
Operation IDdatabase.createBranch
MethodPOST
Path/organizations/{organization}/databases/{database}/branches

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.createBranch.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

GET /organizations/{organization}/databases/{database}/deploy-requests

List deploy requests

DetailValue
Operation IDdatabase.listDeployRequests
MethodGET
Path/organizations/{organization}/databases/{database}/deploy-requests

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.listDeployRequests.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

POST /organizations/{organization}/databases/{database}/deploy-requests

Create deploy request

DetailValue
Operation IDdatabase.createDeployRequest
MethodPOST
Path/organizations/{organization}/databases/{database}/deploy-requests

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.createDeployRequest.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.

GET /organizations/{organization}/databases/{database}/branches/{branch}/schema

Get branch schema

DetailValue
Operation IDdatabase.getBranchSchema
MethodGET
Path/organizations/{organization}/databases/{database}/branches/{branch}/schema

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your PlanetScale connection from the Connection dropdown.
  3. In the Operation dropdown, select database.getBranchSchema.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PlanetScale API reference.