---
title: "Create a scheduled event"
method: POST
path: "/ai/assistants/{assistant_id}/scheduled_events"
tags: ["Assistants"]
---

# Create a scheduled event

`POST /ai/assistants/{assistant_id}/scheduled_events`

Create a scheduled event for an assistant

## Path parameters

- `assistant_id` string, required

## Request body

- CreateScheduledEventRequest
  - `telnyx_conversation_channel` 'phone_call' | 'sms_chat', required
  - `telnyx_end_user_target` string, required — The phone number, SIP URI, to schedule the call or text to.
  - `telnyx_agent_target` string, required — The phone number, SIP URI, to schedule the call or text from.
  - `scheduled_at_fixed_datetime` string, date-time, required — The datetime at which the event should be scheduled. Formatted as ISO 8601.
  - `text` string — Required for sms scheduled events. The text to be sent to the end user.
  - `conversation_metadata` object — Metadata associated with the conversation. Telnyx provides several pieces of metadata, but customers can also add their own.
  - `dynamic_variables` object — A map of dynamic variable names to values. These variables can be referenced in the assistant's instructions and messages using {{variable_name}} syntax.
  - `max_retries_client_errors` integer — Configure number of retries on client errors: busy, no-answer, failed, canceled (caller hung up before the callee answered)
  - `retry_interval_secs` integer
  - `call_settings` ScheduledCallSettings — Per-call telephony overrides applied when a scheduled phone-call event dispatches. Phone-call events only. New per-call dispatch options should be added here rather than as top-level event fields.
    - `sip_region` 'US' | 'Europe' | 'Canada' | 'Australia' | 'Middle East' — SIP region passed to Telnyx when initiating an outbound call. Values match the Telnyx TeXML `SipRegion` parameter exactly. Telnyx defaults to `US` when omitted.

## Response `201`

Successful Response

- union — Union type for different scheduled event response types
  - ScheduledPhoneCallEventResponse
    - `telnyx_conversation_channel` 'phone_call' | 'sms_chat', required
    - `telnyx_end_user_target` string, required
    - `telnyx_agent_target` string, required
    - `scheduled_at_fixed_datetime` string, date-time, required
    - `assistant_id` string, required
    - `retry_count` integer
    - `retry_attempts` integer
    - `scheduled_event_id` string
    - `conversation_id` string
    - `created_at` string, date-time
    - `status` 'pending' | 'in_progress' | 'completed' | 'failed'
    - `conversation_metadata` object
    - `dynamic_variables` object — A map of dynamic variable names to values. These variables can be referenced in the assistant's instructions and messages using {{variable_name}} syntax.
    - `errors` string[]
    - `call_status` string — Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
    - `call_duration` integer — Duration of the call in seconds
    - `max_retries_client_errors` integer — Configure number of retries on client errors: busy, no-answer, failed, canceled (caller hung up before the callee answered)
    - `retry_interval_secs` integer
    - `call_attempts` AssistantScheduledCallAttempt[]
      - `attempt_number` integer, required
      - `attempted_at` string, date-time, required
      - `call_status` string, required — Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
      - `call_duration` integer — Duration of the call in seconds
      - `telnyx_call_control_id` string
    - `dispatched_at` string, date-time — Date time at which call was sent
    - `call_settings` ScheduledCallSettings — Per-call telephony overrides applied when a scheduled phone-call event dispatches. Phone-call events only. New per-call dispatch options should be added here rather than as top-level event fields.
      - `sip_region` 'US' | 'Europe' | 'Canada' | 'Australia' | 'Middle East' — SIP region passed to Telnyx when initiating an outbound call. Values match the Telnyx TeXML `SipRegion` parameter exactly. Telnyx defaults to `US` when omitted.
  - ScheduledSmsEventResponse
    - `telnyx_conversation_channel` 'phone_call' | 'sms_chat', required
    - `telnyx_end_user_target` string, required
    - `telnyx_agent_target` string, required
    - `scheduled_at_fixed_datetime` string, date-time, required
    - `assistant_id` string, required
    - `retry_count` integer
    - `text` string, required
    - `scheduled_event_id` string
    - `conversation_id` string
    - `created_at` string, date-time
    - `status` 'pending' | 'in_progress' | 'completed' | 'failed'
    - `conversation_metadata` object
    - `dynamic_variables` object — A map of dynamic variable names to values. These variables can be referenced in the assistant's instructions and messages using {{variable_name}} syntax.
    - `errors` string[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/8f5f4e537994/schema)
