Skip to content

Create checklist

POST
/api/v1/checklists/templates/
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": "" }'
Media typeapplication/json
ChecklistCreateRequest

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
name
required
Name

Checklist name shown in the UI.

string
>= 1 characters <= 255 characters
description
Description

Optional description of what this checklist covers.

string
""
phase
Phase

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.

string
""
context_tag
Context Tag

Alias for phase. If both are provided, context_tag takes precedence.

string
""
is_mandatory
Is Mandatory

Whether completion of this checklist is required before the entity can proceed.

boolean
items
Items

Ordered list of check items. See ChecklistItemSchema for item structure.

Array<object>
ChecklistItemSchema

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
id
Any of:
string
text
required
Text

The check item description shown to the pilot.

string
source
Source

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).

string
default: manual
required
Required

Whether this item must be completed before the checklist can be submitted.

boolean
default: true
is_critical
Is Critical

If true, a red result on this item blocks the entity from progressing (e.g. flight cannot launch).

boolean
group
Any of:
string
order
Any of:
integer
help_text
Any of:
string
source_config
Any of:
object
key
additional properties
any
when
Any of:
object
key
additional properties
any
scope
Scope

Accepted for agent compatibility. Currently unused — authority is always set to ‘organization’.

string
""

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}