Skip to content

Send scheduled notifications

Schedule notifications to multiple customers for future delivery using the Chime scheduling API.

Schedule notifications to reach customers at specific future times—subscription renewal reminders, appointment confirmations, promotional campaigns, or payment due dates. Send to one recipient or broadcast to thousands with a single API call. Messages deliver at or shortly after the scheduled time without requiring you to maintain background workers or cron jobs.

How scheduling works

Scheduled Chimes become eligible for delivery at a future timestamp you specify. One schedule can reach one or many recipients. The API resolves saved customers and validates every inline phone number or email address before accepting the request. A malformed or unresolved recipient rejects the entire schedule; later transmission failures remain isolated to the affected recipient.

Recipients receive messages through SMS or email. Inline recipients use recipients[].type plus a matching recipients[].phone.number or recipients[].email.address; saved-customer recipients use recipients[].transport plus recipients[].customerId. All recipients in a single schedule must resolve to the same transport, so create separate schedules when a campaign needs both SMS and email delivery.

Put the message body in fullMessage and keep every recipient on the same transport. Create separate schedules when a campaign needs both SMS and email delivery. Email content is safety-scanned before the schedule is accepted.

new {
  recipients = new[] {
    "gloria@example.com",
  },
  full_message = "Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.",
  send_after = "2030-12-17T09:00:00Z",
  sender_id = "YourStore",
  purpose = "subscription_reminder",
}
{
  "recipients": [
    "gloria@example.com"
  ],
  "full_message": "Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.",
  "send_after": "2030-12-17T09:00:00Z",
  "sender_id": "YourStore",
  "purpose": "subscription_reminder"
}
chime.ScheduleParams{
  Recipients: []string{
    "gloria@example.com",
  },
  FullMessage: "Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.",
  SendAfter: mustParseTime("2030-12-17T09:00:00Z"),
  SenderID: "YourStore",
  Purpose: "subscription_reminder",
}
import com.inttegro.chimes.ScheduleChimeParams;
import java.util.List;
import java.time.OffsetDateTime;

var params = ScheduleChimeParams.builder()
  .recipients(List.of(
      "gloria@example.com"
    ))
  .fullMessage("Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.")
  .sendAfter(OffsetDateTime.parse("2030-12-17T09:00:00Z"))
  .senderId("YourStore")
  .purpose("subscription_reminder")
  .build();
[
  'recipients' => [
    'gloria@example.com',
  ],
  'full_message' => 'Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.',
  'send_after' => '2030-12-17T09:00:00Z',
  'sender_id' => 'YourStore',
  'purpose' => 'subscription_reminder',
]
inttegro.schedule.ChimeRequest(
  recipients=[
    inttegro.chime.InlineRecipientInputVariant1(),
  ],
  full_message="Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.",
  send_after=datetime.fromisoformat("2030-12-17T09:00:00Z".replace("Z", "+00:00")),
  sender_id="YourStore",
  purpose="subscription_reminder",
)
{
  recipients: [
    "gloria@example.com",
  ],
  full_message: "Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.",
  send_after: "2030-12-17T09:00:00Z",
  sender_id: "YourStore",
  purpose: "subscription_reminder",
}
{
  recipients: [
    "gloria@example.com",
  ],
  fullMessage: "Your subscription renews tomorrow. Update billing at https://yourstore.example/billing.",
  sendAfter: new Date("2030-12-17T09:00:00Z"),
  senderId: "YourStore",
  purpose: "subscription_reminder",
}

Schedule a notification

Call Schedule Chimes with your message content, recipient list, and delivery timestamp. The API returns a schedule ID immediately—actual delivery happens at the specified time.

Schedule notification

POST/chimes/schedule
cURLbash
curl https://api.inttegro.com/chimes/schedule \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "recipients": [
      { "type": "phone", "phone": { "number": "+233544998605" } },
      { "type": "phone", "phone": { "number": "+233501234567" } },
      { "type": "phone", "phone": { "number": "+233208765432" } }
    ],
    "full_message": "Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.",
    "send_after": "2030-12-17T09:00:00Z",
    "sender_id": "YourBrand",
    "purpose": "subscription_reminder",
    "request_meta": {
      "idempotency_key": "sched_renewal_batch_dec_2025"
    }
  }'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.chimes.schedule({
  recipients: [
    {
      type: "phone",
      phone: {
        number: "+233544998605",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233501234567",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233208765432",
      },
    },
  ],
  fullMessage: "Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.",
  sendAfter: new Date("2030-12-17T09:00:00Z"),
  senderId: "YourBrand",
  purpose: "subscription_reminder",
  requestMeta: {
    idempotencyKey: "sched_renewal_batch_dec_2025",
  },
})
Gogo
package main

import (
  "context"
  "log"
  "os"
  "time"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/chime"
  "github.com/inttegro/inttegro-sdk-go/v14/request"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := chime.ScheduleParams{
    Recipients: []string{
      "+233544998605",
      "+233501234567",
      "+233208765432",
    },
    FullMessage: "Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.",
    SendAfter: mustParseTime("2030-12-17T09:00:00Z"),
    SenderID: "YourBrand",
    Purpose: "subscription_reminder",
    RequestMeta: &request.Meta{
      IdempotencyKey: "sched_renewal_batch_dec_2025",
    },
  }
  result, err := client.Chimes.Schedule(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}

func mustParseTime(value string) *time.Time {
  parsed, err := time.Parse(time.RFC3339, value)
  if err != nil {
    panic(err)
  }
  return &parsed
}
Pythonpython
import os
from datetime import datetime

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.chimes.schedule(inttegro.schedule.ChimeRequest(
  recipients=[
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233544998605",
      ),
    ),
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233501234567",
      ),
    ),
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233208765432",
      ),
    ),
  ],
  full_message="Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.",
  send_after=datetime.fromisoformat("2030-12-17T09:00:00Z".replace("Z", "+00:00")),
  sender_id="YourBrand",
  purpose="subscription_reminder",
  request_meta=inttegro.schedule.ChimeRequestRequestMeta(
    idempotency_key="sched_renewal_batch_dec_2025",
  ),
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->chimes->schedule([
  'recipients' => [
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233544998605',
      ],
    ],
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233501234567',
      ],
    ],
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233208765432',
      ],
    ],
  ],
  'full_message' => 'Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.',
  'send_after' => '2030-12-17T09:00:00Z',
  'sender_id' => 'YourBrand',
  'purpose' => 'subscription_reminder',
  'request_meta' => new \Inttegro\Request\Meta(
    idempotencyKey: 'sched_renewal_batch_dec_2025',
  ),
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.chimes.schedule(
  recipients: [
    {
      type: "phone",
      phone: {
        number: "+233544998605",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233501234567",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233208765432",
      },
    },
  ],
  full_message: "Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.",
  send_after: "2030-12-17T09:00:00Z",
  sender_id: "YourBrand",
  purpose: "subscription_reminder",
  request_meta: {
    idempotency_key: "sched_renewal_batch_dec_2025",
  }
)
Javajava
import com.inttegro.Client;
import com.inttegro.chimes.ScheduleChimeParams;
import java.util.List;
import java.time.OffsetDateTime;
import com.inttegro.RequestMeta;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = ScheduleChimeParams.builder()
      .recipients(List.of(
          "+233544998605",
          "+233501234567",
          "+233208765432"
        ))
      .fullMessage("Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.")
      .sendAfter(OffsetDateTime.parse("2030-12-17T09:00:00Z"))
      .senderId("YourBrand")
      .purpose("subscription_reminder")
      .requestMeta(RequestMeta.builder()
          .idempotencyKey("sched_renewal_batch_dec_2025")
          .build())
      .build();
    var result = client.chimes().schedule(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Chimes.ScheduleAsync(new {
  recipients = new[] {
    new {
      type = "phone",
      phone = new {
        number = "+233544998605",
      },
    },
    new {
      type = "phone",
      phone = new {
        number = "+233501234567",
      },
    },
    new {
      type = "phone",
      phone = new {
        number = "+233208765432",
      },
    },
  },
  full_message = "Reminder: Your subscription renews tomorrow on Dec 18. Update payment method at https://pages.inttegro.com/invoices/billing if needed or contact support.",
  send_after = "2030-12-17T09:00:00Z",
  sender_id = "YourBrand",
  purpose = "subscription_reminder",
  request_meta = new {
    idempotency_key = "sched_renewal_batch_dec_2025",
  },
});

The response confirms your schedule with an ID, recipient count, send time, and creation timestamp. Store the schedule ID if you need to track delivery later or reconcile sent messages with your records.

Recipient validation

Inttegro resolves and validates every recipient during request processing. Inline phone and email contacts must be well formed, while saved-customer references must exist and contain a valid contact for the selected transport. If any recipient fails these checks, correct the recipient and submit the schedule again.

Acceptance does not guarantee later delivery. After execution, transmission failures are recorded per recipient and do not change whether the other accepted recipients can be sent.

Delivery timing

sendAfter controls when a schedule becomes eligible to execute; it is not a delivery-time guarantee. Allow for processing and network delays, and do not rely on sub-minute precision.

If you need immediate delivery, send a Chime instead. For time-critical notifications like password resets or purchase confirmations, send immediately rather than scheduling.

Broadcast to many recipients

Schedule one message to thousands of recipients with a single API call. Each recipient receives an individual Chime—no shared message threads or group texts. Track each delivery independently through the Chime API.

Broadcast campaign

POST/chimes/schedule
cURLbash
curl https://api.inttegro.com/chimes/schedule \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "recipients": [
      { "type": "phone", "phone": { "number": "+233544998605" } },
      { "type": "phone", "phone": { "number": "+233501234567" } },
      { "type": "phone", "phone": { "number": "+233208765432" } },
      { "type": "phone", "phone": { "number": "+233277654321" } },
      { "type": "phone", "phone": { "number": "+233248888888" } }
    ],
    "full_message": "Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30",
    "send_after": "2030-12-17T08:00:00Z",
    "sender_id": "ShopBrand",
    "purpose": "marketing_campaign"
  }'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.chimes.schedule({
  recipients: [
    {
      type: "phone",
      phone: {
        number: "+233544998605",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233501234567",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233208765432",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233277654321",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233248888888",
      },
    },
  ],
  fullMessage: "Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30",
  sendAfter: new Date("2030-12-17T08:00:00Z"),
  senderId: "ShopBrand",
  purpose: "marketing_campaign",
})
Gogo
package main

import (
  "context"
  "log"
  "os"
  "time"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/chime"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := chime.ScheduleParams{
    Recipients: []string{
      "+233544998605",
      "+233501234567",
      "+233208765432",
      "+233277654321",
      "+233248888888",
    },
    FullMessage: "Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30",
    SendAfter: mustParseTime("2030-12-17T08:00:00Z"),
    SenderID: "ShopBrand",
    Purpose: "marketing_campaign",
  }
  result, err := client.Chimes.Schedule(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}

func mustParseTime(value string) *time.Time {
  parsed, err := time.Parse(time.RFC3339, value)
  if err != nil {
    panic(err)
  }
  return &parsed
}
Pythonpython
import os
from datetime import datetime

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.chimes.schedule(inttegro.schedule.ChimeRequest(
  recipients=[
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233544998605",
      ),
    ),
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233501234567",
      ),
    ),
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233208765432",
      ),
    ),
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233277654321",
      ),
    ),
    inttegro.chime.InlineRecipientInputVariant1(
      type="phone",
      phone=inttegro.chime.InlineRecipientInputVariant1Phone(
        number="+233248888888",
      ),
    ),
  ],
  full_message="Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30",
  send_after=datetime.fromisoformat("2030-12-17T08:00:00Z".replace("Z", "+00:00")),
  sender_id="ShopBrand",
  purpose="marketing_campaign",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->chimes->schedule([
  'recipients' => [
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233544998605',
      ],
    ],
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233501234567',
      ],
    ],
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233208765432',
      ],
    ],
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233277654321',
      ],
    ],
    [
      'type' => 'phone',
      'phone' => [
        'number' => '+233248888888',
      ],
    ],
  ],
  'full_message' => 'Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30',
  'send_after' => '2030-12-17T08:00:00Z',
  'sender_id' => 'ShopBrand',
  'purpose' => 'marketing_campaign',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.chimes.schedule(
  recipients: [
    {
      type: "phone",
      phone: {
        number: "+233544998605",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233501234567",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233208765432",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233277654321",
      },
    },
    {
      type: "phone",
      phone: {
        number: "+233248888888",
      },
    },
  ],
  full_message: "Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30",
  send_after: "2030-12-17T08:00:00Z",
  sender_id: "ShopBrand",
  purpose: "marketing_campaign"
)
Javajava
import com.inttegro.Client;
import com.inttegro.chimes.ScheduleChimeParams;
import java.util.List;
import java.time.OffsetDateTime;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = ScheduleChimeParams.builder()
      .recipients(List.of(
          "+233544998605",
          "+233501234567",
          "+233208765432",
          "+233277654321",
          "+233248888888"
        ))
      .fullMessage("Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30")
      .sendAfter(OffsetDateTime.parse("2030-12-17T08:00:00Z"))
      .senderId("ShopBrand")
      .purpose("marketing_campaign")
      .build();
    var result = client.chimes().schedule(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Chimes.ScheduleAsync(new {
  recipients = new[] {
    new {
      type = "phone",
      phone = new {
        number = "+233544998605",
      },
    },
    new {
      type = "phone",
      phone = new {
        number = "+233501234567",
      },
    },
    new {
      type = "phone",
      phone = new {
        number = "+233208765432",
      },
    },
    new {
      type = "phone",
      phone = new {
        number = "+233277654321",
      },
    },
    new {
      type = "phone",
      phone = new {
        number = "+233248888888",
      },
    },
  },
  full_message = "Flash Sale! 30% off all items today only. Shop now: https://shop.example.com/sale Use code: FLASH30",
  send_after = "2030-12-17T08:00:00Z",
  sender_id = "ShopBrand",
  purpose = "marketing_campaign",
});

The API currently enforces that recipients contains at least one item but does not publish a fixed maximum. Apply your own bounded batch size and monitor each schedule independently.

Managing scheduled notifications

Tracking execution and delivery

Check schedule status, view delivered message IDs, and identify failed recipients using POST /schedules/lookup. Returns the schedule details plus IDs of all created Chimes after execution. The errors array includes failure reasons for any recipients that didn’t receive messages.

Track schedule status

POST/schedules/lookup
cURLbash
curl https://api.inttegro.com/schedules/lookup \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "schedule_id": "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk"
  }'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.schedules.lookup({
  scheduleId: "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.Schedules.Lookup(ctx, "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.schedules.lookup("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->schedules->lookup("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.schedules.lookup(schedule_id: "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.schedules().lookup("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Schedules.LookupAsync("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk");

Before execution, executedAt is absent and chimeIds may be omitted. After execution, chimeIds, when present, contains IDs of successfully created Chimes. Use Lookup a Chime with these IDs to check individual delivery status and transmission details. The optional errors array lists per-recipient execution failures.

Use this to debug broadcast campaigns: if 485 out of 500 messages delivered, the errors array tells you exactly which 15 recipients failed and why. Correct the invalid addresses and create a new schedule for just those recipients.

Canceling pending schedules

Cancel schedules before execution using POST /schedules/cancel. Prevents delivery if called before sendAfter time. Returns an error if the schedule already executed or was previously canceled.

Cancel schedule

POST/schedules/cancel
cURLbash
curl https://api.inttegro.com/schedules/cancel \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: cancel-schedule-kPvqTrqGsopu07wf" \
  -d '{
    "schedule_id": "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk"
  }'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.schedules.cancel({
  scheduleId: "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.Schedules.Cancel(ctx, "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.schedules.cancel("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->schedules->cancel("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.schedules.cancel(schedule_id: "sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.schedules().cancel("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Schedules.CancelAsync("sch_kPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYUWk");

Common cancellation scenarios: customer opts out of marketing before campaign sends, you discover an error in the message content, or a scheduled event gets postponed. Cancel the original schedule and create a new one with corrected details.

Cancellation only works on pending schedules. Repeating a new cancellation after the schedule is canceled returns an error.

Next steps

Type to search…

↑↓ navigate↵ selectEsc close