List Identities
client.identities.list(IdentityListParams { after, before, identifier_key, 6 more } query?, RequestOptionsoptions?): ArrayPage<Identity { id, agent_ids, block_ids, 5 more } >
/v1/identities/
Get a list of all identities in the database
Parameters
Returns
List Identities
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const identity of client.identities.list()) {
console.log(identity.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"
}
]
}
]