Create schedule
Create a new scheduled session.
Authentication
AuthorizationBearer
Personal API Key (apk_user_) or Service API Key (apk_)
Path parameters
org_id
Request
This endpoint expects an object.
name
Display name for the schedule.
prompt
The prompt / instructions to send when the schedule triggers.
agent
Agent configuration for the scheduled session.
Allowed values:
bypass_approval
When true, skip safe-mode approval prompts for scheduled sessions.
create_as_user_id
Create sessions on behalf of another user (requires admin).
frequency
How often the schedule repeats: once, hourly, daily, weekly, monthly, or cron.
interval_count
Repeat every N intervals (e.g. every 2 weeks).
notify_on
Notification triggers: all, failure, or none.
Allowed values:
playbook_id
Playbook to run in the scheduled session.
schedule_type
Schedule type: scheduled or event_driven.
Allowed values:
scheduled_at
ISO 8601 datetime for the first (or one-time) trigger.
slack_channel_id
Slack channel to post session results to.
slack_team_id
Slack workspace ID for notifications.
target_devin_id
Devin ID to target (for event-driven schedules).
Response
Successful Response
agent
Allowed values:
consecutive_failures
Number of consecutive failed executions.
created_at
ISO 8601 timestamp when the schedule was created.
created_by
User ID of the schedule creator.
enabled
Whether the schedule is currently active.
frequency
How often the schedule repeats.
last_error_at
ISO 8601 timestamp of the most recent error.
last_error_message
Error message from the most recent failed execution.
last_executed_at
ISO 8601 timestamp of the last execution.
name
Display name of the schedule.
notify_on
Allowed values:
org_id
Organization that owns this schedule (prefix org-).
playbook
prompt
scheduled_session_id
updated_at
bypass_approval
interval_count
last_edited_by
User ID of the last person to edit the schedule.
schedule_type
Allowed values:
scheduled_at
slack_channel_id
slack_team_id
target_devin_id
Errors
422
Unprocessable Entity Error