Skip to content

Audience

Work with saved audiences used for targeting and segmentation. Supports bulk fetch by ID and creation of a saved audience.

Fetch audience(s) by id. Supports bulk fetch.

Request

Security
bearerAuth and apiKeyAuth
Query
idstring

Comma-separated list of audience ids

curl -i -X GET \
  'https://api3.sprinklr.com/prod/api/v3/audience?id=string' \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Key: YOUR_API_KEY_HERE'

Responses

Success

Bodyapplication/json
Array [
idstring

Unique id of the audience

namestringrequired

Name of the audience

descriptionstring

Description of the audience

audienceTypestring

Type of audience, e.g. SAVED_AUDIENCE

channelTypesArray of strings
accountTypesArray of strings

Account types for this audience

channelAudienceobject

Channel audience details including targeting values

clientCustomPropertiesobject

Client custom properties on the audience

partnerCustomPropertiesobject

Partner custom properties on the audience

createdTimeinteger, (int64)

Timestamp when the audience was created

modifiedTimeinteger, (int64)

Timestamp when the audience was last updated

attributesobject

Additional attributes for the audience

targetingValuesobject

Targeting values as a map where key is the targeting field name and value is a list of targeting options

keystringrequired

Unique key for the parent targeting value

labelstring

Display label for the parent targeting value

additionalobject

Additional properties for the targeting option

parentTargetingValuesobject

Parent targeting values as a map where key is the targeting field name and value is a parent targeting value

]
Response
[ { "id": "string", "name": "string", "description": "string", "audienceType": "string", "channelTypes": [ … ], "accountTypes": [ … ], "channelAudience": {}, "clientCustomProperties": { … }, "partnerCustomProperties": { … }, "createdTime": 0, "modifiedTime": 0, "attributes": { … }, "targetingValues": { … }, "key": "string", "label": "string", "additional": { … }, "parentTargetingValues": { … } } ]