> ## Documentation Index
> Fetch the complete documentation index at: https://studio.chat-atp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an agent user

> Create or upsert an end user on an agent

<ParamField path="agent_id" type="integer" required>
  Agent ID.
</ParamField>

<ParamField body="external_user_id" type="string">
  Your unique identifier for the user.
</ParamField>

<ParamField body="display_name" type="string">
  Optional display name.
</ParamField>

## SDK

<CodeGroup>
  ```typescript TypeScript theme={null}
  await client.agentUsers.create(7, { external_user_id: "user_12345" });
  ```

  ```python Python theme={null}
  await client.agent_users.create(7, external_user_id="user_12345")
  ```
</CodeGroup>
