API
API reference
Trigger checks and pull results from CI or your own tooling. Token auth, JSON in, JSON out. Base URL https://modelinject.com/api/v1
Authentication
Create a token under Settings → API tokens in the app, then send it as a bearer token.
Authorization: Bearer mi_live_xxx Accept: application/json
Run a check
Queue a check against a target your organisation has connected.
POST /api/v1/checks
{
"kind": "key", // key | api | email
"target_id": "mc_..." // id of the model key / endpoint / mailbox
}
201 → { "check_id": "chk_...", "score": 31, "credits_used": 6, "url": "/app/checks/chk_..." }Read results
GET /api/v1/checks/{id} → the check with its findings
GET /api/v1/targets → connected targets and their latest scores
GET /api/v1/checks?kind=key → recent checksEvery call is organisation-scoped to the token's organisation. Running a check spends credits the same as the UI; the response reports how many.
Create a token