> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.brevo.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.brevo.com/_mcp/server.

# Get the metrics of an automation workflow

GET https://api.brevo.com/v3/automation/workflows/{workflowId}/metrics

Returns the performance of one automation workflow over a date range: how many contacts started, finished or were suspended, how many are in it now, its conversions, and its message metrics per channel (email, SMS, WhatsApp, push). With `include=steps`, it also returns the contact count of every step and the message metrics of each message step.

Give either `date_range`, or `from_date` and `to_date` together, or neither for all the data since the workflow was created. A metric that a channel does not report is `null`, never 0. Rates are fractions between 0 and 1, rounded to 4 decimals, and `null` when their denominator is 0.


Reference: https://developers.brevo.com/reference/get-workflow-metrics

## Authentication

- `api-key` header (required) — The API key should be passed in the request headers as `api-key` for authentication.
- `Authorization` header (bearer token, required) — OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app's client_id/client_secret for a short-lived Bearer token.

## Request

### Path parameters

- `workflowId` (long, required) — ID of the automation workflow

### Query parameters

- `date_range` (enum, optional) — A preset date range ending now. Cannot be combined with `from_date` or `to_date`.
  - Allowed values: `last_7_days`, `last_30_days`, `last_90_days`
- `from_date` (string, optional) — Start of a custom date range, `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Required with `to_date`, and before it.
- `to_date` (string, optional) — End of a custom date range, `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Required with `from_date`.
- `include` (enum, optional) — `steps` adds the `steps` array to the response.
  - Allowed values: `steps`

## Response

### 200

The workflow's metrics over the date range

- `id` (long, optional) — ID of the automation workflow
- `name` (string, optional) — Name of the automation workflow
- `status` (enum, optional) — Current status of the workflow
  - Allowed values: `active`, `pause`, `inactive`
- `date_range` (AutomationWorkflowMetricsDateRange, optional) — The date range the metrics cover
- `throughput` (AutomationWorkflowMetricsThroughput, optional) — Contacts over the date range, except `active_now`, which is a snapshot
- `conversions` (AutomationWorkflowMetricsConversions, optional, nullable) — Conversion events attributed to the workflow's message steps, each summed over the steps. `null` when the workflow has no conversion data, or conversion tracking is not enabled for the account.
- `channels` (map from string to automationChannelMetrics, optional) — Message metrics summed per channel, keyed by channel (`email`, `sms`, `whatsapp`, `push`). Only the channels the workflow sends through are present.
- `steps` (list of AutomationWorkflowMetricsStepsItems, optional) — Only with `include=steps`. Every step of the workflow, in order.

## Errors

### 400 Bad Request Error

A query parameter is unknown, given twice or invalid: `date_range` combined with `from_date` or `to_date`, only one of `from_date` and `to_date`, a date in another format, or `from_date` after `to_date`.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 401 Unauthorized Error

Authentication failed

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 403 Forbidden Error

The API key or OAuth token is not allowed to read automations: the OAuth token lacks the `automation:read` scope, or the API key is restricted.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 404 Not Found Error

No automation workflow with this ID in the account

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 503 Service Unavailable Error

A metrics source is unavailable. Try again later.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

## Types

### AutomationWorkflowMetricsDateRange

The date range the metrics cover

- `period` (string, optional) — The `date_range` preset used, `custom` for `from_date` and `to_date`, or `all_time` when neither was given
- `from` (datetime, optional) — Start of the range, UTC (`YYYY-MM-DDThh:mm:ssZ`). For `all_time`, 15 minutes before the workflow was created.
- `to` (datetime, optional) — End of the range, UTC. For a preset or `all_time`, when the request was served; for a `to_date` given as a date, 23:59:59 that day.

### AutomationWorkflowMetricsThroughput

Contacts over the date range, except `active_now`, which is a snapshot

- `started` (integer, optional) — Contacts that started the workflow
- `finished` (integer, optional) — Contacts that reached the end of the workflow
- `suspended` (integer, optional) — Contacts that left the workflow before its end
- `active_now` (AutomationWorkflowMetricsThroughputActiveNow, optional) — Contacts in the workflow when the request was served
- `entry_breakdown` (AutomationWorkflowMetricsThroughputEntryBreakdown, optional) — Contacts that started the workflow through the triggers it has now, and through triggers that were deleted since

### AutomationWorkflowMetricsConversions

Conversion events attributed to the workflow's message steps, each summed over the steps. `null` when the workflow has no conversion data, or conversion tracking is not enabled for the account.

- `currency` (string, optional) — Currency of `revenue`
- `events` (list of AutomationWorkflowMetricsConversionsEventsItems, optional)

### automationChannelMetrics

Message metrics of a channel or step. A metric the channel does not report is `null`: SMS reports clicks and unsubscribes, WhatsApp unsubscribes, push clicks and unique clicks, and email all of them. Rates are fractions between 0 and 1, `null` when their denominator is 0; open, click-through, unsubscribe and spam complaint rates are over delivered messages, click-to-open over unique opens.

- `sent` (integer, optional)
- `delivered` (integer, optional)
- `deliverability_rate` (double, optional, nullable)
- `opens` (integer, optional, nullable)
- `unique_opens` (integer, optional, nullable)
- `open_rate` (double, optional, nullable)
- `clicks` (integer, optional, nullable)
- `unique_clicks` (integer, optional, nullable)
- `click_through_rate` (double, optional, nullable)
- `click_to_open_rate` (double, optional, nullable)
- `soft_bounces` (integer, optional, nullable)
- `hard_bounces` (integer, optional, nullable)
- `unsubscribes` (integer, optional, nullable)
- `unsubscribe_rate` (double, optional, nullable)
- `spam_complaints` (integer, optional, nullable)
- `spam_complaint_rate` (double, optional, nullable)
- `untrackable_contacts` (integer, optional, nullable) — Contacts whose opens cannot be tracked (email only)

### AutomationWorkflowMetricsStepsItems

- `id` (integer, optional) — ID of the step
- `type` (string, optional) — Type of the step
- `channel` (string, optional, nullable) — Channel of a message step (`email`, `sms`, `whatsapp` or `push`), `null` otherwise
- `contacts` (integer, optional) — Contacts that went through the step over the date range
- `metrics` (automationChannelMetrics, optional, nullable) — Message metrics of a message step, `null` otherwise

### AutomationWorkflowMetricsThroughputActiveNow

Contacts in the workflow when the request was served

- `count` (integer, optional)
- `as_of` (string, optional) — When the count was taken

### AutomationWorkflowMetricsThroughputEntryBreakdown

Contacts that started the workflow through the triggers it has now, and through triggers that were deleted since

- `through_displayed_triggers` (integer, optional)
- `through_deleted_triggers` (integer, optional)

### AutomationWorkflowMetricsConversionsEventsItems

- `id` (integer, optional) — ID of the conversion event
- `name` (string, optional) — Name of the conversion event
- `count` (integer, optional) — Number of conversions
- `revenue` (double, optional) — Revenue of the conversions

## Examples

**Response**

```json
{
  "id": 1271,
  "name": "Welcome series",
  "status": "active",
  "date_range": {
    "period": "last_30_days",
    "from": "2024-01-15T09:30:00Z",
    "to": "2024-01-15T09:30:00Z"
  },
  "throughput": {
    "started": 1520,
    "finished": 1302,
    "suspended": 12,
    "active_now": {
      "count": 206,
      "as_of": "string"
    },
    "entry_breakdown": {
      "through_displayed_triggers": 1,
      "through_deleted_triggers": 1
    }
  },
  "conversions": {
    "currency": "EUR",
    "events": [
      {
        "id": 1,
        "name": "Order completed",
        "count": 1,
        "revenue": 1.1
      }
    ]
  },
  "channels": {},
  "steps": [
    {
      "id": 1,
      "type": "send_email",
      "channel": "string",
      "contacts": 1,
      "metrics": {
        "sent": 1480,
        "delivered": 1461,
        "deliverability_rate": 0.9872,
        "opens": 1,
        "unique_opens": 1,
        "open_rate": 0.4127,
        "clicks": 1,
        "unique_clicks": 1,
        "click_through_rate": 1.1,
        "click_to_open_rate": 1.1,
        "soft_bounces": 1,
        "hard_bounces": 1,
        "unsubscribes": 1,
        "unsubscribe_rate": 1.1,
        "spam_complaints": 1,
        "spam_complaint_rate": 1.1,
        "untrackable_contacts": 1
      }
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.brevo.com/v3/automation/workflows/1/metrics"

querystring = {"from_date":"2026-11-01","to_date":"2026-11-30"}

headers = {"api-key": "<api-key>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30';
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("api-key", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30")
  .header("api-key", "<api-key>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30', [
  'headers' => [
    'api-key' => '<api-key>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<api-key>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["api-key": "<api-key>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.brevo.com/v3/automation/workflows/1/metrics?from_date=2026-11-01&to_date=2026-11-30")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```