Retrieve number of profiles based on set of segment rules

Retrieve the number of profiles produced by a set of segment rules.

SecurityTdApikeyAuth
Request
path Parameters
audienceId
required
integer <int64>

Master Segment id of the segment

Request Body schema: application/json
columns
Array of strings
realtime
boolean
Deprecated

use kind instead

kind
integer

0: batch, 1: realtime, 2: funnel_stage

partial_v5_rule.yaml-v5IonRule-ionRule (object) or (object or null) (partial_v5_rule.yaml-v5IonRule)
object

required if creating segment as a rule of funnel_stage

Responses
200

success

400

Given parameters are not valid

401

Unauthorized; You don't provide valid credentials. Maybe you didn't specify valid TD's Master API Key as 'TD1 {Your TD Master API Key}'.

403

Requested resource or action is not allowed because you don't have sufficient permissions

404

The specified resource was not found

4XX

There is a high possibility of error of the authentication system. Please check the contents and authority of the key. Please contact the TD support team if you do not resolve it.

5XX

System error. Because there is a possibility of a temporary error due to network trouble and so on, we recommend several times retry on request side. Please contact the TD support team if you do not resolve it.

post/audiences/{audienceId}/segments/queries
Request samples
application/json
{
  • "columns": [
    ],
  • "realtime": true,
  • "kind": 0,
  • "rule": {
    },
  • "funnel_stage": {
    }
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "queryId": "10210520-b895-40ca-bce5-474f9643bf53",
  • "status": "success",
  • "count": 0,
  • "maxPage": 0,
  • "error": "string",
  • "jobid": "string",
  • "countJobid": "string",
  • "customerGroupCount": 0
}