Skip to main content
POST
create_automation

Authorizations

Authorization
string
header
required

Employer session JWT from Better Auth.

Body

application/json
name
string
required

Display name. At most 120 characters.

trigger
object
required

WHEN. Object with type. Event types include application.confirmed, status.changed, interview.booked, offer.accepted, and others. type schedule needs cron and optional timezone.

branches
object
required

THEN. Object with key default whose value is the action list. Actions include set_status, set_assignee, clear_assignee, add_note, archive, restore, and create_draft.

condition_group
object

IF. Optional rule group. Default is and with no conditions.

job_id
string

Optional job UUID. Null means company-wide.

status
string
default:paused

active, paused, or archived. Default paused.

Response

201 - application/json

Created

The response is of type object.