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

# Get Scheduled Executions

GET https://api.signalcore.ai/api/v1/execute/scheduled

Retrieve all scheduled executions for your business. Filter by lead, appointment, category, or time range.

Reference: https://docs.signalcore.ai/api-reference/scheduled/get-scheduled-executions

## Authentication

- `X-API-Key` header (required) — Your API key from [Dashboard → Settings → API Keys](https://dashboard.signalcore.ai/settings)

## Servers

- `https://api.signalcore.ai/api/v1` (Producción, default)
- `https://staging.api.signalcore.ai/api/v1` (Staging)

## Request

### Query parameters

- `lead_id` (string, optional) — Filter by lead ID
- `appointment_id` (string, optional) — Filter by appointment ID (from execution_context)
- `category` (enum, optional) — Filter by execution category
  - Allowed values: `appointment_reminder`, `no_show_sequence`, `follow_up`
- `time_filter` (enum, optional, default: all) — Filter by creation time
  - Allowed values: `all`, `24h`, `7d`, `30d`

## Response

### 200

List of scheduled executions

- `scheduled_executions` (list of ScheduledExecution, optional)
- `total_count` (integer, optional)
- `business_id` (string, optional)

## Types

### ScheduledExecution

A scheduled execution waiting to run

- `execution_id` (string, optional) — Unique execution identifier (same as thread_id)
- `thread_id` (string, optional)
- `lead_id` (string, optional)
- `agent_id` (string, optional)
- `channel` (enum, optional)
  - Allowed values: `voice`, `sms`, `whatsapp`, `instagram`, `gmail`, `outlook`, `imessage`, `linkedin`
- `schedule_for` (datetime, optional) — Scheduled execution time
- `dynamic_instructions` (string, optional)
- `from_number` (string, optional)
- `execution_context` (ScheduledExecutionExecutionContext, optional)
- `created_at` (double, optional) — Unix timestamp when scheduled

### ScheduledExecutionExecutionContext

- `appointment_id` (string, optional)
- `category` (enum, optional)
  - Allowed values: `appointment_reminder`, `no_show_sequence`, `follow_up`

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "scheduled_executions": [
    {
      "execution_id": "a3f9c8d2-4b7e-4f1a-9c3d-2e5b7f8a9d12",
      "thread_id": "a3f9c8d2-4b7e-4f1a-9c3d-2e5b7f8a9d12",
      "lead_id": "lead_987654321",
      "agent_id": "agent_123456789",
      "channel": "voice",
      "schedule_for": "2024-01-15T09:30:00Z",
      "dynamic_instructions": "Call the lead to confirm appointment and offer rescheduling options if needed.",
      "from_number": "+14155552671",
      "execution_context": {
        "appointment_id": "appt_20240115_0930",
        "category": "appointment_reminder"
      },
      "created_at": 1705255800
    }
  ],
  "total_count": 1,
  "business_id": "business_abc123xyz"
}
```

**SDK Code**

```python
import requests

url = "https://api.signalcore.ai/api/v1/execute/scheduled"

payload = {}
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.signalcore.ai/api/v1/execute/scheduled';
const options = {
  method: 'GET',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

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

```go
package main

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

func main() {

	url := "https://api.signalcore.ai/api/v1/execute/scheduled"

	payload := strings.NewReader("{}")

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

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

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

url = URI("https://api.signalcore.ai/api/v1/execute/scheduled")

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

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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

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

HttpResponse<String> response = Unirest.get("https://api.signalcore.ai/api/v1/execute/scheduled")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.signalcore.ai/api/v1/execute/scheduled', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.signalcore.ai/api/v1/execute/scheduled");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.signalcore.ai/api/v1/execute/scheduled")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```