Scheduled jobs

List

List all scheduled jobs in your organization.

GET /api/public/v1/scheduled-jobs

Example

curl -X GET https://api.nairi.ai/api/public/v1/scheduled-jobs \
  -H "Authorization: Bearer $NAIRI_API_KEY"
const res = await fetch("https://api.nairi.ai/api/public/v1/scheduled-jobs", {
  headers: {
    Authorization: `Bearer ${process.env.NAIRI_API_KEY}`,
  },
});
const jobs = (await res.json()) as Array<{ id: string; schedule: string }>;
require "net/http"
require "json"
require "uri"

uri = URI("https://api.nairi.ai/api/public/v1/scheduled-jobs")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer #{ENV['NAIRI_API_KEY']}"

res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }
jobs = JSON.parse(res.body)
import os
import requests

res = requests.get(
    "https://api.nairi.ai/api/public/v1/scheduled-jobs",
    headers={"Authorization": f"Bearer {os.environ['NAIRI_API_KEY']}"},
)
jobs = res.json()
package main

import (
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.nairi.ai/api/public/v1/scheduled-jobs", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("NAIRI_API_KEY"))
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	raw, _ := io.ReadAll(res.Body)
	var jobs []map[string]any
	json.Unmarshal(raw, &jobs)
	fmt.Println(jobs)
}

Response

The list returns a bare JSON array.

[
  {
    "id": "sj_01K7XSRBBM0294N1WBD2M9EVQC",
    "schedule": "0 9 * * *",
    "timezone": "America/New_York",
    "prompt": "Generate daily status report",
    "connected_channel_id": "C09M8FRJYTF",
    "job_type": "slack",
    "is_threaded": true,
    "is_enabled": true,
    "last_executed_at": "2026-04-12T14:00:00.000Z",
    "created_at": "2026-04-12T18:45:12.000Z",
    "updated_at": "2026-04-12T18:45:12.000Z"
  }
]

On this page