# Schedule message

> Send a message later.

Source: https://docs.mycrmsim.com/docs/messages/schedule-message

```http
POST https://backend.mysmsgateway.app/api/v1/ext/messages/scheduled
```

- Category: myCRMSIM Messages / Messages
- Auth: Bearer access token
- Scope: `messages.write`
- Limits: 30 messages / 15 min per workspace (counts with Send message)  ·  1 attachment per message

Same recipient and channel rules as Send message. `send_at` is an ISO 8601 time at least **1 minute** and at most **1 year** ahead. The message goes out within a minute of `send_at`; credits, DND, routing and the device are checked then, not now — a message that cannot be sent at that time ends as `failed` with the reason in `error`.

An `effect` works as on Send message; the iMessage and Advanced Mode checks are made when you schedule it.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | body | number | yes | The workspace to send from. Example: `7` |
| `contact_id` | body | number | no | The contact. Or send `phone` / `email`. Example: `1234` |
| `phone` | body | string | no | Recipient number with country code. |
| `email` | body | string | no | An Apple ID email (iMessage only). |
| `message` | body | string | no | The text. Required unless an attachment is sent. |
| `attachments` | body | string (URL) | no | One public file URL. |
| `channel` | body | enum | no | As for Send message; omit to use Message Routing. One of: `default`, `whatsapp`, `imessage`, `rcs`. |
| `send_at` | body | string (ISO 8601) | yes | When to send, UTC. Example: `2026-10-28T23:00:00Z` |
| `effect` | body | enum | no | An iMessage send effect. Screen effects: `confetti`, `fireworks`, `balloons`, `hearts`, `lasers`, `shooting_star`, `sparkles`, `echo`, `spotlight`. Bubble effects: `slam`, `loud`, `gentle`, `invisible_ink`. iMessage only, needs `message` text and a Mac in Advanced Mode on the workspace — see the description. One of: `confetti`, `fireworks`, `balloons`, `hearts`, `lasers`, `shooting_star`, `sparkles`, `echo`, `spotlight`, `slam`, `loud`, `gentle`, `invisible_ink`. Example: `confetti` |

## Request body

```json
{
  "workspace_id": 7,
  "contact_id": 1234,
  "message": "Reminder: your appointment is tomorrow at 10am.",
  "send_at": "2026-10-28T23:00:00Z"
}
```

## Response 201

Scheduled

```json
{
  "success": true,
  "message": "Message scheduled",
  "data": {
    "id": 912,
    "workspace_id": 7,
    "contact_id": 1234,
    "to": "+61412345678",
    "message": "Reminder: your appointment is tomorrow at 10am.",
    "effect": null,
    "reaction": null,
    "attachments": [],
    "channel": null,
    "send_at": "2026-10-28T23:00:00.000Z",
    "status": "pending",
    "sent_message_id": null,
    "error": null,
    "created_at": "2026-10-27T09:20:00.000Z"
  }
}
```

## Response 400

Bad time, no recipient, or no text

```json
{
  "success": false,
  "message": "Pick a time at least a minute from now"
}
```

## Response 400

Effect — not iMessage

```json
{
  "success": false,
  "message": "Effects are iMessage only: send channel imessage (or leave channel out)."
}
```

## Response 400

Effect — no Mac with Advanced Mode on the workspace

```json
{
  "success": false,
  "code": "NO_ADVANCED_MODE_MAC",
  "message": "No Mac with Advanced Mode is connected to this workspace. Send effects need a Mac with Advanced Mode on."
}
```

## Response 400

Effect — unknown name, or no message text

```json
{
  "success": false,
  "message": "effect must be one of: confetti, fireworks, balloons, hearts, lasers, shooting_star, sparkles, echo, spotlight, slam, loud, gentle, invisible_ink"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope: one of messages.send, messages.write. This integration was granted: …"
}
```

## Response 404

Contact does not exist or is not owned by the installer (same response for both)

```json
{
  "success": false,
  "message": "Contact not found or not accessible to this token"
}
```

## Response 429

Workspace send limit reached

```json
{
  "success": false,
  "message": "Too many queued messages for this workspace"
}
```
