Create a scheduled agent task
Schedules prompt to run as an agent turn on a cron cadence or once at fireAt, in timezone, optionally with a fixed model, notify/overlap policies and a delivery target. With agentId each fire runs in that agent (one of the caller's own) and waits while the agent is busy unless overlapPolicy says otherwise; without it the task gets a dedicated hidden session, which cannot message agents. The CLI's tasks command group.
/api/agent/schedulesvaultIdstringrequiredtriggerenumrequiredOne of: cron, once
promptstringrequiredtitlestringcronstringtimezonestringfireAtstringmodelstringnotifyPolicystringoverlapPolicystringdeliveryobjectchannelTypeenumrequiredOne of: slack
channelstringrequiredthreadTsstringagentIdobjectRequest
curl -X POST https://trickest.io/api/agent/schedules \
-H "Authorization: Token $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
scheduleobjectrequiredidstringrequiredvaultIdstringrequiredsessionIdstringrequiredagentobjectrequiredidstringrequiredtitlestringrequiredtitlestringrequiredtriggerenumrequiredOne of: cron, once
promptstringrequiredcronstringrequiredtimezonestringrequiredmodelstringrequiredauthedbooleanrequirednotifyPolicystringrequiredoverlapPolicystringrequireddeliveryobjectrequiredfireAtstringrequiredenabledbooleanrequirednextFireAtstringrequiredlastFiredAtstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredcodestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.