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

# Set Inbox Agent Bot

> Asocia o desasocia un agent bot al inbox. Cuerpo: { "agent_bot": id } o null para quitar.

Requiere **userApiKey**. Para quitar el bot envía `{"agent_bot":null}`.

<ParamField path="account_id" type="integer" required>ID de la cuenta.</ParamField>
<ParamField path="id" type="integer" required>ID del inbox.</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST 'https://app.yampi.ai/api/v1/accounts/1/inboxes/1/set_agent_bot' \
    -H 'api_access_token: TU_TOKEN' -H 'Content-Type: application/json' \
    -d '{"agent_bot":1}'
  ```
</RequestExample>
