Segments
Operations related to Segments, the groups of UserPoints who share common characteristics, behaviors, or interests. Supports multiple types:
User Query (OTQL-based)
Edge (client-side evaluation)
User List (static import)
User Partition (random distribution for A/B testing)
User Lookalike (ML-generated expansion)
User Activation (campaign interaction tracking)
User Pixel (pixel-based collection)
Relevant documentation:
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/audience_segments/{segment_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "USER_DATA_SUBSCRIPTION",
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/audience_segments/{segment_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 344
{
"type": "USER_DATA_SUBSCRIPTION",
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"datamart_id": "text",
"persisted": false,
"paused": false,
"organisation_id": "text",
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}{
"status": "ok",
"data": {
"type": "USER_DATA_SUBSCRIPTION",
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/audience_segments/{segment_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/audience_segments/{segment_id}/clone HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 344
{
"type": "USER_DATA_SUBSCRIPTION",
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"datamart_id": "text",
"persisted": false,
"paused": false,
"organisation_id": "text",
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}{
"status": "ok",
"data": {
"type": "USER_DATA_SUBSCRIPTION",
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
}List of audience segment Ids we want to query
Query language
Query language subtype
Get only segments created on or after (Unix timestamp)
Get only segments created on or before (Unix timestamp)
Segment used for a clean room dataset
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/audience_segments HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"max_results": 1,
"count": 1,
"total": 1,
"first_result": 1,
"data": [
{
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
]
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/audience_segments HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 344
{
"type": "USER_DATA_SUBSCRIPTION",
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"datamart_id": "text",
"persisted": false,
"paused": false,
"organisation_id": "text",
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}{
"status": "ok",
"data": {
"type": "USER_DATA_SUBSCRIPTION",
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
}The organisation to retrieve segment usage limits for
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/audience_segment_limits?organisation_id=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"creation_ts": 0,
"last_modified_by": "text",
"max_activated_segments": 0,
"created_by": "text",
"last_modified_ts": 0,
"organisation_id": "text",
"max_total_segments": 0
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/clean_room_audience_segments?clean_room_id=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"total": 1,
"max_results": 1,
"first_result": 1,
"data": [
{
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
],
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/clean_room_audience_segments/{segment_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "USER_DATA_SUBSCRIPTION",
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
}Last updated
Was this helpful?