Treasure Data Segments API

In marketing, a segment is a container that groups profiles (usually people) who share one or more common characteristics. In Treasure Data, the parent segment is your total population of people, accounts, or other type of collection and can be both existing and potential customers. You create segments to divide the population into subgroups of consumers based on some type of shared characteristics. Segments and subsegments enable more specific targeting for your marketing campaigns. _Treasure Data is making an effort to use more inclusive language in its product, content, and customer solutions. As we gradually make the move to replace insensitive language beginning in our UI, you may continue to see parent segments in the UI, for example, referenced as master segment in portions of Treasure Data APIs._

Business capability
Customer Segmentation Management BC-420.20

Operations 16

GET /audiences/{audienceId}/segments Retrieve list of segments #
POST /audiences/{audienceId}/segments Create new segment #
GET /audiences/{audienceId}/folders/{folderId}/segments Retrieve list of segments in a folder #
POST /audiences/{audienceId}/segments/query Retrieve SQL from segment rule #
POST /audiences/{audienceId}/segments/queries Retrieve number of profiles based on set of segment rules #
GET /audiences/{audienceId}/segments/{segmentId} Retrieve segment by ID #
PUT /audiences/{audienceId}/segments/{segmentId} Update segment #
DELETE /audiences/{audienceId}/segments/{segmentId} Delete segment (legacy) #
GET /audiences/{audienceId}/segments/queries/{queryId} Retrieve status of query #
POST /audiences/{audienceId}/segments/queries/{queryId}/kill Kill current running query of segment #
GET /audiences/{audienceId}/segments/queries/{queryId}/customers Retrieve profiles of query #
GET /audiences/{audienceId}/segments/{segmentId}/statistics Retrieve population statistics of segment #
POST /entities/segments Create segment #
GET /entities/segments/{id} Retrieve segment by ID #
PATCH /entities/segments/{id} Update segment #
DELETE /entities/segments/{id} Delete segment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/treasure-data-segments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

treasure-data-segments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: cdp-api Segments API
  description: All of the CDP APIs are organized around REST - if you've interacted with a RESTful API already, many of the concepts will be familiar to you. All API calls to CDP API should be made to the following endpoints depending on the region. For historical reasons there are REST API endpoints and JSON:API endpoints. JSON:API endpoints are located under "/entities".
  termsOfService: https://www.treasuredata.com/terms/
  version: 1.0.0
servers:
- url: https://api-cdp.treasuredata.com
- url: https://api-cdp.treasuredata.co.jp
- url: https://api-cdp.eu01.treasuredata.com
- url: https://api-cdp.ap02.treasuredata.com
- url: https://api-cdp.ap03.treasuredata.com
tags:


# --- truncated at 32 KB (76 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/treasure-data/refs/heads/main/openapi/treasure-data-segments-api-openapi.yml