Appearance
PlanetScale
Manage MySQL-compatible databases, branches, and deploy requests with PlanetScale.
| Detail | Value |
|---|---|
| Category | Database |
| Base URL | https://api.planetscale.com/v1 |
| Authentication | Bearer Token |
| Endpoints | 8 |
| Connector key | planetscale |
Using PlanetScale in a workflow
- Go to Connections and click New Connection.
- Pick PlanetScale from the marketplace.
- Enter your credentials (see Authentication above for what's expected).
- In a workflow, drop an API Call node and select this connection.
- Pick the operation you need from the Operation dropdown — the full list is below.
Available endpoints
| Endpoint | Summary |
|---|---|
GET /organizations/{organization}/databases | List databases |
POST /organizations/{organization}/databases | Create a database |
GET /organizations/{organization}/databases/{database} | Get database details |
GET /organizations/{organization}/databases/{database}/branches | List branches |
POST /organizations/{organization}/databases/{database}/branches | Create a branch |
GET /organizations/{organization}/databases/{database}/deploy-requests | List deploy requests |
POST /organizations/{organization}/databases/{database}/deploy-requests | Create deploy request |
GET /organizations/{organization}/databases/{database}/branches/{branch}/schema | Get 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
| Detail | Value |
|---|---|
| Operation ID | database.listDatabases |
| Method | GET |
| Path | /organizations/{organization}/databases |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.listDatabases. - 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
| Detail | Value |
|---|---|
| Operation ID | database.createDatabase |
| Method | POST |
| Path | /organizations/{organization}/databases |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.createDatabase. - 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
| Detail | Value |
|---|---|
| Operation ID | database.getDatabase |
| Method | GET |
| Path | /organizations/{organization}/databases/{database} |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.getDatabase. - 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
| Detail | Value |
|---|---|
| Operation ID | database.listBranches |
| Method | GET |
| Path | /organizations/{organization}/databases/{database}/branches |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.listBranches. - 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
| Detail | Value |
|---|---|
| Operation ID | database.createBranch |
| Method | POST |
| Path | /organizations/{organization}/databases/{database}/branches |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.createBranch. - 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
| Detail | Value |
|---|---|
| Operation ID | database.listDeployRequests |
| Method | GET |
| Path | /organizations/{organization}/databases/{database}/deploy-requests |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.listDeployRequests. - 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
| Detail | Value |
|---|---|
| Operation ID | database.createDeployRequest |
| Method | POST |
| Path | /organizations/{organization}/databases/{database}/deploy-requests |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.createDeployRequest. - 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
| Detail | Value |
|---|---|
| Operation ID | database.getBranchSchema |
| Method | GET |
| Path | /organizations/{organization}/databases/{database}/branches/{branch}/schema |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your PlanetScale connection from the Connection dropdown.
- In the Operation dropdown, select
database.getBranchSchema. - 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.