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

# Allocate a funded private task allocation

`POST /api/v1/agent/persistent/scheduler/allocate_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/allocate_compute`
- Auth: HTTP bearer

Consume funded compute through one durable create intent. Only the first acknowledged intent may dispatch; retries are lookup-only. Allocated verifies provider identity/image/shape/absolute expiry, not workspace readiness. No credentials are returned. Trusted Activity data only; never put machine identity or private pins in Workflow payloads.

## Request body

- PersistentAgentComputeAllocateRequest
  - `organization_id` string, required
  - `agent_id` string, required
  - `task_id` string, required
  - `first_execution_run_id` string, required
  - `scope` PersistentAgentWorkerScope, required
    - `task_id` string, required
    - `segment_id` string, required
    - `generation` integer, required
    - `claim_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)
