# Schemas

Discoverable reference data for automation trigger types. Returns the shape of trigger_data each trigger publishes, the {{variable}} tokens available in action templates, and CRM-enriched variable namespaces. Free -- 0 credits, no scope required.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### GET /schemas/triggers

List all 43 trigger types supported by the automation engine. Each entry includes trigger_type, label, description, sample_trigger_data, and available_variables[]. The response also includes enriched_variables -- the CRM-enriched namespaces (contact.*, deal.*, customer.*, etc.) available on every trigger after CRM matching. Use this before building automations so you know which variable tokens to reference in action templates.

**Scopes:** _none_ — [full detail](./schemas/get-schemas-triggers.md)

### GET /schemas/triggers/:trigger_type

Get the canonical schema for a single trigger type. Returns label, description, sample_trigger_data (a realistic example payload), available_variables[] (all {{token}} names extracted from the sample), and enriched_variables (CRM namespace reference). Returns 404 if the trigger_type is not recognised.

**Scopes:** _none_ — [full detail](./schemas/get-schemas-triggers-trigger-type.md)
