Create checklist
const url = 'https://app.ayna.com/api/v1/checklists/templates/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"","phase":"","context_tag":"","is_mandatory":false,"items":[{"id":"example","text":"example","source":"manual","required":true,"is_critical":false,"group":"example","order":1,"help_text":"example","source_config":{},"when":{}}],"scope":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/checklists/templates/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "", "phase": "", "context_tag": "", "is_mandatory": false, "items": [ { "id": "example", "text": "example", "source": "manual", "required": true, "is_critical": false, "group": "example", "order": 1, "help_text": "example", "source_config": {}, "when": {} } ], "scope": "" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Create a new checklist template.
A checklist template is reusable — once created it can be linked to Rules and auto-attached to entities (flights, drones, missions) so that task instances are stamped automatically at the right lifecycle stage.
object
Checklist name shown in the UI.
Optional description of what this checklist covers.
Lifecycle phase this checklist runs at. Common values: pre_flight, post_flight, maintenance, onboarding, emergency, delivery. Alias for context_tag — use either, they are equivalent.
Alias for phase. If both are provided, context_tag takes precedence.
Whether completion of this checklist is required before the entity can proceed.
Ordered list of check items. See ChecklistItemSchema for item structure.
A single item in a checklist template.
Each item represents one check that must be performed or verified.
The source field controls how it resolves:
- manual → pilot checks a box
- input → pilot enters a value
- checker → AYNA auto-evaluates (FAA cert, registration, Remote ID, etc.)
- record → resolves when a matching document exists in the record graph
- field → resolves when a specified entity field is populated
- agent → AI agent resolves it asynchronously
object
The check item description shown to the pilot.
How this item resolves. One of: manual (pilot checks a box), input (pilot enters a value), checker (AYNA auto-evaluates — e.g. cert valid, FAA reg, Remote ID), record (resolves when a matching document is on file), field (resolves when an entity field is populated), agent (AI agent resolves it).
Whether this item must be completed before the checklist can be submitted.
If true, a red result on this item blocks the entity from progressing (e.g. flight cannot launch).
Accepted for agent compatibility. Currently unused — authority is always set to ‘organization’.
Responses
Section titled “Responses”Created
object
Example generated
{}