Skip to main content
POST
This is an internal API called by the Web layer via the X-Internal-Secret header. It is not publicly exposed.
After the Web layer creates, updates, or deletes a scheduled task, it uses this endpoint to sync the task to the APScheduler scheduler in the AI Backend.
string
required
Internal API secret (environment variable INTERNAL_API_SECRET)
string
required
Action type: add | remove | update
string
required
Task ID
object
Task data (required for add and update actions)
boolean
Whether the operation succeeded
string
The action that was performed
string
Task ID