List Identities
identities.list(IdentityListParams**kwargs) -> SyncArrayPage[Identity]
/v1/identities/
Get a list of all identities in the database
Parameters
identifier_key: Optional[str]
name: Optional[str]
project_id: Optional[str]
Returns
List Identities
from letta_client import Letta
client = Letta(
api_key="My API Key",
)
page = client.identities.list()
page = page.items[0]
print(page.id)
[
{
"id": "identity-123e4567-e89b-12d3-a456-426614174000",
"agent_ids": [
"string"
],
"block_ids": [
"string"
],
"identifier_key": "identifier_key",
"identity_type": "org",
"name": "name",
"project_id": "project_id",
"properties": [
{
"key": "key",
"type": "string",
"value": "string"
}
]
}
]Returns Examples
[
{
"id": "identity-123e4567-e89b-12d3-a456-426614174000",
"agent_ids": [
"string"
],
"block_ids": [
"string"
],
"identifier_key": "identifier_key",
"identity_type": "org",
"name": "name",
"project_id": "project_id",
"properties": [
{
"key": "key",
"type": "string",
"value": "string"
}
]
}
]