Runs API

This is the API used to interact with runs.

Authentication

To authenticate into the RWX API, create an organization access token or a personal access token and pass it in the authorization header as a bearer token.

Authorization: Bearer <token>

Content Type

The API only accepts and responds with JSON.

Content-Type: application/json

List Runs

GET https://cloud.rwx.com/mint/api/runs

You can filter runs using the following query string parameters:

Request Parameters

parameterrequireddescription
commit_shaThe commit sha (e.g 5164462e6e74bc61520f8ce2528dc78d0d995b33)
branchThe branch (e.g main)
definition_pathThe definition path for the run. (e.g .rwx/ci.yml)

Response Codes

CodeMeaning
200Return runs matching criteria
401Invalid access token

Example

Request

curl -H "Authorization: Bearer $RWX_ACCESS_TOKEN" \
  "https://cloud.rwx.com/mint/api/runs?commit_sha=5164462e6e74bc61520f8ce2528dc78d0d995b33&branch=main"

Response

{
  "runs": [
    {
      "id": "1c07996b752b4c8db550c59f2ea35598",
      "definition_path": ".rwx/ci.yml",
      "commit_sha": "5164462e6e74bc61520f8ce2528dc78d0d995b33",
      "branch": "main",
      "repository_name": "your-repo",
      "result_status": "succeeded",
      "execution_status": "finished",
      "execution_aborted_sub_status": "not_applicable",
      "execution_waiting_sub_status": "not_applicable",
      "title": "Some run of .rwx/ci.yml",
      "trigger": "github.push"
    }
  ]
}

Attributes

attributevalue
result_statussucceeded, debugged, failed or no_result
execution_statuswaiting, in_progress, finished, or aborted
execution_aborted_sub_statuscancelled, timed_out, internal_failure, initialization_error, or not_applicable
execution_waiting_sub_statuswaiting_for_manual_start, waiting_for_lease, or not_applicable