Skip to content

Where the mission agent stands

GET
/v1/missions/{id}/agent
curl --request GET \
--url https://beta-api.plune.ai/v1/missions/example/agent \
--header 'Authorization: Bearer <token>'

The mission’s latest run: its state and stage, its spend (every model call), the questions of the mission waiting for a person; run: null before the first. Anyone in the project, a reader too.

id
required
string

The mission’s id

The latest run

Media type application/json
object
run
required
object
id
required
string
missionId
required
string
state
required

paused: a call would pass the mission budget or the project’s monthly limit; starting it again resumes it

string
Allowed values: queued running paused done failed
stage
required

The stage the run works next: questions (test analysis), strategy (test planning), cases (test design)

string
Allowed values: questions strategy cases done
budgetUsd
required
number
spend
required
object
calls
required
integer
inputTokens
required
integer
outputTokens
required
integer
costUsd
required
number
questionsWaiting
required

Questions of the mission still pending in the review queue

integer
outputs
required
object
questionIds
required
Array<string>
strategyItemId
string
proposed
integer
pauseReason
string
Allowed values: mission_budget monthly_cap
failureKind
string
failure
object
tool
required
string
code
required
string
provider
string
model
string
requestedBy
required
string
createdAt
required
string format: date-time
startedAt
required
string format: date-time
nullable
finishedAt
required
string format: date-time
nullable
Example
{
"run": {
"id": "0b6f3c2e-7d1a-4f0e-9a51-2c8e4b7d9f10",
"missionId": "6f1c2b3a-0000-4000-8000-000000002188",
"state": "paused",
"stage": "strategy",
"budgetUsd": 0.5,
"spend": {
"calls": 1,
"inputTokens": 3200,
"outputTokens": 410,
"costUsd": 0.0053
},
"questionsWaiting": 2,
"outputs": {
"questionIds": [
"6f1c2b3a-0000-4000-8000-000000002190"
]
},
"pauseReason": "mission_budget",
"provider": "anthropic",
"model": "claude-haiku-4-5",
"requestedBy": "6f1c2b3a-0000-4000-8000-0000000000a2",
"createdAt": "2026-11-12T09:00:00.000Z",
"startedAt": "2026-11-12T09:00:02.000Z",
"finishedAt": null
}
}

No / invalid token or session

No such mission in your project

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}