API Reference

The public HTTP API behind DevAssist — dispatch sandboxed site checkups and run tone analysis without a key.


DevAssist exposes two public HTTP endpoints used by both the website and the Agent Skill. No API key is required — these calls are rate-limited by URL and usage. Every endpoint lives under https://dev.solokit.run.

Overview

WhatEndpointMode
Dispatch a checkup (one of the 5 checkers)POST /api/sandbox/dispatchasync / poll
Read a checkup resultGET /api/sandbox/tasks/{id}poll
Site Tone analysisPOST /api/agent/site-tonesync

Run a site checkup

Checkups run in a remote sandbox and are asynchronous: you dispatch a task, get back a taskId, then poll for the result.

1. Dispatch

POST /api/sandbox/dispatch with a JSON body:

{
  "type": "wcag",
  "url": "https://example.com",
  "options": { "aiCommentary": true },
  "idempotencyKey": "optional-client-key"
}
  • type (string, required): one of the five checkers:

    typechecker
    site-stabilityStability (reachability, repeat requests, critical assets, transport; agent readability is not graded)
    site-validatorWhether page references hold (links, assets, canonical; notes are not graded)
    performanceDocument timing, transfer size, critical path, and caching
    wcagWCAG 2.2 AA automated audit (static rules + rendered axe-core)
    computer-useWhether a browser agent can see, name, and act (policy is not graded)
  • url (string, required): a public http(s) URL. localhost and private IPs are rejected on the site layer.

  • options (object, optional): { "aiCommentary": boolean } to also request AI commentary.

  • idempotencyKey (string, optional): a client-supplied dedupe key.

Response (201): { "taskId": "..." }.

2. Poll for the result

GET /api/sandbox/tasks/{taskId} returns the task. Poll every ~2s until the task reaches a terminal state. The completed report lives at .result.report:

{
  "status": "completed",
  "result": {
    "report": {
      "score": 98,
      "grade": "A",
      "sections": [],
      "issues": [],
      "ai": "AI commentary (when requested)",
      "aiError": null
    }
  }
}

Site Tone analysis

POST /api/agent/site-tone is synchronous (generates a seven-dimension visual diagnosis + strategy + optional AI commentary). Body:

{
  "url": "https://example.com",
  "siteType": "other",
  "keepAccent": "#3B82F6",
  "locale": "en"
}
  • siteType (string, optional): tune analysis for a site kind; defaults to other.
  • keepAccent (string, optional): a hex accent the diagnosis should preserve.
  • locale (string, optional): zh or en for the commentary language (default zh).

Response (200) is the full report: url, timestamp, inspect (title / h1 / status), dimensions (per-dimension id + score), strategy, and commentary (AI write-up, omitted if the model is unavailable).

Errors

  • 400 — invalid type / url / body.
  • 502 — upstream sandbox could not be reached.
  • 503 — sandbox service not configured.

Rate limit & privacy

  • Requests are rate-limited per URL and usage. Please fetch responsibly — not in tight loops.
  • Public pages only. Private / local addresses are rejected.
  • No API key is stored or required for these endpoints.