> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.youratlas.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.youratlas.com/_mcp/server.

# List scheduled messages

GET https://api.youratlas.com/v1/api/campaign-chat/{campaignId}/scheduled-messages

Lists every message in a campaign that is waiting to be sent, sorted by scheduled date (soonest first). Use the `messageId` and `sessionId` of each entry to cancel it with [Cancel scheduled messages](/api-reference/atlas-api/campaign-chat/cancel-scheduled-messages). Returns `400` if the campaign does not exist on your account.

Reference: https://docs.youratlas.com/api-reference/atlas-api/campaign-chat/get-scheduled-messages

## Authentication

- `api-key` header (required) — Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

## Request

### Path parameters

- `campaignId` (string, required)

## Response

### 200

Messages waiting to be sent

- `messages` (list of CampaignChatCampaignIdScheduledMessagesGetResponsesContentApplicationJsonSchemaMessagesItems, optional)

## Errors

### 400 Bad Request Error

Bad request

- `error` (ErrorError, optional)

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### CampaignChatCampaignIdScheduledMessagesGetResponsesContentApplicationJsonSchemaMessagesItems

- `messageId` (string, optional) — The message ID.
- `sessionId` (string, optional) — The conversation the message belongs to.
- `contactIdentifier` (string, optional) — Contact phone number or Apple ID email.
- `scheduledDate` (datetime, optional) — When the message is scheduled to be sent.
- `preview` (string, optional) — The start of the message text.
- `kind` (enum, optional) — Why the message is waiting to be sent.
  - Allowed values: `first-message`, `follow-up`, `retry`, `scheduled`, `reply`

### ErrorError

- `message` (string, optional)
- `code` (string, optional)
- `requestId` (string, optional)

## Examples

**Response**

```json
{
  "messages": [
    {
      "messageId": "0000000000001",
      "sessionId": "a1b2c3d4",
      "contactIdentifier": "+15551234567",
      "scheduledDate": "2026-10-27T15:00:00Z",
      "preview": "Hi Sam, just following up on your quote...",
      "kind": "follow-up"
    }
  ]
}
```

**SDK Code**

```python Campaign Chat_getScheduledMessages_example
import requests

url = "https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages"

headers = {"api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Campaign Chat_getScheduledMessages_example
const url = 'https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages';
const options = {method: 'GET', headers: {'api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Campaign Chat_getScheduledMessages_example
package main

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

func main() {

	url := "https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("api-key", "<apiKey>")

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

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

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Campaign Chat_getScheduledMessages_example
require 'uri'
require 'net/http'

url = URI("https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages")

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

request = Net::HTTP::Get.new(url)
request["api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Campaign Chat_getScheduledMessages_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages")
  .header("api-key", "<apiKey>")
  .asString();
```

```php Campaign Chat_getScheduledMessages_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages', [
  'headers' => [
    'api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Campaign Chat_getScheduledMessages_example
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Campaign Chat_getScheduledMessages_example
import Foundation

let headers = ["api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.youratlas.com/v1/api/campaign-chat/campaignId/scheduled-messages")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```