# Sync: Poll ontime status

In the scenario of syncing the state of ontime with 3rd party applications, ontime offers an endpoint to poll the app status

## Returns object containing app timer status

<mark style="color:blue;">`GET`</mark> `http://<your_ip>:4001/ontime/poll`

{% tabs %}
{% tab title="200: OK  " %}

```javascript
{
    "clock": 39981051,                  // clock in milliseconds
    "running": 1792,                    // current timer in milliseconds
    "durationSeconds": 1800,            // duration of current event
    "playback": "start",                // playback status
    "title": "Welcome to Ontime",       // current event title
    "presenter": "cpvalente",           // current event presenter 
    "timetag": "00:29:51"               // current timer string
}
```

{% endtab %}
{% endtabs %}

### Playback states

With the poll endpoint, ontime will report one of the following playback states

* Start - Playback in **play** mode
* Pause - playback in **pause** mode
* Roll - playback in [**roll** mode](/ontime-v1-old/features/roll.md)
* Stop - Playback in **stop** mode


---

# Agent Instructions: 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:

```
GET https://ontime.gitbook.io/ontime-v1-old/additional-notes/sync-poll-ontime-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
