> For the complete documentation index, see [llms.txt](https://docs.sonoransoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonoransoftware.com/cad/api-integration/push-events/tone-played.md).

# Tone Played

### EVENT\_TONE

```javascript
{
  "key": "YOUR_API_KEY", // Authenticate legitimate event traffic
  "type": "EVENT_TONE",
  "data": {
    "url": "https://s3.sonoransoftware.com/someTone.mp3",
    "playTonesTo": [
      {
        "type": 1, // Dispatch Call
        "value": 123, // Dispatch Call ID
        "label": "Dispatch Call 123"
      },
      {
        "type": 3, // Department
        "value": "Prescott PD",
        "label": "Prescott PD"
      },
    ]
  }
}
```

### playTonesTo Object

The[ tone board](/cad/tutorials/customization/tone-board.md) allows you to play tones to specific identifiers, dispatch calls, departments, and more. The `playTonesTo` array specifies who or what the tone was sent to.

#### type Enum

The `type` field is an enumerator value as follows:

| Enum (Integer) | Description                |
| -------------- | -------------------------- |
| 0              | All Active Units           |
| 1              | Specified Dispatch Call ID |
| 2              | Specified Agency           |
| 3              | Specified Department       |
| 4              | Specified Subdivision      |
| 5              | Specified Unit Identifier  |
| 6              | Specified Unit Group       |

#### value Property

The `value` property represents the specific target for the `type`.\
Ex: On a `type` `1` (dispatch call) the `value` would be a number representing the dispatch call ID.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sonoransoftware.com/cad/api-integration/push-events/tone-played.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
