Workflow Last Run

The workflow last run resource.

Basehttps://rest.carbon.ms/workflowLastRun
GET/workflowLastRun

List workflow last runs

Retrieve a paginated list of workflow last runs. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GEThttps://rest.carbon.ms/workflowLastRun
curl --request GET \
  --url 'https://rest.carbon.ms/workflowLastRun?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "companyId": "xyz789",
    "runId": "xyz789",
    "workflowId": "xyz789",
    "status": "string",
    "statusReason": "string",
    "createdAt": "2026-01-01T00:00:00Z",
    "startedAt": "2026-01-01T00:00:00Z",
    "completedAt": "2026-01-01T00:00:00Z"
  }
]
GET/workflowLastRun

Retrieve a workflow last run

Fetch a single workflow last run by filtering on `companyId`.

Query parameters

companyIdstring

Match on the workflow last run's `companyId`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/workflowLastRun
curl --request GET \
  --url 'https://rest.carbon.ms/workflowLastRun?companyId=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "companyId": "xyz789",
  "runId": "xyz789",
  "workflowId": "xyz789",
  "status": "string",
  "statusReason": "string",
  "createdAt": "2026-01-01T00:00:00Z",
  "startedAt": "2026-01-01T00:00:00Z",
  "completedAt": "2026-01-01T00:00:00Z"
}