Skip to main content
GET
Get an AI Routine

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

routineId
string<uuid>
required

The UUID of the routine.

Query Parameters

userId
string<uuid>

Organization API key required. The membership ID of the user to act as.

Response

Routine details

agentId
string<uuid> | null
required

ID of the agent the routine runs through, or null when it runs as the organization's main AI agent.

branchId
string<uuid> | null
required

Branch of the shared model the prompt runs against, or null.

condition
object | null
required

The delivery condition. Null for a routine that delivers on every scheduled run.

createdAt
string
required

ISO 8601 timestamp when the routine was created.

description
string | null
required

Display-only notes about the routine, or null.

destination
object
required

Single delivery destination for the routine, or null when the routine runs without a delivery.

disabled
boolean
required

Whether the owner has paused the routine.

id
string<uuid>
required

The unique identifier of the routine.

lastRun
object | null
required

Most recent completed run, or null if the routine has never completed a run.

llm
object | null
required

The LLM the routine runs on, or null when it uses the organization default. If the LLM is no longer approved, the run uses the organization default.

Example:
modelId
string<uuid>
required

The shared model the prompt runs against.

name
string
required

Customer-visible name of the routine. Used as the email subject for email destinations, shown on Slack deliveries, and sent as name in webhook payloads.

prompt
any
required

Natural language prompt Omni runs on each scheduled run.

recipientCount
integer
required

Number of distinct deliverable recipients. For email, user groups are expanded to members and duplicates removed; for Slack, the channel or the listed users. A webhook destination always counts as 1. 0 when the routine doesn't have a delivery destination.

schedule
string
required

Six-field cron expression (minute, hour, day-of-month, month, day-of-week, year; use ? for an unspecified day field).

systemDisabled
boolean
required

Whether Omni disabled the routine because it could no longer run successfully or safely.

systemDisabledReason
string | null
required

Reason Omni disabled the routine, or null.

timezone
string
required

IANA timezone identifier used to evaluate the schedule.

topicName
string | null
required

Topic scoping query generation, or null.

updatedAt
string
required

ISO 8601 timestamp when the routine was last updated.