Marks the run done for the caller, idempotently.
POST
/v1/m/sessions/runs/{ref}/done
const url = 'https://example.com/v1/m/sessions/runs/example/done';const options = {method: 'POST', 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 POST \ --url https://example.com/v1/m/sessions/runs/example/done \ --header 'Authorization: Bearer <token>'Marks the run done for the caller, idempotently.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” ref
required
string
Path parameter ref.
Header Parameters
Section titled “ Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Responses
Section titled “ Responses ”The caller’s snooze and done marks on the run
Media type application/json
object
done
required
Whether THIS caller has marked the session done; every direction is idempotent.
boolean
run_ref
required
The operated session’s stable reference.
string
snoozed_until
When THIS caller’s snooze ends; present only while it is still to end. Run list and get reads carry the same per-caller fields.
string format: date-time
Example generated
{ "done": true, "run_ref": "example", "snoozed_until": "2026-04-15T12:00:00Z"}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}