# agent_schedule_get

Get Agent Schedule

## Beschreibung

Returns a single schedule plus every trigger and the most
recent runs (`recent_runs`, capped at 20, newest first).

## Zugriff

Zugriffsprofil: `gated`. Module: `none`.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

## Parameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | Ja |  |
| `id` | string | Ja | Schedule prefix id (asch_…). |

## Eingabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "id": {
      "type": "string",
      "description": "Schedule prefix id (asch_…)."
    }
  },
  "required": [
    "account_id",
    "id"
  ],
  "type": "object"
}
```

## Ausgabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "agent_schedule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "concurrency": {
          "type": "string"
        },
        "catch_up": {
          "type": "string"
        },
        "catch_up_cap": {
          "type": "integer"
        },
        "agent_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "owner": {
          "type": [
            "object",
            "null"
          ]
        },
        "account_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        },
        "triggers": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "recent_runs": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      },
      "required": [
        "id",
        "title",
        "prompt",
        "status",
        "account_id",
        "created_at"
      ]
    }
  },
  "required": [
    "agent_schedule"
  ],
  "type": "object"
}
```
