Workflows

List workflow runs

Returns durable runs associated with one workflow.

get/api/v1/workflows/{name}/runs

Path parameters

namestring required

Workflow slug or name.

Query parameters

page[limit]integer

Maximum number of items to return per page.

page[offset]integer

Number of items to skip before returning results.

Response

Paginated durable runs for the workflow

Example response

{
  "data": [
    {
      "repository": {
        "name": "fabro-sh/fabro",
        "origin_url": "https://github.com/fabro-sh/fabro.git"
      },
      "lifecycle": {
        "error": {
          "message": "Stage 'apply-changes' exceeded maximum retries."
        }
      },
      "timing": {
        "wall_time_ms": 420000,
        "inference_time_ms": 120000,
        "tool_time_ms": 60000,
        "active_time_ms": 180000
      },
      "diff": {
        "files_changed": 42,
        "additions": 567,
        "deletions": 234
      },
      "pull_request": {
        "owner": "fabro-sh",
        "repo": "fabro",
        "number": 123,
        "html_url": "https://github.com/fabro-sh/fabro/pull/123"
      },
      "current_question": {
        "text": "Accept or push for another round?"
      }
    }
  ]
}

Changes

Changed in 14 of the 134 revisions of this API.10422

  • ef906071a8e412See the full diff
    • added the new publish_failed enum value to the data/items/lifecycle/status/oneOf[RunStatusFailed]/reason response property for the response status 200

      response-property-enum-value-added

    • the response property data/items/timing/oneOf[RunTiming]/inference_time_ms became required for the status 200

      response-property-became-required

    • the response property data/items/timing/oneOf[RunTiming]/tool_time_ms became required for the status 200

      response-property-became-required

  • 7fe7b675579921See the full diff
    • the response property data/items/timing/oneOf[RunTiming]/inference_time_ms became optional for the status 200

      response-property-became-optional

    • the response property data/items/timing/oneOf[RunTiming]/tool_time_ms became optional for the status 200

      response-property-became-optional

    • removed the publish_failed enum value from the data/items/lifecycle/status/oneOf[RunStatusFailed]/reason response property for the response status 200

      response-property-enum-value-removed

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 4f9aedeb721112See the full diff
    • added the new publish_failed enum value to the data/items/lifecycle/status/oneOf[RunStatusFailed]/reason response property for the response status 200

      response-property-enum-value-added

    • the response property data/items/timing/oneOf[RunTiming]/inference_time_ms became required for the status 200

      response-property-became-required

    • the response property data/items/timing/oneOf[RunTiming]/tool_time_ms became required for the status 200

      response-property-became-required

    • the response property data/items/timing/oneOf[RunTiming]/inference_time_ms became optional for the status 200

      response-property-became-optional

    • the response property data/items/timing/oneOf[RunTiming]/tool_time_ms became optional for the status 200

      response-property-became-optional

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response property data/items/timing/oneOf[RunTiming]/inference_time_ms became required for the status 200

      response-property-became-required

    • the response property data/items/timing/oneOf[RunTiming]/tool_time_ms became required for the status 200

      response-property-became-required

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the publish_failed enum value from the data/items/lifecycle/status/oneOf[RunStatusFailed]/reason response property for the response status 200

      response-property-enum-value-removed

    • added the new publish_failed enum value to the data/items/lifecycle/status/oneOf[RunStatusFailed]/reason response property for the response status 200

      response-property-enum-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • de85d055604012See the full diff
    • added PrincipalUser PrincipalWorker PrincipalWebhook PrincipalSlack PrincipalAgent PrincipalSystem to the data/items/created_by response property oneOf list for the response status 200

      response-property-one-of-added

    • added discriminator to data/items/created_by response property for the response status 200

      response-property-discriminator-added

    • removed Principal subschema #2 from the data/items/created_by response property oneOf list for the response status 200

      response-property-one-of-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 1fa851815cf244See the full diff
    • removed the required property data/items/sandbox/oneOf[RunSandbox]/image from the response with the 200 status

      response-required-property-removed

    • removed the required property data/items/sandbox/oneOf[RunSandbox]/provider from the response with the 200 status

      response-required-property-removed

    • removed the required property data/items/sandbox/oneOf[RunSandbox]/runtime from the response with the 200 status

      response-required-property-removed

    • removed the required property data/items/sandbox/oneOf[RunSandbox]/snapshot from the response with the 200 status

      response-required-property-removed

    • added the optional property data/items/sandbox/oneOf[RunSandbox]/failure to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/sandbox/oneOf[RunSandbox]/instance to the response with the 200 status

      response-optional-property-added

    • added the required property data/items/sandbox/oneOf[RunSandbox]/kind to the response with the 200 status

      response-required-property-added

    • added the required property data/items/sandbox/oneOf[RunSandbox]/plan to the response with the 200 status

      response-required-property-added

    • added the optional property data/items/automation/oneOf[AutomationRef]/trigger_id to the response with the 200 status

      response-optional-property-added