Get targets details

To see details of targets present in a specific target group

Click on the 200 symbol on right side to see sample 200 response

API Endpoint example

https://eu.api.capillarytech.com/v3/targetGroups/2163/targets

curl --location 'https://eu.api.capillarytech.com/v3/targetGroups/2163/targets' \
--header 'Authorization: Basic dGpfY2FwaWxsYXJ5OjVjMTc' \
--header 'Cookie: _cfuvid=Hz5vxex9nxE.gNjvnTwDBDgfNLFEoicCUfrgNIeurLY-1750403636294-0.0.1.1-604800000' 

Response Parameter

ParameterTypeDescription
dataArrayList of objects containing the main data payload.
data[].idIntegerUnique identifier for the record.
data[].attributionObjectMetadata about the creation and updates of the record.
attribution.createdOnStringTimestamp when the record was created (ISO 8601 format).
attribution.lastUpdatedOnStringTimestamp when the record was last updated (ISO 8601 format).
attribution.lastUpdatedByObjectDetails of the user who last updated the record.
lastUpdatedBy.idIntegerUnique identifier of the user.
lastUpdatedBy.codeStringCode associated with the user.
lastUpdatedBy.descriptionStringDescription of the user (empty in this case).
lastUpdatedBy.nameStringName of the user.
lastUpdatedBy.typeStringType of the user (e.g., "TILL").
attribution.createdByObjectDetails of the user who created the record (same structure as lastUpdatedBy).
data[].nameStringName of the target group (e.g., "uat_target_group_32").
data[].emfRuleSetIdIntegerIdentifier for the EMF rule set.
data[].targetTypeStringType of target (e.g., "ALL").
data[].targetEntityStringEntity targeted (e.g., "TRANSACTION").
data[].eventNameStringName of the event (e.g., "TransactionAdd").
data[].targetGroupIdIntegerIdentifier for the target group.
data[].descriptionStringDescription of the target group (empty in this case).
data[].activeBooleanIndicates whether the target group is active.
data[].expressionStringLogical expression for the target group (e.g., "true").
data[].expressionJsonStringJSON representation of the expression.
data[].filtersArrayList of filters applied (empty in this case).
data[].enrolmentMethodStringMethod of enrolment (e.g., "IMPORT").
data[].defaultValuesArrayList of default values for the target group.
defaultValues[].idIntegerUnique identifier for the default value.
defaultValues[].periodIdIntegerIdentifier for the period associated with the default value.
defaultValues[].defaultValueFloatDefault value for the period.
data[].targetPeriodDefaultValuesMapObjectMapping of period IDs to their default values.
targetPeriodDefaultValuesMap.<periodId>ObjectDetails of the default value for the specified period.
<periodId>.idIntegerUnique identifier for the default value.
<periodId>.periodIdIntegerIdentifier for the period.
<periodId>.defaultValueFloatDefault value for the period.
data[].targetMilestoneTriggersArrayList of milestone triggers (empty in this case).
data[].extendedFieldInfoObjectAdditional information about the extended field.
extendedFieldInfo.nameStringName of the extended field (e.g., "points").
extendedFieldInfo.aggregateFunctionStringAggregation function for the field (e.g., "SUM").
{
    "data": [
        {
            "id": 2317,
            "attribution": {
                "createdOn": "2025-05-22T03:43:09.000+0000",
                "lastUpdatedOn": "2025-05-22T03:43:09.000+0000",
                "lastUpdatedBy": {
                    "id": 75155297,
                    "code": "tj_capillary",
                    "description": "",
                    "name": "tj_capillary",
                    "type": "TILL"
                },
                "createdBy": {
                    "id": 75155297,
                    "code": "tj_capillary",
                    "description": "",
                    "name": "tj_capillary",
                    "type": "TILL"
                }
            },
            "name": "uat_target_group_32",
            "emfRuleSetId": 126404330,
            "targetType": "ALL",
            "targetEntity": "TRANSACTION",
            "eventName": "TransactionAdd",
            "targetGroupId": 2163,
            "description": "",
            "active": false,
            "expression": "true",
            "expressionJson": "{\"arity\":\"literal\",\"value\":\"true\",\"type\":\"boolean:primitive\"}",
            "filters": [],
            "enrolmentMethod": "IMPORT",
            "defaultValues": [
                {
                    "id": 21628,
                    "periodId": 19336,
                    "defaultValue": 1.000
                },
                {
                    "id": 21629,
                    "periodId": 19337,
                    "defaultValue": 1.000
                }
            ],
            "targetPeriodDefaultValuesMap": {
                "19336": {
                    "id": 21628,
                    "periodId": 19336,
                    "defaultValue": 1.000
                },
                "19337": {
                    "id": 21629,
                    "periodId": 19337,
                    "defaultValue": 1.000
                }
            },
            "targetMilestoneTriggers": [],
            "extendedFieldInfo": {
                "name": "points",
                "aggregateFunction": "SUM"
            }
        }
    ],
    "errors": null,
    "warnings": null
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!