Workflow can be used to prepare source tables for Master Segments.

You can start the creation of a master segment by pre-processing data using workflows.

Here’s an example workflow task using an HTTP operator to start the creation of a master segment.

+kick_audience_workflow:
  http>: "https://api-cdp.treasuredata.com/audiences/YOUR_AUDIENCE_ID/run"
  method: POST
  headers:
    - authorization: "TD1 ${secret:td.apikey}"
  retry: true