---
updatedAt: 2026-10-20T09:46:20.000Z
agentTools:
  projectIndex: https://developer.optimove.com/llms.txt
---

# Customer Actions By Target Group

Returns a list of customers and the details of the marketing actions they received, for a particular target group ID on a particular date.

### Rate Limit

> ***For Optimove's general API rate limit, see the [Understanding API Rate Limits](https://developer.optimove.com/reference/understanding-api-rate-limits) reference.***

### Notes

* By specifying a **ChannelID**, you can limit the results returned to marketing actions sent via a particular channel. You can see the available ChannelID values [here](https://developer.optimove.com/docs/api-channelid-values) and retrieve the available execution channel IDs and associated channel names using the [GetExecutionChannels](https://developer.optimove.com/reference/get_actions-getexecutionchannels) function.
* The results may optionally include customer IDs of customers included in the control group (i.e., those who did not actually receive the campaign). To include these customers in the response, set IncludeControlGroup=1 (if omitted or set to 0, control group customer IDs will not be returned). If included, the response identifies these customers by an ActionID of 1.
* This function does not return information about a one-time campaign; thus, an error results if -1 is passed as the target group ID. To retrieve information about one-time campaigns, use [GetCustomerOneTimeActionsByDate](https://developer.optimove.com/reference/get_customers-getcustomeronetimeactionsbydate) or [GetCustomerOneTimeActionsByCampaign.](https://developer.optimove.com/reference/get_customers-getcustomeronetimeactionsbycampaign)

**Sample Request**

<https://apiX.optimove.net/current/customers/GetCustomerActionsByTargetGroup?TargetGroupID=2&Date=2018-02-24&IncludeControlGroup=True&IncludeRecipientGroupID=True&CustomerAttributes=Alias;Country>

**Sample Response**

```json
[
  {"CustomerID":"A1342","RecipientGroupID":1,"ActionID":49,"ChannelID":504,
   	"CustomerAttributes":["BuddyZZ","UK"]}, 
  {"CustomerID":"G4650","RecipientGroupID":1,"ActionID":49,"ChannelID":504,
   	"CustomerAttributes":["Pax65","DE"]}
]
```

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Optimove API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api4.optimove.net",
      "description": "US Environment"
    },
    {
      "url": "https://api5.optimove.net",
      "description": "EU Environment"
    }
  ],
  "paths": {
    "/Customers/GetCustomerActionsByTargetGroup": {
      "get": {
        "tags": [
          "Customers"
        ],
        "summary": "Customer Actions By Target Group",
        "description": "Returns a list of customers and the details of the marketing actions they received, for a particular target group ID on a particular date.",
        "parameters": [
          {
            "name": "targetGroupID",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "CustomerAttribute",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeControlGroup",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "IncludeRecipientGroupID",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "channelId",
            "in": "query",
            "description": "The identifier of a particular campaign execution channel.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Optimove.API.Models.OptimoveCustomerAC"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Optimove.API.Models.OptimoveCustomerAC": {
        "type": "object",
        "properties": {
          "CustomerID": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "API KEY",
        "name": "X-API-KEY",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}
```