---
title: "Retrieve guessed rule"
method: GET
path: "/audiences/{audienceId}/predictive_segments/guess_rule_async"
tags: ["Predictive Segments"]
---

# Retrieve guessed rule

`GET /audiences/{audienceId}/predictive_segments/guess_rule_async`

Retrieve a list of guessed rules associated with a predictive scoring model.

## Path parameters

- `audienceId` integer, required

## Query parameters

- `segmentId` integer, required

## Response `200`

success

- object
  - `status` 'success' | 'running'
  - `rule` PredictiveSegmentRule
    - `categoricalAsColumnNames` string[]
    - `categoricalArrayAsColumnNames` string[]
    - `quantitativeAsColumnNames` string[]
    - `preprocess` PredictiveSegmentPreprocessItem[] — Definition of preprocess. All of `$item.column` must be specified in one of categoricalAsColumnNames, categoricalArrayAsColumnNames, or quantitativeAsColumnNames.
      - `column` string, required
      - `source` object, required
        - `column` string
        - `table` string
        - `functions` FunctionExpression[]
          - union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …

## Other responses

- `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.

---

[API](https://skmtc.net/treasure/apis/cdp-api.md) · [All operations](https://skmtc.net/treasure/apis/cdp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/cdp-api/revisions/24caa8eb809b/schema)
