Schedule Runs

List the full execution history of a schedule, including a preview of each linked agent run.

GET /api/v1/schedules/{id}/runs

Path Parameters

idRequired — the schedule UUID.

Query Parameters

limitOptional — page size. Default: 50. Max: 100.
offsetOptional — pagination offset. Default: 0.

Request Example

curl -X GET "https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/runs?limit=50" \
  -H "X-ROLLI-TOKEN: your_token" \
  -H "X-ROLLI-USER-ID: your_user_id" \
  -H "Content-Type: application/json"
    
fetch("https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/runs?limit=50", {
  method: "GET",
  headers: {
    "X-ROLLI-TOKEN": "your_token",
    "X-ROLLI-USER-ID": "your_user_id",
    "Content-Type": "application/json"
  },
})
  .then(res => res.json())
  .then(console.log);
    
require "net/http"
require "uri"
require "json"

uri = URI("https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/runs?limit=50")
req = Net::HTTP::Get.new(uri)
req["X-ROLLI-TOKEN"] = "your_token"
req["X-ROLLI-USER-ID"] = "your_user_id"
req["Content-Type"] = "application/json"

res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(req)
end

puts res.body
    
import requests
import json

url = "https://agent.rolli.ai/api/v1/schedules/660e8400-e29b-41d4-a716-446655440111/runs?limit=50"
headers = {
    "X-ROLLI-TOKEN": "your_token",
    "X-ROLLI-USER-ID": "your_user_id",
    "Content-Type": "application/json"
}response = requests.get(url, headers=headers)

print(response.json())
    

Response Example

{
  "runs": [
    {
      "id": "770e8400-e29b-41d4-a716-446655440222",
      "status": "completed",
      "scheduled_for": "2026-05-19T13:00:00Z",
      "started_at": "2026-05-19T13:00:15Z",
      "ended_at": "2026-05-19T13:04:30Z",
      "agent_run_id": "550e8400-e29b-41d4-a716-446655440000",
      "credits_used": 5,
      "error": null,
      "notified_at": "2026-05-19T13:04:31Z",
      "created_at": "2026-05-19T13:00:00Z",
      "agent_run": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "status": "completed",
        "confidence_level": "high",
        "signals_count": 3,
        "available_credits": 500,
        "credits_used": 5,
        "result_preview": "# Crypto Trends Report\n\n**Confidence: High**\n\nMultiple...",
        "created_at": "2026-05-19T13:00:15Z"
      }
    }
  ],
  "total": 12,
  "limit": 50,
  "offset": 0
}

result_preview is the first ~300 characters of the markdown report. For the full report, fetch GET /api/v1/runs/{agent_run_id}.