Skip to main content
GET
/
api
/
captain
/
agents
/
{id}
/
cron
/
{jobId}
Get cron job
curl --request GET \
  --url http://localhost:63372/api/captain/agents/{id}/cron/{jobId} \
  --cookie captain_session=
{
  "id": "daily-report",
  "name": "daily-report",
  "message": "Generate the daily report",
  "schedule": {
    "every": "24h",
    "cron": "0 0 9 * * 1-5 *",
    "at": "2025-12-31T09:00:00Z"
  },
  "delivery_connector": "discord",
  "delivery_channel": "123456789"
}

Authorizations

captain_session
string
cookie
required

HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.

Path Parameters

id
string
required

Agent ID

jobId
string
required

Cron job ID

Response

Cron job detail

id
string
required
Example:

"daily-report"

name
string
required
Example:

"daily-report"

message
string
required
Example:

"Generate the daily report"

schedule
object
required

Exactly one of 'every', 'cron', or 'at' must be set.

delivery_connector
string | null
Example:

"discord"

delivery_channel
string | null
Example:

"123456789"