Skip to content

Create a saved audience.

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
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

curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/audience \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "id": "string",
    "name": "string",
    "description": "string",
    "audienceType": "string",
    "channelTypes": [
      "string"
    ],
    "accountTypes": [
      "string"
    ],
    "channelAudience": {},
    "clientCustomProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "partnerCustomProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "createdTime": 0,
    "modifiedTime": 0,
    "attributes": {
      "property1": "string",
      "property2": "string"
    },
    "targetingValues": {
      "property1": [
        {}
      ],
      "property2": [
        {}
      ]
    },
    "key": "string",
    "label": "string",
    "additional": {
      "property1": "string",
      "property2": "string"
    },
    "parentTargetingValues": {
      "property1": {},
      "property2": {}
    }
  }'

Responses

Success

Bodyapplication/json
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": [ "string" ], "accountTypes": [ "string" ], "channelAudience": {}, "clientCustomProperties": { "property1": [ … ], "property2": [ … ] }, "partnerCustomProperties": { "property1": [ … ], "property2": [ … ] }, "createdTime": 0, "modifiedTime": 0, "attributes": { "property1": "string", "property2": "string" }, "targetingValues": { "property1": [ … ], "property2": [ … ] }, "key": "string", "label": "string", "additional": { "property1": "string", "property2": "string" }, "parentTargetingValues": { "property1": {}, "property2": {} } }