Skip to main content
GET
Get cron trigger

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$
projectID
string
required
Pattern: ^proj_[a-z2-7]{26}$
cronTriggerID
string
required
Pattern: ^cron_[a-z2-7]{26}$

Response

Cron trigger.

id
string
required
Pattern: ^cron_[a-z2-7]{26}$
org_id
string
required
Pattern: ^org_[a-z2-7]{26}$
project_id
string
required
Pattern: ^proj_[a-z2-7]{26}$
name
string
required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

Required string length: 1 - 64
target
object
required
cron
string
required

Standard five-field cron expression (minute, hour, day of month, month, day of week). TZ=/CRON_TZ= prefixes are rejected; set the timezone field instead.

Required string length: 9 - 256
timezone
string
default:UTC
required

IANA time zone the schedule is evaluated in.

Maximum string length: 64
message_template
string
required

Go text/template rendered on each firing to produce the message sent to the target. The template receives a trigger value with name, fired_at, and last_fired_at fields. Rendering is capped at 64 KiB of output and one second of wall-clock time, and printf width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in failure_report without sending a message.

Maximum string length: 65536
enabled
boolean
required
last_fired_at
string<date-time> | null
required

When the trigger last fired, or null if it has never fired.

next_fire_at
string<date-time> | null
required

Next scheduled firing, or null while the trigger is disabled.

failure_report
object | null
required

Most recent failed firing, or null if no firing has failed since the last successful firing.

created_at
string<date-time>
required
updated_at
string<date-time>
required