---
title: "Release a funded private task allocation"
method: POST
path: "/api/v1/agent/persistent/scheduler/release_compute"
tags: ["agent"]
---

# Release a funded private task allocation

`POST /api/v1/agent/persistent/scheduler/release_compute`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/agent/persistent/scheduler/release_compute`
- Auth: HTTP bearer

Request deletion of the exact funded allocation. Cleanup remains authorized by state-management access after pause, task expiry or work-grant revocation. Observed allocations require positive observation followed by provider absence; unknown usage stays held. An expired plan with no allocation intent can instead publish an atomic never-dispatched proof, zero usage and original-day/task balance refund. Once any allocation intent exists, missing resources or provider refusal cannot authorize this zero settlement. Trusted Activity data only; never put machine identity or private pins in Workflow payloads.

## Request body

- PersistentAgentComputeReleaseRequest
  - `organization_id` string, required
  - `agent_id` string, required
  - `task_id` string, required
  - `first_execution_run_id` string, required
  - `plan_id` string, required

## Response `200`

Compute control-plane state; not execution credentials or settled usage

- PersistentAgentComputeLifecycle
  - `state` 'allocated' | 'pending' | 'uncertain' | 'expired' | 'releasing' | 'released' | 'lost', required
  - `plan_id` string, required
  - `machine_name` string, required
  - `version` string, required

## Other responses

- `401`: Scheduler authentication required
- `403`: Current authorization unavailable
- `404`: Task unavailable
- `409`: Provider or task outcome needs reconciliation
- `422`: Invalid request
- `502`: Bad gateway
- `503`: Canonical state unavailable

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
