---
title: "Issue an allocation-bound compute session credential"
method: POST
path: "/api/v1/agent/persistent/scheduler/compute_credential"
tags: ["agent", "Persistent agents"]
---

# Issue an allocation-bound compute session credential

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

## 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/compute_credential`
- Auth: HTTP bearer

Private Activity/executor data only. Current Rails/Git authority is required; never put credentials, snapshots or results into Temporal Workflow payloads or heartbeats.

## 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`

Validated private exchange

- PersistentAgentComputeCredential
  - `scope` PersistentAgentWorkerScope, required
    - `task_id` string, required
    - `segment_id` string, required
    - `generation` integer, required
    - `claim_id` string, required
  - `plan_id` string, required
  - `credential` string, required

## Other responses

- `401`: Credential unavailable or revoked
- `403`: Current authority unavailable
- `404`: Task unavailable
- `409`: Reconciliation required
- `422`: Invalid request
- `502`: Bad gateway
- `503`: Canonical state temporarily 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)
