Skip to main content
GET
Get the rules text format spec, ready-to-import examples, and copy/paste AI prompts

Authorizations

x-api-key
string
header
required

Raw API key shown once when created in the Allocait app (Settings > API keys). Send it verbatim in this header; the server stores and compares only its SHA-256 hash. Allocait generates every key: alc_ followed by 64 lowercase hex characters. Keys issued before 2026-10-10 are 64 hex characters with no prefix and keep working. A key may carry an expiry (90 days or 1 year, or never). A malformed, unknown, revoked or expired key gets 401 with no further detail, and a malformed one is refused before any lookup. Keys cannot be created through this API.

Response

The current rules text spec, examples, and prompts

The rules text format, in the same words GET /scenarios/{id}/rules and the app itself read it by; the same content the shared parser module ships, so this is never out of sync with what actually validates.

version
integer

The only rules text spec version Allocait reads today.

spec
string

The full format spec as markdown, fit for showing to a person or an AI.

examples
object[]
prompts
object[]