The mission agent’s schedule
GET
/v1/missions/{id}/agent/schedule
const url = 'https://beta-api.plune.ai/v1/missions/example/agent/schedule';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/missions/example/agent/schedule \ --header 'Authorization: Bearer <token>'Who set it, when it runs next and what its last time did; schedule: null before one is set. Anyone in the project, a reader too.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
The mission’s id
Responses
Section titled “ Responses ”The schedule
Media type application/json
object
schedule
required
object
id
required
string
missionId
required
string
state
required
off: turned off by someone who may write; paused: its author left the project; a person setting it again turns it on
string
pauseReason
string
budgetUsd
required
number
everyHours
required
integer
nextRunAt
required
string format: date-time
createdBy
required
The person who set it: its runs act for them
string
lastFiredAt
required
string format: date-time
lastRunId
required
The run its last time queued or resumed
string
lastOutcome
required
What its last time did: a run queued or resumed, or why none
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "schedule": { "id": "6c1d8e2a-3b4f-4a7e-8d21-5f9b0c3e7a42", "missionId": "6f1c2b3a-0000-4000-8000-000000002188", "state": "on", "budgetUsd": 2, "everyHours": 24, "nextRunAt": "2026-11-15T06:00:00.000Z", "createdBy": "6f1c2b3a-0000-4000-8000-0000000000a2", "lastFiredAt": "2026-11-14T06:00:00.000Z", "lastRunId": "0b6f3c2e-7d1a-4f0e-9a51-2c8e4b7d9f10", "lastOutcome": "queued", "createdAt": "2026-11-13T09:00:00.000Z", "updatedAt": "2026-11-14T06:00:00.000Z" }}No / invalid token or session
No such mission in your project
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}