Skip to content
Vroni

DocsUse cases

Automation with the API

Create Vroni tasks from scripts, CI pipelines, ticket systems, or internal tools, and get the result back through polling or webhooks.

With the API, your tools can send work to Vroni and pick up the finished pull request without anyone opening the app. The API is included in the Team plan.

Below you’ll find common ways to use it, the steps from creating a token to getting a pull request link, and a few things to watch out for. For the full reference, see the API overview.

What you can build

  • Connect your ticket tracker so that moving a ticket to a specific status creates a Vroni task from the ticket text and posts the pull request link back on the ticket.
  • Follow up on CI failures. When a nightly job catches deprecations or a failing dependency check, it can open a task with the failure, an excerpt of the output, and the pipeline link in source_url.
  • Run scheduled upkeep, such as a weekly job that sends the same dependency update task.
  • Build an internal dashboard that tracks tasks, runs, and credit use.

From token to pull request

  1. A team owner or administrator opens Settings, goes to Team settings and Manage API tokens, and creates a team API token. Give it Create tasks and Read runs so it can start tasks and follow them.
  2. Look up the repository ID with GET /api/v1/repositories and check that its status is ready.
  3. Send POST /api/v1/tasks with the repository ID and the task description. Add an Idempotency-Key header that is unique to that request, like a ticket number. If your script retries with the same key, Vroni won’t create a second task.
  4. Check the response. 201 means the task is queued. 202 with "approval_required": true means it is waiting for an approver. 409 means Vroni couldn’t start it, and errors.reason explains why.
  5. Follow the run by polling data.links.status until terminal is true, or set up a webhook to notify your tool.
  6. Once status is completed and publication_state is delivered, the pull request link is in pull_request.url.
curl -X POST https://app.vroni.com/api/v1/tasks \
  -H "Authorization: Bearer $VRONI_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deps-$(date +%G-%V)" \
  -d '{
    "repository_id": "YOUR_REPOSITORY_ID",
    "title": "Weekly dependency update",
    "requested_outcome": "Update all npm packages to their latest minor and patch versions. Leave major versions alone. List anything you could not update in the pull request."
  }'

Because the key includes the year and week, each weekly job creates one task and a retry during the same week won’t create a second one. The Tasks API and Runs API list all available fields.

Watch out for

  • API tasks cost the same as tasks created in the app. Build a limit into your tool so a bug in a script can’t open hundreds of tasks. The API accepts up to 30 task creations per minute per token.
  • With webhooks, run.completed only fires after a pull request is published. Listen for run.failed and run.timed_out as well.
  • The API can’t create repositories, request changes, retry, cancel, or merge. Those actions happen in the Vroni app or on GitHub.
  • The result is a normal pull request, so your review and merge rules still apply.

You don’t need an SDK. curl or any standard HTTP library is enough.

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