Public
Write endpoints hidden
Save a valid API key above to reveal POST, PATCH, DELETE, and other key-required endpoints.
GET
/api
Public
Human-readable API documentation.
GET
/api/json
Public
Machine-readable API documentation for agents.
GET
/api/health
Public
Public deployment health check. Reports whether Appwrite configuration and read access are available without exposing secrets.
GET
/api/verify
Key required
Verify that the supplied Bearer API key is valid.
GET
/api/search
Public
Weighted archive search across blogs/labs, tasks, notes, command logs, and vulnerability diagnostic fields. Common security abbreviations and names such as SQLi/SQL injection are expanded, and results include scores plus matched fields.
Query
{
"q": "access control"
}
GET
/api/blogs
Public
List walkthrough/case records with platform, series/game, status, dates, scope, finding count, and journal count. Use these records as case containers, not as canonical vulnerability definitions.
GET
/api/blogs/:id
Public
Read one walkthrough/case record and its linked vulnerability findings. Use the returned blog ID to query or create related tasks, notes, and command evidence.
POST
/api/blogs
Key required
Create the case container before autonomous work begins. One record should represent one authorized room, lab, challenge, or target walkthrough under platform and series/game.
Body
{
"platform": "Local | TryHackMe | Hack The Box | PortSwigger | VulnHub",
"series": "Bandit | Web Security Academy | General",
"name": "Blog or lab title",
"difficulty": "easy | medium | hard | insane",
"status": "planned | active | completed | archived",
"target_scope": "Authorized scope only",
"started_at": "YYYY-MM-DD",
"completed_at": "YYYY-MM-DD",
"time_spent_minutes": "Active hands-on time; separate from elapsed calendar duration.",
"tags": "web, sqli, level:low, phase:exploit",
"dead_ends": "Markdown list of attempted paths, observations, and why each was ruled out.",
"notes": "Blog body, excerpt, or summary. Markdown is rendered on the full blog page. Images can be embedded with ."
}
PATCH
/api/blogs/:id
Key required
Update blog metadata, summary, scope, or status.
Body
{
"name": "Updated title",
"series": "Updated series or game",
"status": "completed",
"time_spent_minutes": 120,
"tags": "web, authz, level:medium",
"dead_ends": "- Session fixation was ruled out because the identifier rotated after login.",
"notes": "Updated blog summary"
}
DELETE
/api/blogs/:id
Key required
Delete a blog archive entry from Appwrite.
GET
/api/ait
Public
List AIT terms for Artificial Intelligence Terminology.
GET
/api/blog-template
Public
Return the recommended Markdown template for cybersecurity room/problem write-up blogs.
GET
/api/agent-guide
Public
Return the system-style recording guide for AI agents: what to save, how to structure findings, and how to reuse memory diagnostically.
GET
/api/tasks
Public
List bounded investigation hypotheses and work items. A task should have one objective and end as proven, disproven, blocked, or inconclusive in final_summary.
GET
/api/tasks/:id
Public
Read one work record with linked commands, events, notes, and findings.
POST
/api/tasks
Key required
Create one bounded hypothesis or diagnostic work item linked to a blog/lab. Record explicit tool permissions and safety scope before taking action.
Body
{
"lab_id": "Appwrite lab document ID",
"assigned_to": "ai-agent | human",
"title": "Review reflected input handling",
"objective": "What the task is trying to verify",
"status": "todo | running | blocked | completed",
"allowed_tools": "browser, curl, source review",
"safety_scope": "Authorized scope and tool limits",
"final_summary": "Outcome summary"
}
PATCH
/api/tasks/:id
Key required
Update an audit work record.
Body
{
"status": "completed",
"final_summary": "Updated outcome summary"
}
DELETE
/api/tasks/:id
Key required
Delete an audit work record.
GET
/api/notes
Public
List investigation observations and evidence annotations. AI attribution currently lives in actor_type, actor_name, and tags/content until a dedicated run schema is added.
GET
/api/notes/:id
Public
Read one note with linked lab, task, and vulnerability context.
POST
/api/notes
Key required
Create a reasoning checkpoint, observation, decision, negative result, screenshot reference, or evidence annotation. For AI notes, use the exact provider/model in actor_name and a run ID in tags.
Body
{
"lab_id": "Appwrite lab document ID",
"task_id": "Appwrite task document ID",
"vulnerability_id": "Appwrite vulnerability document ID",
"actor_type": "ai | human",
"actor_name": "Exact provider/model identifier, for example openai/gpt-5-codex",
"title": "Specific observation or decision title",
"content": "Observed behavior, baseline, changed variable, result, evidence/screenshot reference, and confidence or uncertainty",
"experience": "What changed the investigation, what was ruled out, and what the next agent should remember",
"tags": "run:run_id, model:model_id, phase:triage, xss, evidence, review:pending"
}
PATCH
/api/notes/:id
Key required
Update a linked note.
Body
{
"title": "Updated note title",
"tags": "xss, reviewed"
}
DELETE
/api/notes/:id
Key required
Delete a linked note.
GET
/api/commands
Public
List reproducible tool-action evidence. Logs should explain purpose and result while excluding secrets and excessive raw output.
GET
/api/commands/:id
Public
Read one command or tool evidence log.
POST
/api/commands
Key required
Create a command or tool evidence log.
Body
{
"lab_id": "Appwrite lab document ID",
"task_id": "Appwrite task document ID",
"tool": "curl | browser | source review",
"command": "Command text or action summary",
"purpose": "Why this command/tool action was used",
"output_summary": "Short result summary",
"worked": true
}
PATCH
/api/commands/:id
Key required
Update a command or tool evidence log.
Body
{
"output_summary": "Updated result summary",
"worked": true
}
DELETE
/api/commands/:id
Key required
Delete a command or tool evidence log.
GET
/api/triage
Public
Rank canonical vulnerability candidates against symptoms, error text, technology, component, and parameter. Returns weighted scores and the exact fields/terms that matched.
Query
{
"symptoms": "object ID change returns another user record",
"technology": "REST API",
"limit": 10
}
GET
/api/runs
Public
List structured AI execution runs with model provenance, lifecycle, token usage, tool mode, review state, and linked lab context.
POST
/api/runs
Key required
Create one AI run before investigation begins. run_key must be stable and unique so retries do not create ambiguous provenance.
Body
{
"lab_id": "Required blog/lab ID",
"run_key": "run_2026_06_30_01",
"provider": "openai",
"model": "gpt-5-codex",
"model_version": "Exact version or snapshot when available",
"status": "running | completed | blocked | failed | cancelled",
"started_at": "ISO-8601 timestamp",
"parent_run_id": "Optional parent run for a branch or retry",
"experiment_key": "Shared key for multiple models attempting the same objective",
"candidate_label": "Human-readable candidate such as gpt-5.5 or gpt-5.6",
"tool_mode": "browser, terminal, proxy; approvals required",
"configuration": "Redacted JSON configuration; never secrets or hidden chain-of-thought",
"prompt_hash": "SHA-256 of the controlled run instructions",
"reviewed_by_human": false
}
GET
/api/runs/:id
Public
Read one run with its tasks, findings, and evidence artifacts.
PATCH
/api/runs/:id
Key required
Finalize run status, stop reason, token usage, cost estimate, summary, and review state.
Body
{
"status": "completed",
"completed_at": "ISO-8601 timestamp",
"stop_reason": "goal_completed",
"input_tokens": 12000,
"output_tokens": 3400,
"estimated_cost": "0.42 USD",
"summary": "Outcome and remaining uncertainty"
}
GET
/api/findings
Public
List case-specific vulnerability occurrences. Findings link a lab/run/task to reusable canonical vulnerability knowledge.
POST
/api/findings
Key required
Create a suspected or confirmed case finding. Keep reusable recognition/remediation in vulnerability_id; keep endpoint-specific proof here.
Body
{
"lab_id": "Required lab ID",
"task_id": "Hypothesis task ID",
"run_id": "Discovering AI run ID",
"vulnerability_id": "Canonical vulnerability definition ID when matched",
"canonical_key": "Optional canonical key. When vulnerability_id is absent, the API resolves this exact key; an exact title/name match is also linked automatically.",
"title": "Broken object authorization on GET /api/orders/:id",
"status": "suspected | confirmed | rejected | mitigated",
"confidence": "low | medium | high | verified",
"severity": "info | low | medium | high | critical",
"endpoint": "GET /api/orders/:id",
"parameter": "id",
"prerequisites": "Two authorized test users with separate objects",
"reproduction_steps": "Numbered lab-specific reproduction steps",
"poc_summary": "Safe, redacted proof summary",
"evidence_summary": "Baseline, changed variable, observed result, confirmation criterion",
"negative_checks": "Controls and invalidating conditions",
"model_id": "openai/gpt-5-codex",
"reviewed_by_human": false
}
GET
/api/findings/:id
Public
Read one finding with linked lab, task, run, vulnerability definition, and evidence artifacts.
GET
/api/evidence
Public
List structured screenshots, requests, responses, terminal captures, logs, and observations with provenance and redaction state.
POST
/api/evidence
Key required
Register an evidence artifact. Use external_url for an existing HTTPS image or storage_file_id after upload; never store secrets in captions or metadata.
Body
{
"lab_id": "Required lab ID",
"task_id": "Related task ID",
"run_id": "Capturing run ID",
"finding_id": "Related finding ID",
"kind": "screenshot | request | response | terminal | log | observation",
"title": "Authorization response comparison",
"external_url": "https://safe-host.example/redacted-image.png",
"mime_type": "image/png",
"caption": "What the artifact proves",
"alt_text": "Accessible description",
"sha256": "64-character SHA-256 when available",
"redacted": true,
"sensitivity": "public | internal | restricted",
"captured_by": "openai/gpt-5-codex",
"observed_at": "ISO-8601 timestamp"
}
GET
/api/evidence/:id
Public
Read one evidence artifact and its linked case provenance.
GET
/api/secrets
Key required
Authenticated metadata-only list of encrypted vault records. Values remain redacted.
POST
/api/secrets
Key required
Encrypt and store a continuation credential. Plaintext is never persisted outside the AES-256-GCM vault fields.
Body
{
"lab_id": "Required linked lab/blog ID",
"run_id": "Run that obtained the secret",
"secret_type": "password | token | credential | recovery_code",
"label": "Bandit level 6 password",
"scope": "bandit6",
"username": "bandit6",
"value": "Plaintext accepted only by this authenticated endpoint",
"status": "active",
"created_by": "openai/gpt-5.6"
}
GET
/api/secrets/:id
Key required
Authenticated, audited decryption of one vault record. Response is no-store and never available publicly.
GET
/api/labs/:id/handoff
Key required
Authenticated continuation context containing the lab, latest run, and decrypted active vault records for the next agent.
GET
/api/vulnerabilities
Public
List reusable vulnerability diagnostic playbooks. Search symptoms, entry points, prerequisites, heuristics, false positives, root causes, remediation, and references—not only names.
GET
/api/vulnerabilities/:id
Public
Read the complete reusable diagnostic playbook plus linked source context. Compare symptoms and prerequisites before applying its testing procedure to a new authorized lab.
POST
/api/vulnerabilities
Key required
Create a reusable vulnerability playbook only after evidence supports a repeatable pattern. Keep chronology in the blog/notes; keep recognition, controls, cause, fix, and re-test knowledge here.
Body
{
"name": "Reflected XSS via search query in HTML context",
"canonical_key": "web.xss.reflected.html-context",
"category": "Web",
"subcategory": "Cross-Site Scripting",
"severity": "medium",
"severity_justification": "Explain the demonstrated impact, affected role/data, scope, and assumptions behind the rating.",
"knowledge_status": "draft | validated | deprecated",
"confidence": "low | medium | high | verified",
"tags": "Markdown list or comma-separated search labels, for example: sqli, level:low, phase:exploit",
"summary": "Short canonical definition independent of any one lab.",
"aliases": "Common alternative names, comma separated.",
"cwe_ids": "CWE-79",
"cve_ids": "Only applicable product CVEs; leave empty for generic lab weakness classes.",
"capec_ids": "CAPEC mappings when applicable.",
"owasp_refs": "OWASP Top 10 and Testing Guide mappings.",
"cvss_version": "3.1",
"cvss_score": "6.1",
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"technologies": "HTML templating, browser, JavaScript",
"affected_products": "Specific products only when supported by evidence.",
"affected_versions": "Version ranges only when supported by a source.",
"attack_surface": "Browser-rendered user-controlled output.",
"exploit_maturity": "theoretical | poc | functional | weaponized",
"exploit_references": "Safe public exploit/advisory references; do not store live credentials or weaponized private payloads.",
"reproduction_commands": "Fenced Markdown code blocks containing safe, redacted commands for the authorized lab.",
"history": "Discovery/publication/remediation timeline and important changes.",
"known_variants": "Stored, reflected, and DOM-based variants with distinguishing symptoms.",
"detection_signatures": "Defensive logs, response patterns, scanner signatures, and manual indicators.",
"affected_asset": "Search results page and search query parameter.",
"entry_points": "Search input submits a query string value. Results template reflects that value near the results heading. Browser renders the response as HTML.",
"prerequisites": "Authorized lab session. Tester can submit the search form. The page reflects the submitted term in the response.",
"symptoms": "A unique harmless marker appears back in the rendered page and response source. Changing the search term changes the reflected output. Special characters appear to influence rendering instead of being displayed only as safe text.",
"heuristics": "If user-controlled text appears in HTML body content, first identify the output context, then test whether special characters are encoded. Do not start with payload guessing. False positive: reflected text that is encoded and rendered only as visible text.",
"testing_steps": "1. Confirm authorized scope. 2. Submit a unique harmless marker. 3. Inspect rendered page and source for the marker. 4. Identify the output context. 5. Compare special-character handling. 6. Run a negative control in a field that escapes correctly. 7. Use active proof only when the lab explicitly allows it. 8. Record limits and invalidating conditions.",
"evidence": "The marker appeared in HTML body context on the search results page. A controlled special-character probe showed the output was not safely encoded for the context.",
"negative_checks": "A separate plain text field escaped the same marker correctly. No external site or real user data was tested.",
"false_positives": "Search highlighting, escaped HTML entities, and text shown inside a safe block are not enough to prove XSS. Browser interpretation and context decide the finding.",
"impact": "In a real application, a crafted link could execute attacker-controlled JavaScript in a victim browser. Impact depends on session protections, CSP, user role, and sensitive actions available to the victim.",
"root_cause": "The template renders user-controlled search text into HTML without context-aware output encoding.",
"tools_used": "Browser for rendering behavior, proxy or source view for response context, curl for reproducible readback.",
"remediation": "Apply context-aware output encoding before rendering user input. Keep framework auto-escaping enabled. Use sanitization only for trusted rich HTML. Add CSP as defense in depth.",
"verification_steps": "1. Submit the same marker after the fix. 2. Confirm special characters render only as text. 3. Confirm page source contains encoded output. 4. Re-run the negative control. 5. Add a regression test for reflected search terms.",
"references": "PortSwigger Web Security Academy reflected XSS labs. OWASP Cross Site Scripting Prevention Cheat Sheet. CWE-79.",
"learned_from_lab_id": "Appwrite lab document ID",
"source_task_id": "Appwrite task document ID",
"reviewed_by_human": false
}
PATCH
/api/vulnerabilities/:id
Key required
Update vulnerability knowledge-base fields.
Body
{
"severity": "critical",
"evidence": "Updated confirmation evidence",
"verification_steps": "Updated post-fix checks",
"reviewed_by_human": true,
"remediation": "Updated defensive guidance"
}
DELETE
/api/vulnerabilities/:id
Key required
Delete a vulnerability entry.