# List syncwindows

URL: https://docs.hanzo.ai/docs/openapi/deploy/get-deploy-applications-by-name-syncwindows

> Returns one application's argocd ApplicationSyncWindowState — the answer to "is anything blocking a sync of this application right now?".

`GET /v1/deploy/applications/{name}/syncwindows`

> [Deploy →](https://docs.hanzo.ai/docs/openapi/deploy) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                                                  |
| ------------- | ---------------------------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/deploy/applications/{name}/syncwindows` |
| **Method**    | `GET`                                                            |
| **Operation** | `get_deploy_applications_by_name_syncwindows`                    |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`                           |

Returns one application's argocd
ApplicationSyncWindowState — the answer to "is anything blocking a sync of this
application right now?".

This platform runs NO sync windows, so the answer is always the permissive
empty one: canSync true, with no active and no assigned windows. The
application is still resolved first, so a name that is not the caller's is not
found rather than handed the static body — the endpoint discloses nothing about
another tenant's fleet.

## Request

1 field.

| Field  | In   | Type   | Required | Description                                     |
| ------ | ---- | ------ | -------- | ----------------------------------------------- |
| `name` | path | string | yes      | Name is the application to read, from the path. |

## Response

| Status    | Body                   | Meaning |
| --------- | ---------------------- | ------- |
| `200`     | deploy.argoSyncWindows | ok      |
| `default` | problem-details        | refused |

`200` body — 3 fields.

| Field             | In   | Type    | Always | Description                                                                                                |
| ----------------- | ---- | ------- | ------ | ---------------------------------------------------------------------------------------------------------- |
| `activeWindows`   | body | any\[]  | —      | ActiveWindows are the sync windows in force right now.                                                     |
| `assignedWindows` | body | any\[]  | —      | AssignedWindows are the windows configured for this application at all, whether or not currently in force. |
| `canSync`         | body | boolean | —      | CanSync is whether a sync would be permitted at this moment.                                               |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo deploy applications syncwindows <name>
```

**SDK**

**.ts**

```ts
import { Configuration, DeployApi } from 'hanzoai';

const api = new DeployApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getDeployApplicationsByNameSyncwindows({ name: 'name' });
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import DeployApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = DeployApi(client).get_deploy_applications_by_name_syncwindows(name='name')
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.DeployAPI.GetDeployApplicationsByNameSyncwindows(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, deploy_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = deploy_api::get_deploy_applications_by_name_syncwindows(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.DeployApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new DeployApi(client).getDeployApplicationsByNameSyncwindows();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/deploy/applications/<name>/syncwindows \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **deploy** through the `deploy` tool, which names its 11 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_deploy_applications"
         }
       }
     }'
```

---

[Deploy API](https://docs.hanzo.ai/docs/openapi/deploy) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
