← Docs

API keys and API reviews

Last updated .

Can I start a MergeSafe review from CI or a script?

Yes: an organization Admin creates an API key in the app, and a POST to https://app.mergesafe.ai/api/v1/reviews with that key starts a review of a pull request, charged to the organization’s balance like any other review.

Creating a key

Starting a review

curl -X POST https://app.mergesafe.ai/api/v1/reviews \
  -H "Authorization: Bearer $MERGESAFE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"repo": "owner/name", "pr_number": 123}'

The full reference, with every field and error code, is in the app under API docs.

Works with manual-only

With manual-only mode, nothing is reviewed until your tooling asks, for example a CI step that runs once tests pass.

Next: How reviews are charged →