Where a commit is deployed
GET
/api/orgs/{org}/projects/{project}/deployed
const url = 'https://api-dev.wrktr.com/api/orgs/example/projects/example/deployed?commit=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-dev.wrktr.com/api/orgs/example/projects/example/deployed?commit=example' \ --header 'Authorization: Bearer <token>'For each environment the default branch declares, in order: whether what’s live there includes the commit.
Authorizations
Section titled “Authorizations”- bearer
- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
project
required
string
Query Parameters
Section titled “Query Parameters”commit
required
string
Responses
Section titled “Responses”Success
Media typeapplication/json
Array<object>
object
environment
required
string
live
required
Any of:
object
id
required
string
environment
required
string
commit
required
string
title
required
string
trigger
required
string
state
required
string
steps
required
Array<object>
object
name
required
string
run
required
string
state
required
string
tail
required
string
hasLog
required
boolean
verify
workers
Any of:
null
null
Example
[ { "live": { "number": "Infinity", "trigger": "land", "createdAt": "Infinity", "startedAt": "Infinity", "finishedAt": "Infinity", "state": "queued", "steps": [ { "state": "pending", "startedAt": "Infinity", "finishedAt": "Infinity", "exitCode": "Infinity" } ], "verify": { "state": "checking", "checkedAt": "Infinity" } } }]Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}ProjectNotFound
Media typeapplication/json
object
_tag
required
string
project
required
string
Example
{ "_tag": "ProjectNotFound"}