Skip to Content
Levain LabsLevain Labs
API ReferenceSchedules

List Schedules

List schedules for an agent, newest first.

List schedules for an agent, newest first.

agent_id is the agent's id or slug.

GET
/api/v1/agents/{agent_id}/schedules

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

agent_id*Agent Id

Query Parameters

limit?Limit
Default50
Range1 <= value <= 200

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/agents/string/schedules"
{
  "schedules": [
    {
      "id": "string",
      "agent_id": "string",
      "agent_version_id": "string",
      "cron_expr": "string",
      "timezone": "string",
      "prompt": "string",
      "initial_state": {},
      "enabled": true,
      "paused_reason": "string",
      "resume_at": "string",
      "skip_if_active_within_minutes": 0,
      "run_as_user": {
        "id": "string",
        "name": "string",
        "email": "string"
      },
      "next_fire_at": "string",
      "last_fired_at": "string",
      "last_run_id": "string",
      "created_at": "string"
    }
  ]
}