Create an AI Routine
AI routines must be enabled for your organization to use this endpoint.
Create a new AI Routine that will run on the specified schedule.
Each scheduled run executes once using the routine owner’s permissions, and every recipient receives the same result.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Query Parameters
Requires an Organization API key. Target user membership ID.
Body
Email delivery configuration for the routine.
The shared model the prompt runs against.
Customer-visible name of the routine, used as the email subject.
Natural language prompt Omni runs on each scheduled run.
Six-field cron expression (minute, hour, day-of-month, month, day-of-week, year; use ? for an unspecified day field).
IANA timezone identifier used to evaluate the schedule.
Branch of the shared model the prompt runs against, or null.
Display-only notes about the routine, or null.
Topic scoping query generation, or null.
Response
Routine created successfully
The unique identifier for the newly created routine.
"880e8400-e29b-41d4-a716-446655440003"

