---
# @generated by sylphx-gen. Do not edit.
title: "Abort a transfer"
description: "`agents.transfers.abort` (POST /v1/{name}:abort): Releases only a destination that has not adopted source state."
type: reference
product: agents
summary: "Releases only a destination that has not adopted source state."
updated: 2026-09-28
nav: false
---

Releases only a destination that has not adopted source state. Immutable source bytes/epoch remain retained; source writer release is app-owned.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/transfers/transfer:abort`
- **Scope** `agents:sessions`
- **Effect** `write` — a successful call changes state.
- **Collection** [transfers](/docs/api/transfers)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Exact transfer name; cannot abort an adopted Session. Required. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Destination Session and immutable transfer identity. |
| `uid` | `string` | Immutable Resource UID. Output only. |
| `meta` | `ResourceMeta` | Standard metadata. Output only. |
| `state` | `string` | staging, verified, adopted or aborted. Verified does not admit execution. Output only. |
| `manifest` | `struct` | Versioned source identity, transfer epoch and ordered byte/part digests. Output only. |
| `manifest_sha256` | `string` | Digest of the checked manifest, including original Session and epoch. Output only. |
| `source_fence_sha256` | `string` | Caller attestation bound to its original durable writer fence. A digest does not prove that an external writer has stopped. Output only. |
| `received_parts` | `SessionTransferPart[]` | Exact stored-part metadata. Private payload bytes are never returned. Output only. |
| `receipt` | `struct` | Original identities, destination mappings and unresolved effect holds. Output only. |
| `receipt_sha256` | `string` | Digest the source adapter reads back before acknowledging its handoff. Output only. |
| `create_time` | `timestamp` | Creation time. Output only. |
| `update_time` | `timestamp` | Last lifecycle change time. Output only. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `generation` | `int64` | Increases by one on every change to `spec`. Output only. |
| `etag` | `string` | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as `If-Match` or `etag` to make Update and Delete conditional; a mismatch fails with ABORTED / 409 `ETAG_MISMATCH`. Output only. |
| `create_time` | `timestamp` | When the Resource was created. Output only. |
| `update_time` | `timestamp` | When the Resource last changed. Output only. |
| `delete_time` | `timestamp` | Set while the Resource is being deleted. Output only. |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |
| `creator` | `string` | The principal that created the Resource. Output only. |

### SessionTransferPart

| Field | Type | What it is |
| --- | --- | --- |
| `index` | `int64` | Zero-based index in the immutable manifest. |
| `bytes` | `int64` | Exact stored byte count. |
| `sha256` | `string` | SHA-256 of the exact binary body. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`INVALID_STATE`](/docs/api/errors/INVALID_STATE) — The Resource is in a state that forbids the call.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/transfers/transfer:abort" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**TypeScript**

```ts
const response = await sylphx.agents.transfers.abort({ name: 'orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/transfers/transfer' })
```

**Rust**

```rust
let mut req = sylphx::agents::AbortAgentSessionTransferRequest::default();
req.name = "orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/transfers/transfer".to_string();
let response = sx.agents().transfers().abort(req).await?;
```

**CLI**

```bash
sylphx agents transfers abort orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/transfers/transfer
```

**MCP**

```json
{ "method_id": "agents.transfers.abort", "args": {"name":"orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/transfers/transfer"} }
```
