---
title: "List Blocks For Identity"
method: GET
path: "/v1/identities/{identity_id}/blocks"
tags: ["identities"]
---

# List Blocks For Identity

`GET /v1/identities/{identity_id}/blocks`

Get all blocks associated with the specified identity.

## Path parameters

- `identity_id` string, required

## Query parameters

- `before` string, nullable — Block ID cursor for pagination. Returns blocks that come before this block ID in the specified sort order
- `after` string, nullable — Block ID cursor for pagination. Returns blocks that come after this block ID in the specified sort order
- `limit` integer, nullable — Maximum number of blocks to return
- `order` 'asc' | 'desc' — Sort order for blocks by creation time. 'asc' for oldest first, 'desc' for newest first
- `order_by` 'created_at' — Field to sort by

## Response `200`

Successful Response

- Block[]
  - `value` string, required — Value of the block.
  - `limit` integer — Character limit of the block.
  - `project_id` string, nullable — The associated project id.
  - `name` string, nullable — The id of the template.
  - `is_template` boolean — Whether the block is a template (e.g. saved human/persona options).
  - `base_template_id` string, nullable — The base template id of the block.
  - `deployment_id` string, nullable — The id of the deployment.
  - `entity_id` string, nullable — The id of the entity within the template.
  - `preserve_on_migration` boolean, nullable — Preserve the block on template migration.
  - `label` string, nullable — Label of the block (e.g. 'human', 'persona') in the context window.
  - `read_only` boolean — Whether the agent has read-only access to the block.
  - `description` string, nullable — Description of the block.
  - `metadata` object, nullable — Metadata of the block.
  - `hidden` boolean, nullable — If set to True, the block will be hidden.
  - `id` string — The human-friendly ID of the Block
  - `created_by_id` string, nullable — The id of the user that made this Block.
  - `last_updated_by_id` string, nullable — The id of the user that last updated this Block.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
