GET
/
organizations
/
{organization}
/
databases
/
{database}
/
deploy-requests
List deploy requests
curl --request GET \
  --url https://api.planetscale.com/v1/organizations/{organization}/databases/{database}/deploy-requests \
  --header 'Authorization: <api-key>'
{
  "current_page": 123,
  "next_page": 123,
  "next_page_url": "<string>",
  "prev_page": 123,
  "prev_page_url": "<string>",
  "data": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

organization
string
required

The name of the deploy request's organization

database
string
required

The name of the deploy request's database

Query Parameters

state
string

Filter by state of the deploy request (open, closed, deployed)

branch
string

Filter by the name of the branch the deploy request is created from

into_branch
string

Filter by the name of the branch the deploy request will be merged into

deployed_at
string

Filter deploy requests by the date they were deployed. (e.g. 2023-01-01T00:00:00Z..2023-01-31T23:59:59Z)

running_at
string

Filter deploy requests by the date they were running. (e.g. 2023-01-01T00:00:00Z..2023-01-31T23:59:59Z)

page
number
default:1

If provided, specifies the page offset of returned results

per_page
number
default:25

If provided, specifies the number of returned results

Response

Returns a list of deploy requests

current_page
number
required

The current page number

next_page
number
required

The next page number

next_page_url
string
required

The next page of results

prev_page
number
required

The previous page number

prev_page_url
string
required

The previous page of results

data
object[]
required