---
title: "Sets agent’s status to online for 2-3 minutes"
method: POST
path: "/conversations/agentOnlinePing"
tags: ["Conversations"]
---

# Sets agent’s status to online for 2-3 minutes

`POST /conversations/agentOnlinePing`

We recommend pinging this endpoint every minute for as long as the agent has to be considered online.

## Request body

- Body17
  - `agentId` string — agent ID. It can be found on agent’s page or received <a href="https://developers.brevo.com/docs/conversations-webhooks">from a webhook</a>. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required).
  - `receivedFrom` string — mark your messages to distinguish messages created by you from the others.
  - `agentEmail` string, email — agent email. When sending online pings from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. If there’s no agent with the specified email address in your Brevo organization, a dummy agent will be created automatically.
  - `agentName` string — agent name.

## Response `201`

Status of the agent was set successfully. Response body will be empty.

## Other responses

- `400` — Returned when invalid data posted

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/revisions/2aec3cf66501/schema)
