Get Deployment
curl --request GET \
--url https://sdk.localops.co/v1/deployments/{deploymentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sdk.localops.co/v1/deployments/{deploymentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sdk.localops.co/v1/deployments/{deploymentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdk.localops.co/v1/deployments/{deploymentId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "success",
"data": {
"deployment": {
"id": "3c7a4d81-0000-0000-0000-000000000000",
"type": "service_update",
"state": "in_progress",
"service_id": "b1f0a9c2-0000-0000-0000-000000000000",
"private_instance_id": "9a3b2c10-0000-0000-0000-000000000000",
"cloud_connection_id": "4d5e6f70-0000-0000-0000-000000000000",
"prev_deployment_id": "00000000-0000-0000-0000-000000000000",
"prov_deployment_id": "dep-91ac",
"account_id": "6c1d0f7a-0000-0000-0000-000000000000",
"op_ids": [],
"ops": {},
"git_commit_ref": "9f2c1ab",
"git_commit_author": "octocat",
"git_commit_message": "fix checkout total",
"docker_image_tag": "",
"helm_chart_version": "",
"helm_values_yml": "",
"note": "release 1.4.0",
"created_by_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-08-10T09:20:11Z"
}
}
}Deployments
Get Deployment
Poll a deployment. Scoped to your account, so no environment is needed in the path.
success and failed are terminal states. created_by_id is the zero UUID for API triggered deployments, and op_ids and ops are always empty on this endpoint.
GET
/
v1
/
deployments
/
{deploymentId}
Get Deployment
curl --request GET \
--url https://sdk.localops.co/v1/deployments/{deploymentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sdk.localops.co/v1/deployments/{deploymentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sdk.localops.co/v1/deployments/{deploymentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdk.localops.co/v1/deployments/{deploymentId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "success",
"data": {
"deployment": {
"id": "3c7a4d81-0000-0000-0000-000000000000",
"type": "service_update",
"state": "in_progress",
"service_id": "b1f0a9c2-0000-0000-0000-000000000000",
"private_instance_id": "9a3b2c10-0000-0000-0000-000000000000",
"cloud_connection_id": "4d5e6f70-0000-0000-0000-000000000000",
"prev_deployment_id": "00000000-0000-0000-0000-000000000000",
"prov_deployment_id": "dep-91ac",
"account_id": "6c1d0f7a-0000-0000-0000-000000000000",
"op_ids": [],
"ops": {},
"git_commit_ref": "9f2c1ab",
"git_commit_author": "octocat",
"git_commit_message": "fix checkout total",
"docker_image_tag": "",
"helm_chart_version": "",
"helm_values_yml": "",
"note": "release 1.4.0",
"created_by_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-08-10T09:20:11Z"
}
}
}Authorizations
Your account API token, sent as Authorization: Bearer <api_token>. Owners and admins can read the token from the LocalOps console.
Path Parameters
The unique identifier of the deployment
Was this page helpful?
⌘I