Skip to content

Send customer notifications

Keep customers informed with transactional and marketing notifications via SMS and email using the Chime API.

Send order confirmations, payment receipts, shipping updates, and reminders to your customers by SMS or email. Chime tracks delivery status from creation through delivery. This guide shows you how to notify customers immediately or schedule messages for future delivery.

How it works

Notifications work in two phases: create the Chime with your message content and recipient details, then query delivery status when you need confirmation. Messages send immediately or at a scheduled time. Chime routes SMS to phone numbers and email to email addresses. Every Chime tracks its transmission lifecycle—from "initialized" through "sent" to "delivered" or "failed"—so you can determine whether a transmission has started and whether delivery was confirmed.

For email recipients, use an email recipient and put the plain-text body in fullMessage. Inttegro validates the sender and scans message content before delivery.

new {
  recipient = new {
    type = Inttegro.ChimeRecipientType.Email,
    email = new {
      address = "gloria@example.com",
    },
  },
  full_message = "Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.",
  transport = "email",
  sender = "YourStore",
}
{
  "recipient": {
    "type": "email",
    "email": {
      "address": "gloria@example.com"
    }
  },
  "full_message": "Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.",
  "transport": "email",
  "sender": "YourStore"
}
chime.SendParams{
  Recipient: chime.Recipient{
    Type: chime.RecipientTypeEmail,
    Email: &struct { Address string `json:"address"` }{
      Address: "gloria@example.com",
    },
  },
  FullMessage: "Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.",
  Transport: chime.TransportEmail,
  Sender: "YourStore",
}
import com.inttegro.chimes.SendChimeParams;
import com.inttegro.chimes.ChimeRecipient;
import com.inttegro.chimes.ChimeRecipientType;
import com.inttegro.chimes.Email;
import com.inttegro.chimes.ChimeTransport;

var params = SendChimeParams.builder()
  .recipient(ChimeRecipient.builder()
      .type(ChimeRecipientType.EMAIL)
      .email(Email.builder()
          .address("gloria@example.com")
          .build())
      .build())
  .fullMessage("Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.")
  .transport(ChimeTransport.EMAIL)
  .sender("YourStore")
  .build();
[
  'recipient' => [
    'type' => \Inttegro\ChimeRecipientType::Email,
    'email' => [
      'address' => 'gloria@example.com',
    ],
  ],
  'full_message' => 'Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.',
  'transport' => 'email',
  'sender' => 'YourStore',
]
inttegro.chime.SendRequest(
  recipient=inttegro.chime.InlineRecipientInputVariant2(
    type=inttegro.chime.RecipientType.EMAIL,
    email=inttegro.chime.InlineRecipientInputVariant2Email(
      address="gloria@example.com",
    ),
  ),
  full_message="Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.",
  transport="email",
  sender="YourStore",
)
{
  recipient: {
    type: Inttegro::ChimeRecipientType::EMAIL,
    email: {
      address: "gloria@example.com",
    },
  },
  full_message: "Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.",
  transport: "email",
  sender: "YourStore",
}
{
  recipient: {
    type: Inttegro.ChimeRecipientTypes.Email,
    email: {
      address: "gloria@example.com",
    },
  },
  fullMessage: "Your receipt is ready. View it at https://yourstore.example/receipts/or_7821.",
  transport: "email",
  sender: "YourStore",
}

Step 1: send a notification immediately

Send a notification right away when order status changes, payment completes, or any event requires immediate customer awareness. Call Send chime with one of two recipient shapes: use recipient.type plus the matching recipient.phone.number or recipient.email.address for an inline contact, or use recipient.transport plus recipient.customerId for a saved customer. Never combine recipient.transport with inline contact details.

Send notification

POST/chimes/send
cURLbash
curl https://api.inttegro.com/chimes/send \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "recipient": {
      "type": "phone",
      "phone": {
        "number": "+233544998605"
      },
      "name": "Gloria Kesewaa"
    },
    "full_message": "Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821",
    "sender_id": "YourStore",
    "purpose": "notification",
    "request_meta": {
      "idempotency_key": "notify_order_OR-7821_confirmed"
    },
    "custom_data": {
      "order_id": "OR-7821",
      "event": "order_confirmed",
      "customer_id": "cu_gloria_k"
    }
  }'
TypeScripttypescript
import { InttegroClient, ChimeRecipientTypes } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.chimes.send({
  recipient: {
    type: ChimeRecipientTypes.Phone,
    phone: {
      number: "+233544998605",
    },
    name: "Gloria Kesewaa",
  },
  fullMessage: "Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821",
  senderId: "YourStore",
  purpose: "notification",
  requestMeta: {
    idempotencyKey: "notify_order_OR-7821_confirmed",
  },
  customData: {
    order_id: "OR-7821",
    event: "order_confirmed",
    customer_id: "cu_gloria_k",
  },
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := chime.SendParams{
    Recipient: chime.Recipient{
      Type: chime.RecipientTypePhone,
      Phone: &struct { Number string `json:"number"` }{
        Number: "+233544998605",
      },
      Name: "Gloria Kesewaa",
    },
    FullMessage: "Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821",
    Purpose: "notification",
    RequestMeta: &request.Meta{
      IdempotencyKey: "notify_order_OR-7821_confirmed",
    },
    CustomData: func() *customdata.Data { value, err := customdata.New(map[string]string{
        "order_id": "OR-7821",
        "event": "order_confirmed",
        "customer_id": "cu_gloria_k",
      }); if err != nil { panic(err) }; return value }(),
  }
  result, err := client.Chimes.Send(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

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

result = client.chimes.send(inttegro.chime.SendRequest(
  recipient=inttegro.chime.InlineRecipientInputVariant1(
    type=inttegro.chime.RecipientType.PHONE,
    phone=inttegro.chime.InlineRecipientInputVariant1Phone(
      number="+233544998605",
    ),
    name="Gloria Kesewaa",
  ),
  full_message="Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821",
  sender_id="YourStore",
  purpose="notification",
  request_meta=inttegro.chime.SendRequestRequestMeta(
    idempotency_key="notify_order_OR-7821_confirmed",
  ),
  custom_data=inttegro.CustomData({
    "order_id": "OR-7821",
    "event": "order_confirmed",
    "customer_id": "cu_gloria_k",
  }),
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->chimes->send([
  'recipient' => [
    'type' => \Inttegro\ChimeRecipientType::Phone,
    'phone' => [
      'number' => '+233544998605',
    ],
    'name' => 'Gloria Kesewaa',
  ],
  'full_message' => 'Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821',
  'sender_id' => 'YourStore',
  'purpose' => 'notification',
  'request_meta' => new \Inttegro\Request\Meta(
    idempotencyKey: 'notify_order_OR-7821_confirmed',
  ),
  'custom_data' => [
    'order_id' => 'OR-7821',
    'event' => 'order_confirmed',
    'customer_id' => 'cu_gloria_k',
  ],
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.chimes.send(
  recipient: {
    type: Inttegro::ChimeRecipientType::PHONE,
    phone: {
      number: "+233544998605",
    },
    name: "Gloria Kesewaa",
  },
  full_message: "Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821",
  sender_id: "YourStore",
  purpose: "notification",
  request_meta: {
    idempotency_key: "notify_order_OR-7821_confirmed",
  },
  custom_data: {
    order_id: "OR-7821",
    event: "order_confirmed",
    customer_id: "cu_gloria_k",
  }
)
Javajava
import com.inttegro.Client;
import com.inttegro.chimes.SendChimeParams;
import com.inttegro.chimes.ChimeRecipient;
import com.inttegro.chimes.ChimeRecipientType;
import com.inttegro.chimes.Phone;
import com.inttegro.RequestMeta;
import com.inttegro.CustomData;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = SendChimeParams.builder()
      .recipient(ChimeRecipient.builder()
          .type(ChimeRecipientType.PHONE)
          .phone(Phone.builder()
              .number("+233544998605")
              .build())
          .name("Gloria Kesewaa")
          .build())
      .fullMessage("Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821")
      .purpose("notification")
      .requestMeta(RequestMeta.builder()
          .idempotencyKey("notify_order_OR-7821_confirmed")
          .build())
      .customData(new CustomData()
          .set("order_id", "OR-7821")
          .set("event", "order_confirmed")
          .set("customer_id", "cu_gloria_k"))
      .build();
    var result = client.chimes().send(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Chimes.SendAsync(new {
  recipient = new {
    type = Inttegro.ChimeRecipientType.Phone,
    phone = new {
      number = "+233544998605",
    },
    name = "Gloria Kesewaa",
  },
  full_message = "Your order #OR-7821 has been confirmed. Total: GHS 200.00. Expected delivery: Dec 18-20. Track here: https://pages.inttegro.com/invoices/track/OR-7821",
  sender_id = "YourStore",
  purpose = "notification",
  request_meta = new {
    idempotency_key = "notify_order_OR-7821_confirmed",
  },
  custom_data = new {
    order_id = "OR-7821",
    @event = "order_confirmed",
    customer_id = "cu_gloria_k",
  },
});

The Chime API responds immediately with a Chime ID and initial transmission status. Actual delivery happens asynchronously—SMS typically delivers within seconds, email within a minute.

Attaching metadata

Use customData to link notifications back to your internal records. Store order IDs, customer IDs, event types, or any context you need for analytics and debugging. Query Chimes later to retrieve this metadata for reconciliation or support investigations.

Step 2: check delivery status

Verify notification delivery by calling Lookup chime with the Chime ID. The response includes transmission status, delivery timestamps, and all metadata from creation.

Check delivery

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

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

const result = await inttegro.chimes.lookup({
  chimeId: "WkPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYU",
})
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.Chimes.Lookup(ctx, "WkPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYU")
  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.chimes.lookup("WkPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYU")
PHPphp
<?php

use Inttegro\Client;

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

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.chimes.lookup(chime_id: "WkPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYU")
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.chimes().lookup("WkPvqTrqGsopu07wfC7ttoWqmfwt48ZW7BGvYU");
  }
}
C#csharp
using Inttegro;

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

Status values indicate message progress: "initialized" means a transmission exists but has not been sent, "sent" means the message was handed off but delivery is not confirmed, "delivered" means delivery was confirmed, and "failed" means the transmission could not complete.

Schedule notifications for future delivery

Schedule chimes when you need notifications delivered at specific future times—subscription renewal reminders, appointment confirmations, or time-based marketing campaigns. Call Schedule chime with the message, sendAfter, and recipient objects. Inline recipients use recipients[].type plus a matching phone or email object; saved customers use recipients[].transport plus recipients[].customerId.

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" } }
    ],
    "full_message": "Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.",
    "send_after": "2030-12-15T09:00:00Z",
    "sender_id": "YourBrand",
    "purpose": "reminder"
  }'
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",
      },
    },
  ],
  fullMessage: "Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.",
  sendAfter: new Date("2030-12-15T09:00:00Z"),
  senderId: "YourBrand",
  purpose: "reminder",
})
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",
    },
    FullMessage: "Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.",
    SendAfter: mustParseTime("2030-12-15T09:00:00Z"),
    SenderID: "YourBrand",
    Purpose: "reminder",
  }
  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",
      ),
    ),
  ],
  full_message="Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.",
  send_after=datetime.fromisoformat("2030-12-15T09:00:00Z".replace("Z", "+00:00")),
  sender_id="YourBrand",
  purpose="reminder",
))
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',
      ],
    ],
  ],
  'full_message' => 'Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.',
  'send_after' => '2030-12-15T09:00:00Z',
  'sender_id' => 'YourBrand',
  'purpose' => 'reminder',
]);
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",
      },
    },
  ],
  full_message: "Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.",
  send_after: "2030-12-15T09:00:00Z",
  sender_id: "YourBrand",
  purpose: "reminder"
)
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"
        ))
      .fullMessage("Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.")
      .sendAfter(OffsetDateTime.parse("2030-12-15T09:00:00Z"))
      .senderId("YourBrand")
      .purpose("reminder")
      .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",
      },
    },
  },
  full_message = "Reminder: Your subscription renews in 3 days on Dec 18. Update payment details at https://pages.inttegro.com/invoices/billing or contact support.",
  send_after = "2030-12-15T09:00:00Z",
  sender_id = "YourBrand",
  purpose = "reminder",
});

Scheduled Chimes deliver at or shortly after the specified time. Inttegro resolves every saved customer and validates every inline phone number or email address before accepting the schedule. A malformed or unresolved recipient rejects the request; later transmission failures remain isolated to the affected recipient.

Crafting effective notifications

Front-load critical information

Put order numbers, amounts, dates, or urgency first. “Order #OR-7821 shipped. Arrives Dec 18-20” beats “We’re excited to inform you that your recent order has been shipped and should arrive soon.”

Always provide next steps: order tracking URLs, payment confirmation pages, or support contact forms. Make URLs meaningful so customers know where they are going before they click.

Keep SMS under 160 characters

SMS charges per 160-character segment. Long messages split across multiple texts and confuse recipients. If you need more space, use email instead or shorten the message and link to details.

Next steps

  • Chime API Reference — Complete endpoint documentation and response formats
  • Product: Chime — Deep dive into Chime features and use cases
  • OTP API — Send verification codes for authentication flows
  • Orders — Trigger notifications from order events

Type to search…

↑↓ navigate↵ selectEsc close