Quickstart
Audit a client’s site and get the branded report.
1. Check your key
curl https://amarkos.com/api/v1/me -H "Authorization: Bearer $AMARKOS_KEY"
2. Add the client
curl https://amarkos.com/api/v1/clients \
-H "Authorization: Bearer $AMARKOS_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Acme Tools","external_ref":"crm-2231"}'3. Start the audit
curl https://amarkos.com/api/v1/audits \
-H "Authorization: Bearer $AMARKOS_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://acme-tools.com","client_id":"cl_…","scope":"all","max_pages":200}'The answer carries latest_scan.id. A 200-page scan takes a few minutes to half an hour, depending on the site.
4. Wait for it
Add a webhook for audit.scan.completed, or poll GET /v1/audits/{audit_id}/scans/{scan_id} every 30 seconds until status is done.
5. Get the report
curl "https://amarkos.com/api/v1/audits/aud_…/scans/scn_…/report?format=html" \ -H "Authorization: Bearer $AMARKOS_KEY" -o acme-audit.html
One self-contained file with your branding. It opens offline and prints to PDF from any browser.