Skip to content
Vroni

DocsAPI and webhooks

Runs API

Track a run from your own tools, read its events, and list past runs with their duration and credits.

A run is a single attempt by Vroni to complete a task. When you create a task and Vroni queues it, the response includes the run’s ID along with links.status and links.events. Use those endpoints to follow the run until it finishes and read the result, including the pull request link and the credits it used. Every endpoint on this page requires the Read runs permission.

If creating a task returns 202 because it’s waiting for approval, there’s no run yet. Poll the task with the Tasks API until latest_run appears. If you’d rather get notified when a run ends instead of polling, use webhooks.

Poll a run’s status

GET /api/v1/runs/{run_id}/status

Call this endpoint to check whether a run has finished. Because runs take a while, polling about once a minute is plenty. Keep polling until terminal is true.

curl https://app.vroni.com/api/v1/runs/01J00000000000000000000010/status \
  -H "Authorization: Bearer $VRONI_API_TOKEN" \
  -H "Accept: application/json"
{
  "data": {
    "id": "01J00000000000000000000010",
    "task_id": "01J00000000000000000000020",
    "repository": {
      "id": "01J00000000000000000000030",
      "canonical_url": "https://app.vroni.com/projects/30"
    },
    "status": "completed",
    "status_label": "Completed",
    "terminal": true,
    "created_at": "2026-11-25T09:58:00+00:00",
    "started_at": "2026-11-25T10:00:00+00:00",
    "completed_at": "2026-11-25T12:41:00+00:00",
    "duration_seconds": 9660,
    "pull_request": {
      "number": 41,
      "url": "https://github.com/acme/shop-backend/pull/41"
    },
    "publication": {
      "state": "delivered",
      "publication_state": "delivered",
      "held_for_review": false,
      "proposal": null,
      "next_action": null
    },
    "publication_state": "delivered",
    "held_for_review": false,
    "next_action": {
      "code": "open_pull_request",
      "label": "Open the pull request",
      "url": "https://github.com/acme/shop-backend/pull/41"
    },
    "canonical_url": "https://app.vroni.com/runs/10",
    "links": {
      "run": "https://app.vroni.com/runs/10",
      "status": "https://app.vroni.com/api/v1/runs/01J00000000000000000000010/status",
      "events": "https://app.vroni.com/api/v1/runs/01J00000000000000000000010/events"
    }
  }
}

Run statuses

Status Terminal What it means
queued no Waiting for a machine. Automatic restarts after a problem on Vroni’s side also show up as queued.
running no Vroni is working on the task.
cancellation_requested no Someone cancelled the run and it is stopping.
completed yes The run finished.
failed yes The run couldn’t finish.
timed_out yes The run hit its time limit.
cancelled yes The run was cancelled.

terminal: true means the run itself is over, though its pull request may still be pending. If your team uses pull request approval, a completed run returns "held_for_review": true, "publication_state": "awaiting_review", and "pull_request": { "number": null, "url": null } until an approver creates the pull request. See Approvals and pull request proposals for details.

next_action tells you what a person should do next, or returns null if nothing is needed. Its code is one of open_pull_request, review_task, review_repository, review_repository_setup, retry_later, or contact_support.

Read a run’s events

GET /api/v1/runs/{run_id}/events

Events make up the run’s timeline, covering status changes, progress steps, errors, and cancellations. Each item in data includes the event itself and the IDs it belongs to:

{
  "event": {
    "id": "01J00000000000000000000112",
    "type": "progress",
    "timestamp": "2026-11-25T10:05:00+00:00",
    "label": "Progress update",
    "detail": "Planning the change"
  },
  "run": {
    "id": "01J00000000000000000000010",
    "publication_state": "delivered",
    "held_for_review": false
  },
  "task": { "id": "01J00000000000000000000020" },
  "repository": { "id": "01J00000000000000000000030" }
}

The event type can be status, progress, error, cancellation_requested, or cancellation_completed. Status events also include status and status_label, and detail can be null.

This endpoint uses cursor pagination instead of page numbers. Request up to limit events per call (1 to 100, default 50). The response ends with:

"meta": {
  "pagination": { "type": "cursor", "limit": 50, "has_more": false, "next_cursor": "eyJpdiI6..." }
}

Pass next_cursor as the cursor query parameter in your next request. While has_more is true, you will get the next batch of existing events. Once you reach the end, reusing the same cursor returns only new events that arrived since your last call. Each cursor stays valid for 24 hours.

If a cursor expires or is invalid, Vroni returns 422 with the code validation_failed and errors.cursor set to ["cursor_invalid"]. To recover, call the endpoint again without a cursor and skip any event IDs you have already seen.

List runs

GET /api/v1/runs
Query parameter What it does
status Filter by one or more run statuses from the table above. Repeat with status[]= for multiple values.
publication_state delivered, awaiting_review, or all.
trigger_source github, dashboard, or api. Repeat with trigger_source[]= for multiple values.
repository_id, task_id Return only runs for a specific repository or task.
created_at_from, created_at_until Time range in ISO 8601 format with a time zone. The start is inclusive and the end is exclusive.
sort Sort by created_at, started_at, completed_at, duration, credits, or status. Prefix with - for descending order. Default: -created_at.
page, per_page Standard page-based pagination.

Each item in the list includes the run’s status, task title, repository, trigger (what started it), pull request, timestamps, and duration_seconds, plus credits_used once the run is settled. attempt_count shows how many times Vroni started the run, including automatic restarts after an internal issue. Failed runs also include failure_category and failure_label.

Show one run

GET /api/v1/runs/{run_id}

Returns the same fields as the list endpoint, plus the task description (requested_outcome), a summary of the attempts (attempt_summary), a summary of what the run did (outcome_summary), its timeline, the credit settlement, and next_action.

Last updated November 25, 2026. Something missing or unclear? Write to [email protected].

Try Vroni on your own repository

Vroni is in early access, and new accounts are approved by hand.

Get early access