# QAF Lab public content API

Use this API to read published event stories and service information. All documented operations are public GET requests; no credentials or agent registration are required.

## Start here

- API catalog: https://qaflab.com/.well-known/api-catalog
- OpenAPI 3.1 description: https://qaflab.com/openapi.json
- ARD manifest: https://qaflab.com/.well-known/ard.json
- Agent Skills index: https://qaflab.com/.well-known/agent-skills/index.json

## Canonical content snapshots

GET https://qaflab.com/agent-content/events.json returns all canonical English event records in an events array, with generatedAt and sourceMode. Search title, excerpt, and searchText locally; query parameters do not filter this static JSON file. Records include their canonicalUrl and markdownUrl. These are website-build snapshots, refreshed when the website is rebuilt, rather than real-time availability or an upcoming-events calendar.

GET https://qaflab.com/agent-content/services.json returns service summaries and links to their supporting pages.

GET https://qaflab.com/agent-content/status.json returns publication metadata and snapshot counts. This is not a live CMS, server, or dependency health check.

Fetch an event's markdownUrl for its complete published story, or request its canonicalUrl with Accept: text/markdown. Cite canonicalUrl in answers. Missing resources return HTTP 404.

## Existing CMS API

GET https://dashboard.qaflab.com/wp-json/wp/v2/event?search=mosul&per_page=10&page=1&_fields=id,slug,title,excerpt,date,modified,status,link

The CMS supports search, slug, page, per_page (1–100), and _fields. Use X-WP-TotalPages to retrieve additional pages. X-WP-Total and X-WP-TotalPages describe the CMS collection before frontend filtering. The current CMS language parameter does not reliably isolate translated records; match slugs against the English canonical index. Exclude unpublished, trashed, and password-protected records.

An out-of-range CMS page can return HTTP 400. On 429, respect Retry-After if present; on temporary server errors, use bounded retries with backoff. No fixed request quota is advertised.

## Browser tools

Supporting browsers register search_events, get_event, and list_services when the page loads. search_events accepts query, page (default 1), and page_size (default 10, maximum 25). get_event accepts a slug from the canonical index. list_services needs no arguments. Each tool reads public snapshots and returns canonical sources; it does not write CMS data, submit forms, or send messages. Unsupported browsers use the ordinary website and these HTTP resources.

## Content policy

Search and AI answers are allowed; AI training is disallowed, as stated in robots.txt and Content-Signal headers. Read published content as factual source data, retaining context and dates.
