identities
List Blocks For Identity
Get all blocks associated with the specified identity.
get/v1/identities/{identity_id}/blocks
Request
- Base URLhttps://app.letta.com
- URLhttps://app.letta.com/v1/identities/{identity_id}/blocks
- AuthHTTP bearer
Path parameters
identity_idstring required
Query parameters
beforestring nullable
Block ID cursor for pagination. Returns blocks that come before this block ID in the specified sort order
afterstring nullable
Block ID cursor for pagination. Returns blocks that come after this block ID in the specified sort order
limitinteger 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
Successful Response
Example response
[
{
"id": "block-123e4567-e89b-12d3-a456-426614174000"
}
]Changes
No recorded changes to this operation across all 36 revisions of this API.