Create an automation
Creates an agent task: a stored prompt plus a cadence (cron with an IANA timezone, a once instant, or manual for trigger-only). When it fires it drops a message into a real thread you can join, nudge and correct — not a hidden pipeline. Omit spaceId for your own desk; a named space needs space:contribute for you AND for the owner the automation runs as. The inbound trigger secret is returned ONCE, here. Authorization: organization admin.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
prompt
The user message injected into the thread when the automation fires.
schedule
description
playbookId
fileIds
spaceId
threadPolicy
Allowed values:
enabled
triggerEnabled
originThreadId
Response
The automation and its one-time trigger secret.
automation
secret
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error