> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/developer-tools-and-resources/api-reference/auto-suggestion-apis/get-next-and-nested-suggested-block-types.md).

# Get next and nested suggested block types

**`POST /api/v1/suggestions`**

Returns the suggested next and nested block types based on the current policy configuration context. Only Standard Registry users are allowed to make this request.

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

**Permission:** `Permissions.SUGGESTIONS_SUGGESTIONS_READ`

***

## Request

### Request Body

```json
{
  "blockType": "requestVcDocumentBlock",
  "children": []
}
```

| Field       | Type   | Required | Description                                    |
| ----------- | ------ | -------- | ---------------------------------------------- |
| `blockType` | string | Yes      | The current block type to base suggestions on  |
| `children`  | array  | No       | Current children blocks for nested suggestions |

***

## Response

### Success Response

**Status:** `200 OK`

```json
{
  "next": "sendToGuardianBlock",
  "nested": "calculateContainerBlock"
}
```

| Field    | Type   | Description                 |
| -------- | ------ | --------------------------- |
| `next`   | string | Suggested next block type   |
| `nested` | string | Suggested nested block type |

### Error Responses

| Status                      | Description               |
| --------------------------- | ------------------------- |
| `401 Unauthorized`          | Missing or invalid token  |
| `403 Forbidden`             | Insufficient permissions  |
| `500 Internal Server Error` | Unexpected server failure |
