---
title: "Invoke one capability revision"
url: https://hexelstudio.com/docs/api/titan-agent/agent/invoke-one-capability-revision
---

# Invoke one capability revision

**POST** `/titan/agent/capabilities/{capability_id}:invoke`

Fresh policy evaluation on every call. 200 carries a verified result, a terminal execution status, or (identical same-key replay) a terminal approval; 202 carries a durable nonterminal execution or a pending approval. Request body at most 96 KiB.

## Path parameters

- `capability_id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. Runtime identity token from the identity exchange. Through the public edge, device-bound callers (titand) and workloads of the deployment's attached customer Kubernetes clusters are served. A device-bound caller's requests also carry a Titan-Device-Proof over the path below /v1 (or below the cell prefix), i.e. the /titan/agent/... path; an attached cluster's carry none.

- `Content-Type: string`

  Exact media type with exactly one version parameter.

  One of: `"application/vnd.titan.capability-invocation+json;version=1"`

- `Accept: string`

  The capability-result, approval-status, and execution-status types, once each, in any order; whitespace around the commas is optional; no wildcard or q.

  One of: `"application/vnd.titan.capability-result+json;version=1, application/vnd.titan.approval-status+json;version=1, application/vnd.titan.execution-status+json;version=1"`, `"application/vnd.titan.capability-result+json;version=1, application/vnd.titan.execution-status+json;version=1, application/vnd.titan.approval-status+json;version=1"`, `"application/vnd.titan.approval-status+json;version=1, application/vnd.titan.capability-result+json;version=1, application/vnd.titan.execution-status+json;version=1"`, `"application/vnd.titan.approval-status+json;version=1, application/vnd.titan.execution-status+json;version=1, application/vnd.titan.capability-result+json;version=1"`, `"application/vnd.titan.execution-status+json;version=1, application/vnd.titan.capability-result+json;version=1, application/vnd.titan.approval-status+json;version=1"`, `"application/vnd.titan.execution-status+json;version=1, application/vnd.titan.approval-status+json;version=1, application/vnd.titan.capability-result+json;version=1"`

- `Idempotency-Key: optional string`

  Required exactly when the revision requires idempotency (side-effecting); forbidden otherwise. Visible ASCII except comma, double quote, and backslash.

- `Titan-Device-Proof: optional string`

  Per-request EdDSA device proof over method, received path, body digest, and token jti; required for a titan_device_key binding and rejected for a Kubernetes binding.

## Body parameters

- `arguments: object`

  Arguments validated against the revision's closed input contract (the catalog input_schema); the body is at most 96 KiB.

## Returns

`200` Verified result, terminal execution, or terminal approval of an identical replay. (`AgentApprovalUnexecuted`)

- `approval_id: string`

- `capability: string`

- `created_at: string`

- `expires_at: string`

- `status: string`

  One of: `"denied"`, `"revoked"`, `"expired"`, `"invalidated"`

## Errors

- `400` INVALID_REQUEST: a header outside the allowlist, a duplicate singleton or control character, framing, or a body/argument that fails strict JSON or the closed contract; IDEMPOTENCY_KEY_FORBIDDEN: an Idempotency-Key where the revision (or route) takes none.
- `401` UNAUTHENTICATED: a missing or invalid runtime token, device proof, or mTLS peer, an ineligible session, or assurance below A2.
- `402` TITAN_PLAN_REQUIRED: with the plan check on for the enforcement deployment, the organization has no Titan plan or trial (reason plan_required), or its subscription is past due or cancelled past the Gateway's grace (subscription_past_due, subscription_canceled); checked before an approval request is opened and before any grant, so nothing is put to an approver, signed or executed; not retryable.
- `403` FORBIDDEN: a policy deny, a latched kill, or a restricted session; on the Session Store, a caller that is not a leg of a durable session, a write to another durable session, or summaries the session profile turns off; on swarm routes, a mission at its task or board key cap; no object detail; SECRET_SOURCE_NOT_ALLOWED: a web.login.fill whose secret source (source, saved when absent) the organization's session profile option web_login_secret_sources leaves out (by default the phone vault): refused before an approval is opened or a grant signed, and not retryable; PHONE_SESSION_SCOPE: the caller's session, an ancestor of it or another leg of its durable session was created for a phone call (its Broker session carries phone_call_id) and the action is not phone.knowledge.lookup, phone.message.take or phone.call.hangup naming that call's call_id; refused before policy, nothing is decided, approved or executed, and not retryable.
- `404` NOT_FOUND: an unknown, hidden, or inaccessible capability or object, a query string, or a malformed id; on the Session Store also durable sessions off for the caller's agent deployment; on swarm routes also swarm coordination off for it, or another mission's task, key or session.
- `406` NOT_ACCEPTABLE: an Accept other than the exact media type(s).
- `409` IDEMPOTENCY_CONFLICT: a key reused with a different complete binding; GOVERNED_ACTION_LIMIT_REACHED: with plan limits on, the organization's plan sets a monthly governed-action limit (quota.titan_governed_actions_per_month, the trial's hard stop) and billing-api answers that it is used up; nothing is signed or executed; GOVERNED_ACTION_BUDGET_EXCEEDED: with enforced budgets on, an enforced billing budget of the organization, or of the action's workspace or environment, is used up (billing-api budget_exceeded); nothing is signed or executed; TAKEOVER_ACTIVE: a class client action of a durable session whose sandbox its person has taken over; retry after the hand-back.
- `413` PAYLOAD_TOO_LARGE: more than 32 counted headers, a header value over 4 KiB (Authorization 12 KiB), 24 KiB of headers, or an oversized body.
- `415` UNSUPPORTED_MEDIA_TYPE: a Content-Type other than the exact media type.
- `428` IDEMPOTENCY_KEY_REQUIRED: a side-effecting revision without one valid key.
- `429` RATE_LIMITED: the per-runtime-principal rate or concurrency bound.
- `503` SERVICE_UNAVAILABLE: required local state, the store, the signer, audit capacity, or the executor path is unavailable before safe acceptance (on content access also: no Titan content store configured under full capture).

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/agent/capabilities/{capability_id}:invoke' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: CONTENT_TYPE' \
  --header 'Accept: ACCEPT' \
  --header 'Content-Type: application/json' \
  --data '{
  "arguments": {}
}'
```

### Response (200)

```json
{
  "approval_id": "string",
  "capability": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "expires_at": "2026-01-01T00:00:00Z",
  "status": "denied"
}
```

### Response (202)

```json
{
  "approval_id": "string",
  "capability": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "expires_at": "2026-01-01T00:00:00Z",
  "status": "pending"
}
```

### Response (400)

```json
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (401)

```json
{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (402)

```json
{
  "error": {
    "billing_url": "https://console.hexelstudio.com/billing/plans",
    "code": "TITAN_PLAN_REQUIRED",
    "message": "Start your 7-day trial or choose a plan.",
    "reason": "plan_required",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "FORBIDDEN",
    "message": "string",
    "reason": "tool_permissions_organization",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (404)

```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (406)

```json
{
  "error": {
    "code": "NOT_ACCEPTABLE",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (409)

```json
{
  "error": {
    "code": "IDEMPOTENCY_CONFLICT",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (413)

```json
{
  "error": {
    "code": "PAYLOAD_TOO_LARGE",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (415)

```json
{
  "error": {
    "code": "UNSUPPORTED_MEDIA_TYPE",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (428)

```json
{
  "error": {
    "code": "IDEMPOTENCY_KEY_REQUIRED",
    "message": "string",
    "request_id": "string",
    "retryable": false
  }
}
```

### Response (429)

```json
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "string",
    "request_id": "string",
    "retryable": true
  }
}
```

### Response (503)

```json
{
  "error": {
    "code": "SERVICE_UNAVAILABLE",
    "message": "string",
    "request_id": "string",
    "retryable": true
  }
}
```
