Background Tasks
Use Inbox Digest
Use Inbox Digest posts an empty body. The stored workflow is named Inbox Digest, stays active, and runs in the cloud. It starts at 8:00 on weekdays in America/New_York, keeps the template instructions, model, and provider, and records revision 1 with schedule sync paused.
post/v1/background-task-templates/{templateSlug}/instantiate
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /v1/background-task-templates/{templateSlug}/instantiate
- Auth: HTTP bearer
Path parameters
templateSlugstring required
Template slug.
Example:inbox-digest
Background task template slug.
Request body
Example request
{
"active": true,
"executionTarget": "api",
"model": "anthropic/claude-sonnet-4-5",
"name": "Executive Inbox Digest",
"provider": "openrouter",
"slug": "exec-inbox",
"triggers": {
"cronExpr": "0 9 * * *",
"timezone": "America/New_York"
}
}Response
Stored workflow.
Example response
{
"active": true,
"createdAt": "2026-06-04T20:38:00Z",
"executionTarget": "desktop",
"id": "123e4567-e89b-12d3-a456-426614174000",
"instructions": "Summarize important account changes.",
"lastAttemptAt": "2026-06-04T21:00:00Z",
"lastRunAt": "2026-06-04T21:02:00Z",
"lastRunId": "run-20260604-210000",
"lastRunSummary": "No high-priority account changes.",
"model": "openai/gpt-4.1-mini",
"name": "Daily Account Summary",
"provider": "openai",
"revision": 2,
"scheduleSyncState": "current",
"scheduleSyncedAt": "2026-06-04T20:39:00Z",
"slug": "daily-summary",
"templateSlug": "relationship-refresh",
"templateVersion": 1,
"triggers": {
"cronExpr": "0 9 * * *",
"timezone": "America/New_York"
},
"updatedAt": "2026-06-04T20:39:00Z"
}Changes
No operation changes recorded.