# Token Transfer

**`POST /api/v1/tokens/{tokenId}/transfer`**

Transfers tokens to a target account. Provide `amount` for fungible tokens or `serialNumbers` for NFTs (not both required). Only users with the Installer (User) role are allowed to make the request.

**Authentication:** Bearer token required (`Authorization: Bearer <token>`)

**Permission:** `Permissions.TOKENS_TOKEN_EXECUTE`

***

## Request

### Path Parameters

| Parameter | Type   | Required | Description                                       |
| --------- | ------ | -------- | ------------------------------------------------- |
| `tokenId` | string | Yes      | The internal database ID of the token to transfer |

### Request Body

```json
{
  "targetAccount": "0.0.12345",
  "amount": 10,
  "memo": "Optional memo"
}
```

| Field           | Type      | Required    | Description                                                                                     |
| --------------- | --------- | ----------- | ----------------------------------------------------------------------------------------------- |
| `targetAccount` | string    | Yes         | Hedera account ID to receive the tokens                                                         |
| `amount`        | number    | Conditional | Fungible token amount; required if `serialNumbers` is absent; must be > 0                       |
| `serialNumbers` | number\[] | Conditional | NFT serial numbers to transfer; required if `amount` is absent; each must be a positive integer |
| `memo`          | string    | No          | Optional transaction memo                                                                       |

***

## Response

### Success Response

**Status:** `200 OK`

```json
{
  "status": true,
  "serials": [1, 2, 3]
}
```

| Field     | Type      | Description                                                            |
| --------- | --------- | ---------------------------------------------------------------------- |
| `status`  | boolean   | `true` if all requested serials transferred successfully               |
| `serials` | number\[] | Serial numbers that were transferred (empty array for fungible tokens) |

### Error Responses

| Status                      | Description                                                                                                                   |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `401 Unauthorized`          | Missing or invalid token                                                                                                      |
| `403 Forbidden`             | Insufficient permissions                                                                                                      |
| `422 Unprocessable Entity`  | User is not registered, or body validation failed (missing `targetAccount`, or neither `amount` nor `serialNumbers` provided) |
| `500 Internal Server Error` | Unexpected server failure                                                                                                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guardian.hedera.com/docs/develop/guardian/tokens/token-operations/token-apis/token-transfer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
