Check API
The hosted backend runs the CLI for the web checker. A check is started as a job and polled until it completes.
Base URL
https://aegis-vault-backend.onrender.comBrowser requests are accepted only from allowed origins (the production web app).
POST /api/check
Starts a check. Returns a job id.
PARAMETERS
vaultstring- Contract address of the vault, starts with
C, 56 characters.
EXAMPLE
curl -X POST https://aegis-vault-backend.onrender.com/api/check \
-H "Content-Type: application/json" \
-d '{"vault":"<CONTRACT_ADDRESS>"}'RETURNS
| Status | Body |
|---|---|
202 | { "jobId": "…", "status": "processing" }, plus "queued": true, "position": N when it is waiting behind another job |
400 | { "error": "…" }: the vault field is not a contract address |
429 | { "error": "…", "jobId": "…" } when you already have a check running; { "error": "…" } after more than 5 requests per minute |
503 | { "error": "…" }: the queue is full, try again in a few minutes |
GET /api/check/:jobId
Returns the job's progress, then its result.
RETURNS
| Status | Body |
|---|---|
200 | { "status": "processing", "checks": [...], "queued"?: true, "position"?: N } |
200 | { "status": "complete", "result": [...], "checks": [...], "meta": { "cli_version": "0.5.0", "cli_commit": "…" } } |
502 | { "status": "error", "error": "…", "checks": [...] } |
404 | { "error": "…" }: unknown job id, or the job has expired |
checks is the status file (see Output and exit codes). It can be missing on the first poll or two; treat that as all checks pending. result is the CLI's JSON output.
GET /health
{ "status": "ok" }