Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Attach Identity To Agent

client.agents.identities.attach(stringidentityID, IdentityAttachParams { agent_id } params, RequestOptionsoptions?): IdentityAttachResponse
patch/v1/agents/{agent_id}/identities/attach/{identity_id}

Attach an identity to an agent.

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

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

minLength42
maxLength42
ReturnsExpand Collapse
IdentityAttachResponse = unknown
Attach Identity To Agent
import Letta from '@letta-ai/letta-client';

const client = new Letta({
  apiKey: 'My API Key',
});

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

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