Skip to content
Sign up

Detach Identity From Agent

client.agents.identities.detach(stringidentityID, IdentityDetachParams { agent_id } params, RequestOptionsoptions?): IdentityDetachResponse
patch/v1/agents/{agent_id}/identities/detach/{identity_id}

Detach an identity from an agent.

ParametersExpand Collapse
identityID: string
params: IdentityDetachParams { agent_id }
agent_id: string

The ID of the agent in the format 'agent-'

minLength42
maxLength42
ReturnsExpand Collapse
IdentityDetachResponse = unknown
Detach Identity From Agent
import Letta from '@letta-ai/letta-client';

const client = new Letta({
  apiKey: process.env['LETTA_API_KEY'], // This is the default and can be omitted
});

const response = await client.agents.identities.detach('identity_id', {
  agent_id: 'agent-123e4567-e89b-42d3-8456-426614174000',
});

console.log(response);
{}
Returns Examples
{}