---
title: "Record a signed destination-leg handoff acknowledgement"
description: "Internal carrier callback. Requires a valid account signature and an exact saved workspace, account, attempt and parent/child call binding. A destination answer does not identify a human."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Voice AI

`POST /api/workspaces/{workspaceId}/voice/handoffs/{attemptId}/{kind}`

Internal carrier callback. Requires a valid account signature and an exact saved workspace, account, attempt and parent/child call binding. A destination answer does not identify a human.

## Path parameters

- `workspaceId` (`post/api/workspaces/workspaceId/voice/handoffs/attemptId/kind.path.workspaceId`; string, required)
- `attemptId` (`post/api/workspaces/workspaceId/voice/handoffs/attemptId/kind.path.attemptId`; string, required)
  - format `uuid`
- `kind` (`post/api/workspaces/workspaceId/voice/handoffs/attemptId/kind.path.kind`; string, required)
  - one of `"leg"`, `"complete"`

## Example request

```text
{
  "property1": "string",
  "property2": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice/handoffs/<attemptId>/leg' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode property1=string \
  --data-urlencode property2=string
```

### TypeScript

```typescript
const encodedParams = new URLSearchParams();
encodedParams.append('property1', 'string');
encodedParams.append('property2', 'string');

const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/voice/handoffs/<attemptId>/leg';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: encodedParams
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspaces/<workspaceId>/voice/handoffs/<attemptId>/leg"

payload = {
    "property1": "string",
    "property2": "string"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Idempotently recorded; completion returns hangup TwiML

### 400

Invalid callback

### 403

Invalid signature or account

### 404

Attempt or call identity does not match

### 503

Persistence unavailable; retry required


Source: https://developer.channelautomations.com/api/post-api-workspaces-workspace-id-voice-handoffs-attempt-id-kind/index.md
