API documentation

Automate Assay from CI or your own tooling. The API is JSON over HTTPS, authenticated by an API key, tenant-scoped to your account, and returns the same reports the app shows. Only the endpoints documented here exist.

Authentication

Create an API key in Settings (the full key is shown once, at creation) and send it on every request:

Authorization: Bearer assay_your_key

To rotate a key: create its replacement in Settings, move your integration over, then revoke the old key. Revocation is immediate. API access is part of every plan.

PlanAPI keysScans / monthBusinessesTargets each
Monitor5100125
Group5300325
Portfolio102,0001050

Conventions

Request bodies are JSON unless noted; errors come back as {"error": "…"}. Status codes: 401 missing or invalid key, 402 a plan limit was reached, 400 invalid input, 404 not found in your account. Scan endpoints count against your plan’s monthly scan allowance, shared with scans run from the app.

Subjects

GET/api/subjects

List the subjects (businesses) in your account.

curl -H 'Authorization: Bearer assay_your_key' \ https://assay.net.au/api/subjects

Response

{"subjects": [{"id": "…", "name": "Client Pty Ltd", "created_at": 1752000000.0}]}

POST/api/subjects

Create a subject. Returns 402 when your plan’s subject limit is reached.

curl -X POST -H 'Authorization: Bearer assay_your_key' \ -H 'Content-Type: application/json' \ -d '{"name": "Client Pty Ltd"}' \ https://assay.net.au/api/subjects

Response

{"id": "…", "name": "Client Pty Ltd"}

Targets & verification

POST/api/subjects/{subject_id}/targets

Add a domain or host to a subject. The response includes the DNS TXT record you must publish before the target can be verified. Private and internal addresses are refused.

curl -X POST -H 'Authorization: Bearer assay_your_key' \ -H 'Content-Type: application/json' \ -d '{"host": "example.com"}' \ https://assay.net.au/api/subjects/{subject_id}/targets

Response

{"id": "…", "host": "example.com", "verified": false, "dns_txt_record": "…publish this TXT record on the domain…"}

GET/api/subjects/{subject_id}/targets

List a subject’s targets and their verification state.

curl -H 'Authorization: Bearer assay_your_key' \ https://assay.net.au/api/subjects/{subject_id}/targets

Response

{"targets": [{"id": "…", "host": "example.com", "verified": true}]}

POST/api/targets/{target_id}/verify

Check ownership and mark the target verified when it passes. The optional body selects the method: "dns" (TXT record, the default), "http" (token file) or "rdns" (reverse DNS). The add-target response lists the methods that apply under verification.applicable; a bare IP has no DNS zone and verifies with rdns only, and a hostname verifies with dns or http (rdns proves an IP address, not a name). DNS propagation can take time; retry after a few minutes if it comes back false.

curl -X POST -H 'Authorization: Bearer assay_your_key' \ -H 'Content-Type: application/json' \ -d '{"method": "dns"}' \ https://assay.net.au/api/targets/{target_id}/verify

Response

{"verified": true, "method": "dns"}

Scans & assessments

POST/api/subjects/{subject_id}/scan-live

Run a full live external scan of the subject’s verified targets and return the finished assessment.

Requires at least one verified target. This call runs the scan inline and does not return until it finishes, which can take several minutes. Our edge closes an idle request at about 100 seconds, so a long scan over this public endpoint may time out even though the scan completes server-side. Poll /history for the new assessment if it does. For CI, prefer the upload endpoint below: run the scanners in your pipeline and post their output, which returns immediately. Counts against your plan’s monthly scan allowance (402 when it is exhausted). 409 means a scan for this subject is already running; 429 means the scanner is at capacity or your account is over the 60 scan-requests-per-hour limit (shared with the upload endpoint). Wait, then retry.

curl -X POST --max-time 600 -H 'Authorization: Bearer assay_your_key' \ https://assay.net.au/api/subjects/{subject_id}/scan-live

Response

{"assessment_id": "…", "finding_count": 3, "report": {…the full report…}, "delta": {…change vs the previous run, or null on the first…}}

POST/api/subjects/{subject_id}/scan

Assess scanner output you already have. The request body is the raw output file: Nuclei JSON or JSONL, or Nmap XML.

Add ?domain=example.com to include an SPF/DMARC check (repeat the parameter for several domains). Counts against your monthly scan allowance. Returns the same shape as a live scan. Rate limit: 60 scan requests per account per hour, shared with scan-live and counting failed attempts. Over it, 429.

curl -X POST -H 'Authorization: Bearer assay_your_key' \ --data-binary @nuclei-output.jsonl \ 'https://assay.net.au/api/subjects/{subject_id}/scan?domain=example.com'

Response

{"assessment_id": "…", "finding_count": 3, "report": {…}, "delta": null}

GET/api/subjects/{subject_id}/history

List a subject’s assessments, newest first.

Paginated: a daily schedule grows the trail forever, so the endpoint returns at most 200 per page. Add ?limit= (1–200) and ?offset= to page older assessments; the response echoes both.

curl -H 'Authorization: Bearer assay_your_key' \ 'https://assay.net.au/api/subjects/{subject_id}/history?limit=50&offset=0'

Response

{"assessments": [{"id": "…", "generated_at": 1752000000.0, "finding_count": 3}], "limit": 50, "offset": 0}

GET/api/subjects/{subject_id}/latest

Read a subject’s CURRENT results in one call: the newest assessment’s full report (findings, Essential Eight and SMB1001 verdicts, coverage notes).

The quickest path for an agent: no need to page history for an id first. Returns 404 until the subject’s first scan has run.

curl -H 'Authorization: Bearer assay_your_key' \ https://assay.net.au/api/subjects/{subject_id}/latest

Response

{"assessment_id": "…", "generated_at": 1752000000.0, "report": {…}}

GET/api/assessments/{assessment_id}

Fetch one assessment’s full report as JSON: findings, Essential Eight and SMB1001 verdicts, attack paths and coverage notes.

curl -H 'Authorization: Bearer assay_your_key' \ https://assay.net.au/api/assessments/{assessment_id}

Response

{"report": {…the full report…}}

DELETE/api/targets/{target_id}

Remove a target (e.g. one added by mistake) and free its quota slot.

curl -X DELETE -H 'Authorization: Bearer assay_your_key' \ https://assay.net.au/api/targets/{target_id}

Response

{"removed": true, "host": "example.com"}

Notes: run it from your AI assistant

If you use an AI assistant that can make web requests, you do not need to write any code: paste a prompt like these, with your real API key, and let the assistant drive the API for you. Treat the key like a password: paste it only into an assistant you trust, and revoke it in Settings if you are ever unsure.

Run a scan and get a plain-English fix list:

My Assay API key is assay_YOUR_KEY (from assay.net.au Settings). Base URL: https://assay.net.au 1. GET /api/subjects and show me my subjects. 2. Run POST /api/subjects/{subject_id}/scan-live for my business. 3. When it returns, list every AT RISK finding in plain English, worst first, with what I should ask my IT person to do about each one. Auth header on every request: Authorization: Bearer <my key>.

Ask what changed since last time:

My Assay API key is assay_YOUR_KEY. Base URL: https://assay.net.au Fetch GET /api/subjects/{subject_id}/latest and the one before it from GET /api/subjects/{subject_id}/history. Compare them: what changed verdict, what is newly AT RISK, what got fixed. Keep it to ten lines. If nothing changed, say exactly that.

Notes: a sensible monitoring cadence

What we recommend, and run on our own systems:

  • Weekly: one scheduled scan. Every plan's monthly allowance covers a weekly scan with room for ad-hoc checks after changes.
  • After every change: scan again after a deploy, a DNS change, a new service, or an office network change. New exposure almost always arrives with change, not out of nowhere.
  • Monthly: read the NOT ASSESSED and NOT OBSERVABLE items, not just the red ones. They are the checks nobody is vouching for.
  • Quarterly: export the report for your insurer, board or largest customer, and re-check that every target you actually operate is verified in Assay. Businesses add systems faster than they add monitoring.

Scan endpoints share your plan’s monthly allowance, so a CI hook that scans on every deploy suits Group and Portfolio; on Monitor, keep deploys to the weekly rhythm and scan on the changes that touch the internet.