Skip to main content
GET
/
v2
/
deployments
/
{deployment_id}
/
revisions
List Revisions
curl --request GET \
  --url https://api.example.com/v2/deployments/{deployment_id}/revisions
import requests

url = "https://api.example.com/v2/deployments/{deployment_id}/revisions"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.example.com/v2/deployments/{deployment_id}/revisions', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.example.com/v2/deployments/{deployment_id}/revisions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/v2/deployments/{deployment_id}/revisions"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.example.com/v2/deployments/{deployment_id}/revisions")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v2/deployments/{deployment_id}/revisions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "resources": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "source_revision_config": {
        "repo_ref": "<string>",
        "langgraph_config_path": "<string>",
        "image_uri": "<string>",
        "source_tarball_path": "<string>",
        "repo_commit_sha": "<string>"
      }
    }
  ],
  "offset": 123
}
{
  "detail": "Deployment ID {deployment_id} not found."
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Path Parameters

deployment_id
string<uuid>
required

Query Parameters

limit
integer
default:20

Maximum number of resources to return.

Required range: 1 <= x <= 100
offset
integer
default:0

Pagination offset. Pass this value to subsequent requests to fetch the next page of resources.

Required range: x >= 0
status
string | null

Comma separated list of revision status (CREATING, QUEUED, AWAITING_BUILD, BUILDING, AWAITING_DEPLOY, DEPLOYING, CREATE_FAILED, BUILD_FAILED, DEPLOY_FAILED, DEPLOYED, SKIPPED, INTERRUPTED, UNKNOWN) fields to filter by.

remote_reconciled
boolean | null

Flag to filter by remote reconciled revisions.

Response

Successful Response

resources
Revision · object[]
required
offset
integer
required

Pagination offset. Pass this value to subsequent requests to fetch the next page.