List routines
Changed onList routine summaries for the calling user. A conditional routine includes its condition text and type; retrieve the individual routine to inspect its persisted semantic query. Results are newest first by default; pass sortField=name with sortDirection=asc or desc to sort by name. Includes routines paused by the owner or disabled by Omni, but excludes deleted routines. Use pageInfo.nextCursor from one response as the cursor query parameter on the next request. Organization API keys can pass ?userId=<userId> to list routines for a specific organization member.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/ai/routines
- AuthHTTP bearer
Query parameters
Cursor for pagination (from previous response nextCursor)
Number of results per page (1-100, integer)
Sort direction for results
Field to sort results by
Target user ID (for org-scoped API keys)
Response
Paginated list of routines.
Example response
{
"records": [
{
"condition": {
"conditionPrompt": "there are failed orders",
"conditionType": "RESULTS_PRESENT"
},
"destination": {
"recipientEmails": [
"alice@example.com",
"bob@example.com"
],
"type": "email",
"userGroupIds": [
"X9kQ2mPz"
]
},
"lastRun": {
"label": "Delivered",
"state": "COMPLETE"
}
}
]
}Changes
- breaking
added to the
//response propertyoneOflist for the response status - info
added
webhookdiscriminator mapping keys to the//response property for the response status
- breaking
- breaking
the
////////response's property format changed fromuuidto no format for status
- breaking