> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# List Scheduled Reports

GET https://api.salaryboxapp.com/v2/customer/v1/report/scheduled

Returns the reports your company has scheduled to be emailed every day, newest first. An Admin sees all of them; anyone else sees only the ones they set up. Schedule one with Add Scheduled Report and change or pause one with Update Scheduled Report. Deleting is not available through the API; use the SalaryBox app.

- `branches` and `departments` are names. `null` means all branches or all departments.
- `time_slot` is `12 PM IST`, `4 PM IST`, `8 PM IST` or `12 AM IST`.
- `recipient_emails` has up to 5 addresses.
- Needs the Attendance Reports plan feature: otherwise `403` with the upgrade message.


Reference: https://docs.salarybox.in/api-reference/attendance/report-scheduled-retrieve

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Request

### Query parameters

- `page` (integer, optional) — Page number, starting at 1.
- `page_size` (integer, optional) — Results per page. Default and maximum 500.

## Response

### 200

- `data` (list of ScheduledReportItem, required)
- `message` (string, required)
- `status` (boolean, required)
- `count` (integer, required)
- `prev` (string, required, nullable)
- `next` (string, required, nullable)

## Errors

### 403 Forbidden Error

The plan lacks Attendance Reports.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

## Types

### ScheduledReportItem

- `report` (enum, required)
  - Allowed values: `Daily Attendance Report`, `Shift Wise Daily Attendance Report`
- `file_type` (enum, required)
  - Allowed values: `PDF`, `XLSX`
- `branches` (list of string, required, nullable) — Branch names. `null` means all branches.
- `departments` (list of string, required, nullable) — Department names. `null` means all departments.
- `time_slot` (enum, required) — When the report is emailed each day.
  - Allowed values: `12 PM IST`, `4 PM IST`, `8 PM IST`, `12 AM IST`
- `recipient_emails` (list of string, required) — Up to 5 email addresses.
- `is_active` (boolean, required)
- `created_by` (string, required, nullable) — Name of the person who set the report up.
- `created_on` (datetime, required)
- `updated_on` (datetime, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "report": "Daily Attendance Report",
      "file_type": "PDF",
      "branches": null,
      "departments": [
        "Sales"
      ],
      "time_slot": "8 PM IST",
      "recipient_emails": [
        "hr@example.com"
      ],
      "is_active": true,
      "created_by": "Asha Mehta",
      "created_on": "2026-10-01T09:30:00.123456Z",
      "updated_on": "2026-10-01T09:30:00.123456Z"
    }
  ],
  "message": "Success",
  "status": true,
  "count": 1,
  "prev": null,
  "next": null
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/report/scheduled"

headers = {"Authorization": "Api-Key  <apiKey>"}

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

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/report/scheduled';
const options = {method: 'GET', headers: {Authorization: 'Api-Key  <apiKey>'}};

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

```go Example
package main

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

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/report/scheduled"

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

	req.Header.Add("Authorization", "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 Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/report/scheduled")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

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

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

HttpResponse<String> response = Unirest.get("https://api.salaryboxapp.com/v2/customer/v1/report/scheduled")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.salaryboxapp.com/v2/customer/v1/report/scheduled', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

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

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/report/scheduled");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/report/scheduled")! 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()
```