Skip to main content
POST
/
v3
/
schedules
Create a schedule
curl --request POST \
  --url https://api.reply.io/v3/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Evening outreach",
  "timezoneId": "Europe/London",
  "excludeHolidays": false,
  "useProspectTimezone": true,
  "useFollowUpSchedule": false,
  "mainTimings": [
    {
      "weekDay": "Monday",
      "isActive": true,
      "timeRanges": [
        {
          "fromTime": {
            "hour": 18,
            "minute": 0
          },
          "toTime": {
            "hour": 21,
            "minute": 0
          }
        }
      ]
    }
  ],
  "followUpTimings": []
}
'
import requests

url = "https://api.reply.io/v3/schedules"

payload = {
"name": "Evening outreach",
"timezoneId": "Europe/London",
"excludeHolidays": False,
"useProspectTimezone": True,
"useFollowUpSchedule": False,
"mainTimings": [
{
"weekDay": "Monday",
"isActive": True,
"timeRanges": [
{
"fromTime": {
"hour": 18,
"minute": 0
},
"toTime": {
"hour": 21,
"minute": 0
}
}
]
}
],
"followUpTimings": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Evening outreach',
timezoneId: 'Europe/London',
excludeHolidays: false,
useProspectTimezone: true,
useFollowUpSchedule: false,
mainTimings: [
{
weekDay: 'Monday',
isActive: true,
timeRanges: [{fromTime: {hour: 18, minute: 0}, toTime: {hour: 21, minute: 0}}]
}
],
followUpTimings: []
})
};

fetch('https://api.reply.io/v3/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Evening outreach',
'timezoneId' => 'Europe/London',
'excludeHolidays' => false,
'useProspectTimezone' => true,
'useFollowUpSchedule' => false,
'mainTimings' => [
[
'weekDay' => 'Monday',
'isActive' => true,
'timeRanges' => [
[
'fromTime' => [
'hour' => 18,
'minute' => 0
],
'toTime' => [
'hour' => 21,
'minute' => 0
]
]
]
]
],
'followUpTimings' => [

]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.reply.io/v3/schedules"

payload := strings.NewReader("{\n \"name\": \"Evening outreach\",\n \"timezoneId\": \"Europe/London\",\n \"excludeHolidays\": false,\n \"useProspectTimezone\": true,\n \"useFollowUpSchedule\": false,\n \"mainTimings\": [\n {\n \"weekDay\": \"Monday\",\n \"isActive\": true,\n \"timeRanges\": [\n {\n \"fromTime\": {\n \"hour\": 18,\n \"minute\": 0\n },\n \"toTime\": {\n \"hour\": 21,\n \"minute\": 0\n }\n }\n ]\n }\n ],\n \"followUpTimings\": []\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/schedules")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Evening outreach\",\n \"timezoneId\": \"Europe/London\",\n \"excludeHolidays\": false,\n \"useProspectTimezone\": true,\n \"useFollowUpSchedule\": false,\n \"mainTimings\": [\n {\n \"weekDay\": \"Monday\",\n \"isActive\": true,\n \"timeRanges\": [\n {\n \"fromTime\": {\n \"hour\": 18,\n \"minute\": 0\n },\n \"toTime\": {\n \"hour\": 21,\n \"minute\": 0\n }\n }\n ]\n }\n ],\n \"followUpTimings\": []\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.reply.io/v3/schedules")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Evening outreach\",\n \"timezoneId\": \"Europe/London\",\n \"excludeHolidays\": false,\n \"useProspectTimezone\": true,\n \"useFollowUpSchedule\": false,\n \"mainTimings\": [\n {\n \"weekDay\": \"Monday\",\n \"isActive\": true,\n \"timeRanges\": [\n {\n \"fromTime\": {\n \"hour\": 18,\n \"minute\": 0\n },\n \"toTime\": {\n \"hour\": 21,\n \"minute\": 0\n }\n }\n ]\n }\n ],\n \"followUpTimings\": []\n}"

response = http.request(request)
puts response.read_body
{
  "id": 1,
  "name": "Business hours",
  "timezoneId": "America/New_York",
  "excludeHolidays": true,
  "useProspectTimezone": false,
  "useFollowUpSchedule": false,
  "mainTimings": [
    {
      "weekDay": "Monday",
      "isActive": true,
      "timeRanges": [
        {
          "fromTime": {
            "hour": 9,
            "minute": 0
          },
          "toTime": {
            "hour": 17,
            "minute": 0
          }
        }
      ]
    }
  ],
  "followUpTimings": [],
  "isDefault": true,
  "status": "active"
}
{
"title": "Validation failed",
"status": 400,
"detail": "The request body contains validation errors.",
"errors": [
{
"pointer": "/name",
"detail": "'Name' must not be empty."
}
]
}
{
"title": "Unauthorized",
"status": 401,
"detail": "Authentication credentials are missing or invalid."
}
{
"title": "Forbidden",
"status": 403,
"detail": "Feature scopes [ManageScheduler] are denied for userId 123",
"code": "schedule.forbidden"
}
{
"title": "Conflict",
"status": 409,
"detail": "Scheduler with name 'My Schedule' already exists",
"code": "schedule.duplicateName"
}
{
"title": "Too Many Requests",
"status": 429,
"detail": "Rate limit exceeded. Retry after 60 seconds."
}

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Authorization: Bearer <your-api-key>

Get your API key from the Reply dashboard: Settings → API Key.

Body

application/json

Request body for creating a new schedule.

name
string
required

Name of the schedule

timezoneId
string
required

IANA timezone identifier (e.g., "America/New_York")

excludeHolidays
boolean

Whether to skip sending on holidays from linked calendars

useProspectTimezone
boolean

Whether to use the prospect's timezone instead of the schedule timezone

useFollowUpSchedule
boolean

Whether a separate follow-up schedule is enabled

mainTimings
ScheduleTiming · object[]

Primary schedule timings for each day of the week

followUpTimings
ScheduleTiming · object[]

Follow-up schedule timings (used when useFollowUpSchedule is true)

Response

Schedule created successfully

Full representation of a schedule with timing configuration.

id
integer
read-only

Unique identifier for the schedule

name
string

Name of the schedule

timezoneId
string

IANA timezone identifier (e.g., "America/New_York")

excludeHolidays
boolean

Whether to skip sending on holidays from linked calendars

useProspectTimezone
boolean

Whether to use the prospect's timezone instead of the schedule timezone

useFollowUpSchedule
boolean

Whether a separate follow-up schedule is enabled

mainTimings
ScheduleTiming · object[]

Primary schedule timings for each day of the week

followUpTimings
ScheduleTiming · object[]

Follow-up schedule timings (used when useFollowUpSchedule is true)

isDefault
boolean
read-only

Whether this is the default schedule

status
string
read-only

Current status of the schedule