> ## 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 CRM Meetings

GET https://api.salaryboxapp.com/v2/customer/v1/crm/meetings

Returns the customer meetings staff logged in Field Force CRM, grouped by staff member, for up to 31 days. Requires the Field Force CRM add-on.

One row per staff member, active or inactive, ordered by `salarybox_id`; staff with nothing in the range are still listed. Each row has `total_meetings`, `total_meeting_duration_minutes` and `meetings`, oldest first. A meeting is included by its `date`.

Times are date-times with offset in the time zone the meeting was logged in (`timezone`), or your company's time zone if none was recorded. Attachments are not returned; `attachment_count` gives their number.


Reference: https://docs.salarybox.in/api-reference/crm/meetings-retrieve

## Authentication

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

## Request

### Query parameters

- `start_date` (date, required) — First day, `YYYY-MM-DD`.
- `end_date` (date, required) — Last day, `YYYY-MM-DD`. The range can cover at most 31 days.
- `salarybox_ids` (list of string, optional) — Repeatable, at most 10. Limits the result to these staff members.
- `page` (integer, optional) — Page number, starting at 1.
- `page_size` (integer, optional, default: 25) — Results per page. Default and maximum 25.

## Response

### 200

One row per staff member, with their meetings in the date range, oldest start time first.

- `data` (list of CrmEmployeeMeetings, required) — One row per staff member on this page.
- `message` (string, optional)
- `status` (boolean, optional)
- `count` (integer, optional) — Total number of results across all pages.
- `prev` (string, optional, nullable) — URL of the previous page, or null.
- `next` (string, optional, nullable) — URL of the next page, or null.
- `rate_limit` (list of string, optional) — What is left in each rate-limit window, for example `29/30 requests remaining per 5 minutes`.

## Errors

### 400 Bad Request Error

A date is missing or malformed, `end_date` is before `start_date`, the range is longer than 31 days, or more than 10 `salarybox_ids` were given.

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

### 403 Forbidden Error

The Field Force CRM add-on is not enabled.

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

### 429 Too Many Requests Error

A rate limit was exceeded (1 request per 2 seconds, 30 per 5 minutes, 100 per hour, or the shared 5000 per day). The response says how many seconds to wait.

- `any`

## Types

### CrmEmployeeMeetings

One staff member and their meetings in the date range.

- `salarybox_id` (string, required) — SalaryBox ID of the staff member.
- `employee_name` (string, required) — Full name of the staff member.
- `total_meetings` (integer, required) — Number of meetings in the range. 0 if none.
- `total_meeting_duration_minutes` (integer, required) — Sum of the durations of the meetings in the range, in minutes. 0 if none.
- `meetings` (list of CrmMeeting, required) — The staff member's meetings in the range, oldest `start_time` first. Empty if none.

### CrmMeeting

- `customer_name` (string, required) — Name of the customer met.
- `date` (date, required) — Date of the meeting. The date filter applies to this field.
- `start_time` (datetime, required, nullable) — When the meeting started, ISO 8601 with a UTC offset, in the meeting's `timezone`. `null` if not recorded.
- `end_time` (datetime, required, nullable) — When the meeting ended, same format as `start_time`. `null` if not recorded (for example the meeting was never ended).
- `timezone` (string, required) — IANA name of the time zone the meeting was logged in, falling back to the company time zone when none was recorded. `start_time` and `end_time` are expressed in it.
- `duration_minutes` (integer, required, nullable) — Length of the meeting in minutes. 0 or `null` when no duration was recorded.
- `notes` (string, required, nullable) — Notes the staff member wrote about the meeting.
- `address` (string, required, nullable) — Address where the meeting was logged.
- `latitude` (string, required, nullable) — Latitude where the meeting was logged, as a decimal string. `null` if not captured.
- `longitude` (string, required, nullable) — Longitude where the meeting was logged, as a decimal string. `null` if not captured.
- `attachment_count` (integer, required) — Number of files attached to the meeting. The attachments themselves, and links to them, are not returned.

## Examples

**Response**

```json
{
  "data": [
    {
      "salarybox_id": "SBK7Q2M9TX",
      "employee_name": "Aarav Sharma",
      "total_meetings": 2,
      "total_meeting_duration_minutes": 75,
      "meetings": [
        {
          "customer_name": "Sharma Traders",
          "date": "2026-10-27",
          "start_time": "2026-10-27T11:00:00+05:30",
          "end_time": "2026-10-27T11:30:00+05:30",
          "timezone": "Asia/Kolkata",
          "duration_minutes": 30,
          "notes": "Intro call and catalogue walkthrough",
          "address": "Indiranagar, Bengaluru, Karnataka 560038",
          "latitude": "12.97840000",
          "longitude": "77.64080000",
          "attachment_count": 0
        },
        {
          "customer_name": "Sharma Traders",
          "date": "2026-10-28",
          "start_time": "2026-10-28T15:00:00+05:30",
          "end_time": "2026-10-28T15:45:00+05:30",
          "timezone": "Asia/Kolkata",
          "duration_minutes": 45,
          "notes": "Discussed bulk order for November",
          "address": "MG Road, Bengaluru, Karnataka 560001",
          "latitude": "12.97159900",
          "longitude": "77.59456600",
          "attachment_count": 2
        }
      ]
    },
    {
      "salarybox_id": "SBK3H8D1LP",
      "employee_name": "Priya Nair",
      "total_meetings": 0,
      "total_meeting_duration_minutes": 0,
      "meetings": []
    }
  ],
  "message": "Success",
  "status": true,
  "count": 2,
  "prev": null,
  "next": null,
  "rate_limit": [
    "0/1 requests remaining per 2 seconds",
    "29/30 requests remaining per 5 minutes",
    "99/100 requests remaining per 1 hour"
  ]
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/crm/meetings"

querystring = {"end_date":"2026-10-31","start_date":"2026-10-01"}

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

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

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/crm/meetings?end_date=2026-10-31&start_date=2026-10-01';
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/crm/meetings?end_date=2026-10-31&start_date=2026-10-01"

	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/crm/meetings?end_date=2026-10-31&start_date=2026-10-01")

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/crm/meetings?end_date=2026-10-31&start_date=2026-10-01")
  .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/crm/meetings?end_date=2026-10-31&start_date=2026-10-01', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

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

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/crm/meetings?end_date=2026-10-31&start_date=2026-10-01");
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/crm/meetings?end_date=2026-10-31&start_date=2026-10-01")! 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()
```