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
- 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.
- Look up the repository ID with
GET /api/v1/repositoriesand check that its status isready. - Send
POST /api/v1/taskswith the repository ID and the task description. Add anIdempotency-Keyheader 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. - Check the response.
201means the task is queued.202with"approval_required": truemeans it is waiting for an approver.409means Vroni couldn’t start it, anderrors.reasonexplains why. - Follow the run by polling
data.links.statusuntilterminalistrue, or set up a webhook to notify your tool. - Once
statusiscompletedandpublication_stateisdelivered, the pull request link is inpull_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.completedonly fires after a pull request is published. Listen forrun.failedandrun.timed_outas 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].