For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Clean Room Management

Operations related to Data Clean Rooms, the secure environments for privacy-safe data collaboration and analysis between multiple parties without sharing raw user data. Enables dataset onboarding, overlap analysis, differential privacy-protected insights generation, and activation of matched audiences (common and exclusive users) on authorized platforms while maintaining strict data confidentiality and GDPR compliance.

Find clean room templates

get
/organisations/{organisation_id}/clean_room_templates
Path parameters
organisation_idinteger · int64Required

Organisation id

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be returned by this search

Responses
200

Success !

application/json
countintegerRequired
max_resultsintegerRequired
totalintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
get/organisations/{organisation_id}/clean_room_templates
GET /v1/organisations/{organisation_id}/clean_room_templates HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "max_results": 1,
  "total": 1,
  "first_result": 1,
  "status": "ok",
  "data": [
    {
      "name": "text",
      "archived_by": "text",
      "created_ts": 0,
      "collaborative_app_name": "text",
      "authorized_presets": [
        "text"
      ],
      "collaborative_app_id": "text",
      "organisation_id": "text",
      "created_by": "text",
      "last_modified_by": "text",
      "archived_ts": 0,
      "reference_datasets": [
        {
          "identifiers_freshness_days": 0,
          "reference_dataset_id": "text",
          "matching_keys": [
            "EMAIL"
          ],
          "custom_identifier_compartment_ids": [
            "text"
          ],
          "custom_identifier_labels": [
            "text"
          ],
          "refresh_frequency": "DAILY"
        }
      ],
      "description": "text",
      "id": "text",
      "archived": false,
      "last_modified_ts": 0
    }
  ]
}

Create clean room template

post
/organisations/{organisation_id}/clean_room_templates
Path parameters
organisation_idinteger · int64Required

Organisation id

Body
namestringRequired
archived_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyOptionalDefault: 0
collaborative_app_namestringRead-onlyOptional
authorized_presetsstring[]Required
collaborative_app_idstringRequired
organisation_idstringRead-onlyRequired
created_bystringRead-onlyOptional
last_modified_bystringRead-onlyOptional
archived_tsinteger · int64Read-onlyOptionalDefault: 0
descriptionstringOptional
idstringRead-onlyRequired
archivedbooleanRequiredDefault: false
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/organisations/{organisation_id}/clean_room_templates
POST /v1/organisations/{organisation_id}/clean_room_templates HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 298

{
  "name": "text",
  "authorized_presets": [
    "text"
  ],
  "collaborative_app_id": "text",
  "reference_datasets": [
    {
      "identifiers_freshness_days": 0,
      "reference_dataset_id": "text",
      "matching_keys": [
        "EMAIL"
      ],
      "custom_identifier_compartment_ids": [
        "text"
      ],
      "refresh_frequency": "DAILY"
    }
  ],
  "description": "text",
  "archived": false
}
{
  "status": "ok",
  "data": {
    "name": "text",
    "archived_by": "text",
    "created_ts": 0,
    "collaborative_app_name": "text",
    "authorized_presets": [
      "text"
    ],
    "collaborative_app_id": "text",
    "organisation_id": "text",
    "created_by": "text",
    "last_modified_by": "text",
    "archived_ts": 0,
    "reference_datasets": [
      {
        "identifiers_freshness_days": 0,
        "reference_dataset_id": "text",
        "matching_keys": [
          "EMAIL"
        ],
        "custom_identifier_compartment_ids": [
          "text"
        ],
        "custom_identifier_labels": [
          "text"
        ],
        "refresh_frequency": "DAILY"
      }
    ],
    "description": "text",
    "id": "text",
    "archived": false,
    "last_modified_ts": 0
  }
}

List custom identifier matching keys for bunker

get
/bunkers/{bunker_id}/custom_identifier_matching_keys
Path parameters
bunker_idstringRequired
Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
max_resultsintegerRequired
get/bunkers/{bunker_id}/custom_identifier_matching_keys
GET /v1/bunkers/{bunker_id}/custom_identifier_matching_keys HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {
      "compartment_id": "text",
      "compartment_name": "text",
      "datamart_id": "text"
    }
  ],
  "count": 1,
  "first_result": 1,
  "status": "ok",
  "total": 1,
  "max_results": 1
}

List available collaborative apps for clean room

get
/clean_room_collaborative_apps
Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be returned by this search

Responses
200

Success !

application/json
countintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
totalintegerRequired
max_resultsintegerRequired
get/clean_room_collaborative_apps
GET /v1/clean_room_collaborative_apps HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "data": [
    {
      "description": "text",
      "authorized_outputs": [
        "INSIGHTS"
      ],
      "archived": false,
      "name": "text",
      "type": "DATA_SOURCING",
      "id": "text"
    }
  ],
  "status": "ok",
  "first_result": 1,
  "total": 1,
  "max_results": 1
}

Perform an action on datasets matching

post
/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/actions
Path parameters
clean_room_idstringRequired

Clean room Id

datasets_matching_idstringRequired

Datasets intersection Id

Body
actionstring · enumRequiredPossible values:
organisation_idstringOptional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/actions
POST /v1/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/actions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "action": "ARCHIVE",
  "organisation_id": "text"
}
{
  "status": "ok",
  "data": {
    "refresh_frequency": "DAILY",
    "initiator_org_id": "text",
    "custom_identifier_labels": [
      "text"
    ],
    "archived": false,
    "identifiers_freshness_days": 0,
    "name": "text",
    "feeds": [
      {
        "artifact_id": "text",
        "id": "text",
        "plugin_id": "text",
        "plugin_version_id": "text",
        "audience_segment_id": "text",
        "name": "text"
      }
    ],
    "created_ts": 0,
    "last_refresh_ts": 0,
    "matched_datasets": [
      {
        "dataset": {
          "type": "SEGMENT",
          "expiration_ts": 0,
          "properties": [
            {
              "id": "text",
              "property_type": "EMAIL",
              "position": 0,
              "name": "text",
              "matching_key": false
            }
          ],
          "status": "SYNCHRONIZATION_PENDING",
          "organisation_id": "text",
          "organisation_name": "text",
          "description": "text",
          "records_count": 0,
          "source": "FILE",
          "id": "text",
          "name": "text"
        },
        "organisation_id": "text",
        "dataset_update_id": "text",
        "purposes": [
          "ACTIVATION"
        ],
        "clean_room_id": "text",
        "dataset_id": "text",
        "created_by": "text",
        "expiration_ts": 0,
        "created_ts": 0
      }
    ],
    "status": "PENDING",
    "datasets_matching_history_key_stats": [
      {
        "related_identifiers_count": 0,
        "compartment_name": "text",
        "common_identifiers_count": 0,
        "compartment_id": "text",
        "matching_key_type": "EMAIL",
        "datasets_matching_history_id": "text"
      }
    ],
    "last_modified_ts": 0,
    "count_matched_records": 0,
    "last_modified_by": "text",
    "id": "text",
    "segment_id": "text",
    "custom_identifier_compartment_ids": [
      "text"
    ],
    "external_dashboard_url": "text",
    "matching_keys": [
      "EMAIL"
    ],
    "clean_room_id": "text",
    "created_by": "text",
    "description": "text"
  }
}

Search dataset by Id

get
/datasets/{dataset_id}
Path parameters
dataset_idstringRequired

The dataset id

Query parameters
organisation_idinteger · int64Required

Organisation owning the dataset

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datasets/{dataset_id}
GET /v1/datasets/{dataset_id}?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "type": "SEGMENT",
    "bunker_id": "text",
    "source": "FILE",
    "status": "SYNCHRONIZATION_PENDING",
    "records_count": 0,
    "archived_by": "text",
    "properties": [
      {
        "fill_rate": 0,
        "name": "text",
        "position": 0,
        "compartment_id": "text",
        "data_sample": [
          "text"
        ],
        "property_type": "EMAIL",
        "compartment_name": "text",
        "id": "text",
        "matching_key": false
      }
    ],
    "description": "text",
    "organisation_id": "text",
    "created_by": "text",
    "archived": false,
    "last_modified_ts": 0,
    "archived_ts": 0,
    "created_ts": 0,
    "id": "text",
    "organisation_name": "text",
    "last_modified_by": "text",
    "expiration_ts": 0,
    "name": "text"
  }
}

Modify dataset

put
/datasets/{dataset_id}
Path parameters
dataset_idstringRequired

The dataset id

Body
or
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/datasets/{dataset_id}
PUT /v1/datasets/{dataset_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 312

{
  "type": "SEGMENT",
  "bunker_id": "text",
  "source": "FILE",
  "status": "SYNCHRONIZATION_PENDING",
  "properties": [
    {
      "fill_rate": 0,
      "name": "text",
      "position": 0,
      "compartment_id": "text",
      "data_sample": [
        "text"
      ],
      "property_type": "EMAIL",
      "matching_key": false
    }
  ],
  "organisation_id": "text",
  "archived": false,
  "expiration_ts": 0,
  "name": "text"
}
{
  "status": "ok",
  "data": {
    "type": "SEGMENT",
    "bunker_id": "text",
    "source": "FILE",
    "status": "SYNCHRONIZATION_PENDING",
    "records_count": 0,
    "archived_by": "text",
    "properties": [
      {
        "fill_rate": 0,
        "name": "text",
        "position": 0,
        "compartment_id": "text",
        "data_sample": [
          "text"
        ],
        "property_type": "EMAIL",
        "compartment_name": "text",
        "id": "text",
        "matching_key": false
      }
    ],
    "description": "text",
    "organisation_id": "text",
    "created_by": "text",
    "archived": false,
    "last_modified_ts": 0,
    "archived_ts": 0,
    "created_ts": 0,
    "id": "text",
    "organisation_name": "text",
    "last_modified_by": "text",
    "expiration_ts": 0,
    "name": "text"
  }
}

Delete dataset

delete
/datasets/{dataset_id}
Path parameters
dataset_idstringRequired

The dataset id

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/datasets/{dataset_id}
DELETE /v1/datasets/{dataset_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Get a clean room template by id

get
/organisations/{organisation_id}/clean_room_templates/{template_id}
Path parameters
organisation_idinteger · int64Required

Organisation id

template_idstringRequired

Template id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/organisations/{organisation_id}/clean_room_templates/{template_id}
GET /v1/organisations/{organisation_id}/clean_room_templates/{template_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "name": "text",
    "archived_by": "text",
    "created_ts": 0,
    "collaborative_app_name": "text",
    "authorized_presets": [
      "text"
    ],
    "collaborative_app_id": "text",
    "organisation_id": "text",
    "created_by": "text",
    "last_modified_by": "text",
    "archived_ts": 0,
    "reference_datasets": [
      {
        "identifiers_freshness_days": 0,
        "reference_dataset_id": "text",
        "matching_keys": [
          "EMAIL"
        ],
        "custom_identifier_compartment_ids": [
          "text"
        ],
        "custom_identifier_labels": [
          "text"
        ],
        "refresh_frequency": "DAILY"
      }
    ],
    "description": "text",
    "id": "text",
    "archived": false,
    "last_modified_ts": 0
  }
}

Update a clean room template

put
/organisations/{organisation_id}/clean_room_templates/{template_id}
Path parameters
organisation_idinteger · int64Required

Organisation id

template_idstringRequired

Template id

Body
namestringRequired
archived_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyOptionalDefault: 0
collaborative_app_namestringRead-onlyOptional
authorized_presetsstring[]Required
collaborative_app_idstringRequired
organisation_idstringRead-onlyRequired
created_bystringRead-onlyOptional
last_modified_bystringRead-onlyOptional
archived_tsinteger · int64Read-onlyOptionalDefault: 0
descriptionstringOptional
idstringRead-onlyRequired
archivedbooleanRequiredDefault: false
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/organisations/{organisation_id}/clean_room_templates/{template_id}
PUT /v1/organisations/{organisation_id}/clean_room_templates/{template_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 298

{
  "name": "text",
  "authorized_presets": [
    "text"
  ],
  "collaborative_app_id": "text",
  "reference_datasets": [
    {
      "identifiers_freshness_days": 0,
      "reference_dataset_id": "text",
      "matching_keys": [
        "EMAIL"
      ],
      "custom_identifier_compartment_ids": [
        "text"
      ],
      "refresh_frequency": "DAILY"
    }
  ],
  "description": "text",
  "archived": false
}
{
  "status": "ok",
  "data": {
    "name": "text",
    "archived_by": "text",
    "created_ts": 0,
    "collaborative_app_name": "text",
    "authorized_presets": [
      "text"
    ],
    "collaborative_app_id": "text",
    "organisation_id": "text",
    "created_by": "text",
    "last_modified_by": "text",
    "archived_ts": 0,
    "reference_datasets": [
      {
        "identifiers_freshness_days": 0,
        "reference_dataset_id": "text",
        "matching_keys": [
          "EMAIL"
        ],
        "custom_identifier_compartment_ids": [
          "text"
        ],
        "custom_identifier_labels": [
          "text"
        ],
        "refresh_frequency": "DAILY"
      }
    ],
    "description": "text",
    "id": "text",
    "archived": false,
    "last_modified_ts": 0
  }
}

Find clean room datasets

get
/clean_rooms/{clean_room_id}/datasets
Path parameters
clean_room_idstringRequired

Clean room owning datasets

Query parameters
organisation_idinteger · int64Optional

Organisation owning datasets

archivedbooleanOptional

If true the result will contain only archived clean rooms

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

as_organisation_idstringOptional

View the clean room data from this organisation's side. Only honoured when the caller has access to it; ignored otherwise.

Responses
200

Success !

application/json
max_resultsintegerRequired
countintegerRequired
first_resultintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
get/clean_rooms/{clean_room_id}/datasets
GET /v1/clean_rooms/{clean_room_id}/datasets HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "max_results": 1,
  "count": 1,
  "data": [
    {
      "expiration_ts": 0,
      "archived": false,
      "dataset_id": "text",
      "purposes": [
        "ACTIVATION"
      ],
      "created_by": "text",
      "clean_room_id": "text",
      "last_modified_by": "text",
      "dataset": {
        "type": "SEGMENT",
        "expiration_ts": 0,
        "properties": [
          {
            "id": "text",
            "property_type": "EMAIL",
            "position": 0,
            "name": "text",
            "matching_key": false
          }
        ],
        "status": "SYNCHRONIZATION_PENDING",
        "organisation_id": "text",
        "organisation_name": "text",
        "description": "text",
        "records_count": 0,
        "source": "FILE",
        "id": "text",
        "name": "text"
      },
      "archived_ts": 0,
      "last_modified_ts": 0,
      "organisation_id": "text",
      "archived_by": "text",
      "created_ts": 0
    }
  ],
  "first_result": 1,
  "total": 1,
  "status": "ok"
}

share a dataset in a clean room

post
/clean_rooms/{clean_room_id}/datasets
Path parameters
clean_room_idstringRequired

Clean room owning datasets

Body
expiration_tsinteger · int64RequiredDefault: 0
archivedbooleanRequiredDefault: false
dataset_idstringRequired
created_bystringRead-onlyOptional
clean_room_idstringRequired
last_modified_bystringRead-onlyOptional
archived_tsinteger · int64Read-onlyOptionalDefault: 0
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
organisation_idstringRead-onlyRequired
archived_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/clean_rooms/{clean_room_id}/datasets
POST /v1/clean_rooms/{clean_room_id}/datasets HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 185

{
  "expiration_ts": 0,
  "archived": false,
  "dataset_id": "text",
  "purposes": [
    "ACTIVATION"
  ],
  "clean_room_id": "text",
  "dataset": {
    "type": "SEGMENT",
    "status": "SYNCHRONIZATION_PENDING",
    "source": "FILE"
  }
}
{
  "status": "ok",
  "data": {
    "expiration_ts": 0,
    "archived": false,
    "dataset_id": "text",
    "purposes": [
      "ACTIVATION"
    ],
    "created_by": "text",
    "clean_room_id": "text",
    "last_modified_by": "text",
    "dataset": {
      "type": "SEGMENT",
      "expiration_ts": 0,
      "properties": [
        {
          "id": "text",
          "property_type": "EMAIL",
          "position": 0,
          "name": "text",
          "matching_key": false
        }
      ],
      "status": "SYNCHRONIZATION_PENDING",
      "organisation_id": "text",
      "organisation_name": "text",
      "description": "text",
      "records_count": 0,
      "source": "FILE",
      "id": "text",
      "name": "text"
    },
    "archived_ts": 0,
    "last_modified_ts": 0,
    "organisation_id": "text",
    "archived_by": "text",
    "created_ts": 0
  }
}

Get a collaborative app by id

get
/clean_room_collaborative_apps/{collaborative_app_id}
Path parameters
collaborative_app_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/clean_room_collaborative_apps/{collaborative_app_id}
GET /v1/clean_room_collaborative_apps/{collaborative_app_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "description": "text",
    "authorized_outputs": [
      "INSIGHTS"
    ],
    "archived": false,
    "name": "text",
    "type": "DATA_SOURCING",
    "id": "text"
  }
}

Search datasets matching by Id

get
/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}
Path parameters
clean_room_idinteger · int64Required

Clean room Id

datasets_matching_idinteger · int64Required

Datasets intersection Id

Query parameters
as_organisation_idstringOptional

View the matching from this organisation's side. Only honoured when the caller has access to it; ignored otherwise.

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}
GET /v1/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "refresh_frequency": "DAILY",
    "initiator_org_id": "text",
    "custom_identifier_labels": [
      "text"
    ],
    "archived": false,
    "identifiers_freshness_days": 0,
    "name": "text",
    "feeds": [
      {
        "artifact_id": "text",
        "id": "text",
        "plugin_id": "text",
        "plugin_version_id": "text",
        "audience_segment_id": "text",
        "name": "text"
      }
    ],
    "created_ts": 0,
    "last_refresh_ts": 0,
    "matched_datasets": [
      {
        "dataset": {
          "type": "SEGMENT",
          "expiration_ts": 0,
          "properties": [
            {
              "id": "text",
              "property_type": "EMAIL",
              "position": 0,
              "name": "text",
              "matching_key": false
            }
          ],
          "status": "SYNCHRONIZATION_PENDING",
          "organisation_id": "text",
          "organisation_name": "text",
          "description": "text",
          "records_count": 0,
          "source": "FILE",
          "id": "text",
          "name": "text"
        },
        "organisation_id": "text",
        "dataset_update_id": "text",
        "purposes": [
          "ACTIVATION"
        ],
        "clean_room_id": "text",
        "dataset_id": "text",
        "created_by": "text",
        "expiration_ts": 0,
        "created_ts": 0
      }
    ],
    "status": "PENDING",
    "datasets_matching_history_key_stats": [
      {
        "related_identifiers_count": 0,
        "compartment_name": "text",
        "common_identifiers_count": 0,
        "compartment_id": "text",
        "matching_key_type": "EMAIL",
        "datasets_matching_history_id": "text"
      }
    ],
    "last_modified_ts": 0,
    "count_matched_records": 0,
    "last_modified_by": "text",
    "id": "text",
    "segment_id": "text",
    "custom_identifier_compartment_ids": [
      "text"
    ],
    "external_dashboard_url": "text",
    "matching_keys": [
      "EMAIL"
    ],
    "clean_room_id": "text",
    "created_by": "text",
    "description": "text"
  }
}

Update datasets matching

put
/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}
Path parameters
clean_room_idinteger · int64Required

Clean room Id

datasets_matching_idinteger · int64Required

Datasets intersection Id

Body
refresh_frequencystring · enumOptionalPossible values:
initiator_org_idstringRequired
custom_identifier_labelsstring[]Read-onlyOptional
archivedbooleanRead-onlyRequiredDefault: false
identifiers_freshness_daysinteger · int64OptionalDefault: 0
namestringRequired
created_tsinteger · int64Read-onlyRequiredDefault: 0
last_refresh_tsinteger · int64Read-onlyOptionalDefault: 0
statusstring · enumRequiredPossible values:
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
count_matched_recordsinteger · int64Read-onlyOptionalDefault: 0
last_modified_bystringRead-onlyOptional
idstringRead-onlyRequired
segment_idstringRead-onlyOptional
custom_identifier_compartment_idsstring[]Optional
external_dashboard_urlstringOptional
clean_room_idstringRequired
created_bystringRead-onlyOptional
descriptionstringOptional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}
PUT /v1/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 240

{
  "refresh_frequency": "DAILY",
  "initiator_org_id": "text",
  "identifiers_freshness_days": 0,
  "name": "text",
  "status": "PENDING",
  "custom_identifier_compartment_ids": [
    "text"
  ],
  "external_dashboard_url": "text",
  "clean_room_id": "text",
  "description": "text"
}
{
  "status": "ok",
  "data": {
    "refresh_frequency": "DAILY",
    "initiator_org_id": "text",
    "custom_identifier_labels": [
      "text"
    ],
    "archived": false,
    "identifiers_freshness_days": 0,
    "name": "text",
    "feeds": [
      {
        "artifact_id": "text",
        "id": "text",
        "plugin_id": "text",
        "plugin_version_id": "text",
        "audience_segment_id": "text",
        "name": "text"
      }
    ],
    "created_ts": 0,
    "last_refresh_ts": 0,
    "matched_datasets": [
      {
        "dataset": {
          "type": "SEGMENT",
          "expiration_ts": 0,
          "properties": [
            {
              "id": "text",
              "property_type": "EMAIL",
              "position": 0,
              "name": "text",
              "matching_key": false
            }
          ],
          "status": "SYNCHRONIZATION_PENDING",
          "organisation_id": "text",
          "organisation_name": "text",
          "description": "text",
          "records_count": 0,
          "source": "FILE",
          "id": "text",
          "name": "text"
        },
        "organisation_id": "text",
        "dataset_update_id": "text",
        "purposes": [
          "ACTIVATION"
        ],
        "clean_room_id": "text",
        "dataset_id": "text",
        "created_by": "text",
        "expiration_ts": 0,
        "created_ts": 0
      }
    ],
    "status": "PENDING",
    "datasets_matching_history_key_stats": [
      {
        "related_identifiers_count": 0,
        "compartment_name": "text",
        "common_identifiers_count": 0,
        "compartment_id": "text",
        "matching_key_type": "EMAIL",
        "datasets_matching_history_id": "text"
      }
    ],
    "last_modified_ts": 0,
    "count_matched_records": 0,
    "last_modified_by": "text",
    "id": "text",
    "segment_id": "text",
    "custom_identifier_compartment_ids": [
      "text"
    ],
    "external_dashboard_url": "text",
    "matching_keys": [
      "EMAIL"
    ],
    "clean_room_id": "text",
    "created_by": "text",
    "description": "text"
  }
}

Find clean rooms

get
/clean_rooms
Query parameters
organisation_idinteger · int64Required

Organisation owning clean rooms

archivedbooleanOptional

If true the result will contain only archived clean rooms

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
max_resultsintegerRequired
totalintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
get/clean_rooms
GET /v1/clean_rooms?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "max_results": 1,
  "data": [
    {
      "clean_room_organisations": [
        {
          "archived": false,
          "organisation_name": "text",
          "created_ts": 0,
          "purposes": [
            "ACTIVATION"
          ],
          "archived_by": "text",
          "owner": false,
          "created_by": "text",
          "status": "PENDING",
          "last_modified_ts": 0,
          "archived_ts": 0,
          "clean_room_id": "text",
          "organisation_id": "text",
          "last_modified_by": "text"
        }
      ],
      "collaborative_app_id": "text",
      "template_id": "text",
      "organisation_id": "text",
      "clean_room_id": "text",
      "name": "text"
    }
  ],
  "total": 1,
  "first_result": 1,
  "status": "ok"
}

List segment taxonomy entries for a dataset

get
/datasets/{dataset_id}/segment_taxonomy
Path parameters
dataset_idstringRequired

The dataset id

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be returned by this search

Responses
200

Success !

application/json
totalintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
max_resultsintegerRequired
get/datasets/{dataset_id}/segment_taxonomy
GET /v1/datasets/{dataset_id}/segment_taxonomy HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {
      "description": "text",
      "created_ts": 0,
      "membership_count": 0,
      "dataset_id": "text",
      "created_by": "text",
      "last_modified_ts": 0,
      "name": "text",
      "segment_technical_name": "text",
      "expiration_in_minutes": 0,
      "path": "text",
      "last_modified_by": "text"
    }
  ],
  "total": 1,
  "count": 1,
  "status": "ok",
  "first_result": 1,
  "max_results": 1
}

Upload (replace) the segment taxonomy dictionary for a dataset

post
/datasets/{dataset_id}/segment_taxonomy
Path parameters
dataset_idstringRequired

The dataset id

Body
filestring · binary[]Optional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datasets/{dataset_id}/segment_taxonomy
POST /v1/datasets/{dataset_id}/segment_taxonomy HTTP/1.1
Host: api.mediarithmics.local
Content-Type: multipart/form-data
Accept: */*
Content-Length: 19

{
  "file": [
    "binary"
  ]
}
{
  "status": "ok",
  "data": {
    "entries_count": 0,
    "status": "SUCCESS",
    "last_modified_by": "text",
    "last_modified_ts": 0,
    "created_ts": 0,
    "created_by": "text",
    "dataset_id": "text",
    "error_log": "text",
    "id": "text",
    "file_path": "text"
  }
}

Find dataset updates from dataset

get
/datasets/{dataset_id}/updates
Path parameters
dataset_idstringRequired

The dataset id

Query parameters
organisation_idinteger · int64Required

Organisation owning datasets

statusstring · enumOptional

Status of dataset updates

Possible values:
archivedbooleanOptional

If true the result will contain only archived datasets

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
dataobject · DatasetUpdateResource[]Required
countintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
max_resultsintegerRequired
totalintegerRequired
get/datasets/{dataset_id}/updates
GET /v1/datasets/{dataset_id}/updates?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {}
  ],
  "count": 1,
  "status": "ok",
  "first_result": 1,
  "max_results": 1,
  "total": 1
}

Search bunker by Id

get
/bunkers/{bunker_id}
Path parameters
bunker_idstringRequired

The bunker id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
dataone ofRequired
or
get/bunkers/{bunker_id}
GET /v1/bunkers/{bunker_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "created_ts": 0,
    "name": "text",
    "archived": false,
    "organisation_id": "text",
    "is_initialized": false,
    "archived_by": "text",
    "id": "text",
    "created_by": "text",
    "datamart_id": "text",
    "last_state_refresh": 0,
    "last_modified_ts": 0,
    "archived_ts": 0,
    "last_modified_by": "text"
  }
}

Modify bunker

put
/bunkers/{bunker_id}
Path parameters
bunker_idstringRequired

The bunker id

Body
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
dataone ofRequired
or
put/bunkers/{bunker_id}
PUT /v1/bunkers/{bunker_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "name": "text",
  "organisation_id": "text",
  "datamart_id": "text"
}
{
  "status": "ok",
  "data": {
    "created_ts": 0,
    "name": "text",
    "archived": false,
    "organisation_id": "text",
    "is_initialized": false,
    "archived_by": "text",
    "id": "text",
    "created_by": "text",
    "datamart_id": "text",
    "last_state_refresh": 0,
    "last_modified_ts": 0,
    "archived_ts": 0,
    "last_modified_by": "text"
  }
}

apply an action on a clean room

post
/clean_rooms/{clean_room_id}/actions
Path parameters
clean_room_idstringRequired
Body
string · enumOptionalPossible values:
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/clean_rooms/{clean_room_id}/actions
POST /v1/clean_rooms/{clean_room_id}/actions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 9

"PENDING"
{
  "status": "ok",
  "data": {
    "id": "text",
    "archived": false,
    "organisation_id": "text",
    "last_modified_ts": 0,
    "created_ts": 0,
    "template_id": "text",
    "archived_ts": 0,
    "last_modified_by": "text",
    "name": "text",
    "created_by": "text",
    "archived_by": "text"
  }
}

List audience segments associated with a dataset

get
/datasets/{dataset_id}/audience_segments
Path parameters
dataset_idstringRequired

The dataset id

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be returned by this search

keywordstringOptional

Filter segments by name, short description or id

Responses
200

Success !

application/json
countintegerRequired
max_resultsintegerRequired
first_resultintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
get/datasets/{dataset_id}/audience_segments
GET /v1/datasets/{dataset_id}/audience_segments HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "max_results": 1,
  "data": [
    {
      "segment": {
        "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"
      },
      "user_segment_stats": 0
    }
  ],
  "first_result": 1,
  "total": 1,
  "status": "ok"
}

Search clean room by Id

get
/clean_rooms/{clean_room_id}
Path parameters
clean_room_idstringRequired

The clean room id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/clean_rooms/{clean_room_id}
GET /v1/clean_rooms/{clean_room_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "clean_room_organisations": [
      {
        "archived": false,
        "organisation_name": "text",
        "created_ts": 0,
        "purposes": [
          "ACTIVATION"
        ],
        "archived_by": "text",
        "owner": false,
        "created_by": "text",
        "status": "PENDING",
        "last_modified_ts": 0,
        "archived_ts": 0,
        "clean_room_id": "text",
        "organisation_id": "text",
        "last_modified_by": "text"
      }
    ],
    "collaborative_app_id": "text",
    "template_id": "text",
    "organisation_id": "text",
    "clean_room_id": "text",
    "name": "text"
  }
}

Find datasets

get
/datasets
Query parameters
organisation_idinteger · int64Required

Organisation owning datasets

segment_idinteger · int64[]Optional

List of segmentIds used to create dataset

archivedbooleanOptional

If true the result will contain only archived datasets

sourcestring · enumOptional

Source of dataset to filter on

Possible values:
keywordsstringOptional
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
first_resultintegerRequired
max_resultsintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
get/datasets
GET /v1/datasets?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "first_result": 1,
  "max_results": 1,
  "status": "ok",
  "total": 1,
  "data": [
    {
      "bunker_id": "text",
      "source": "FILE",
      "status": "SYNCHRONIZATION_PENDING",
      "records_count": 0,
      "archived_by": "text",
      "properties": [
        {
          "fill_rate": 0,
          "name": "text",
          "position": 0,
          "compartment_id": "text",
          "data_sample": [
            "text"
          ],
          "property_type": "EMAIL",
          "compartment_name": "text",
          "id": "text",
          "matching_key": false
        }
      ],
      "description": "text",
      "organisation_id": "text",
      "created_by": "text",
      "archived": false,
      "last_modified_ts": 0,
      "archived_ts": 0,
      "type": "SEGMENT",
      "created_ts": 0,
      "id": "text",
      "organisation_name": "text",
      "last_modified_by": "text",
      "expiration_ts": 0,
      "name": "text"
    }
  ]
}

Create dataset

post
/datasets
Query parameters
bunker_idstringRequired

Bunker of the dataset

Body
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datasets
POST /v1/datasets?bunker_id=text HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 411

{
  "dataset": {
    "type": "SEGMENT",
    "bunker_id": "text",
    "source": "FILE",
    "status": "SYNCHRONIZATION_PENDING",
    "properties": [
      {
        "fill_rate": 0,
        "name": "text",
        "position": 0,
        "compartment_id": "text",
        "data_sample": [
          "text"
        ],
        "property_type": "EMAIL",
        "matching_key": false
      }
    ],
    "organisation_id": "text",
    "archived": false,
    "expiration_ts": 0,
    "name": "text"
  },
  "share_options": [
    {
      "clean_room_id": "text",
      "purposes": [
        "ACTIVATION"
      ],
      "expiration_ts": 0
    }
  ]
}
{
  "status": "ok",
  "data": {
    "type": "SEGMENT",
    "bunker_id": "text",
    "source": "FILE",
    "status": "SYNCHRONIZATION_PENDING",
    "records_count": 0,
    "archived_by": "text",
    "properties": [
      {
        "fill_rate": 0,
        "name": "text",
        "position": 0,
        "compartment_id": "text",
        "data_sample": [
          "text"
        ],
        "property_type": "EMAIL",
        "compartment_name": "text",
        "id": "text",
        "matching_key": false
      }
    ],
    "description": "text",
    "organisation_id": "text",
    "created_by": "text",
    "archived": false,
    "last_modified_ts": 0,
    "archived_ts": 0,
    "created_ts": 0,
    "id": "text",
    "organisation_name": "text",
    "last_modified_by": "text",
    "expiration_ts": 0,
    "name": "text"
  }
}

Search per-segment overlap results of a segment catalog matching

get
/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/catalog_overlap
Path parameters
clean_room_idstringRequired

Clean room Id

datasets_matching_idstringRequired

Datasets matching Id

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

namestringOptional

Case-insensitive substring filter on the segment name

order_bystring[]Optional

Fields used to order the result (prefix with '-' for descending). Multiple fields are applied in order. Defaults to '-overlap_percent'. Allowed fields: segment_id, segment_name, overlap_records_count, source_records_count, overlap_percent. An unrecognised field returns a 400.

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
totalintegerRequired
first_resultintegerRequired
max_resultsintegerRequired
countintegerRequired
get/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/catalog_overlap
GET /v1/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/catalog_overlap HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {
      "source_records_count": 0,
      "segment_name": "text",
      "partner_records_count": 0,
      "overlap_records_count": 0,
      "segment_id": "text"
    }
  ],
  "status": "ok",
  "total": 1,
  "first_result": 1,
  "max_results": 1,
  "count": 1
}

Search clean rooms by dataset id

get
/datasets/{dataset_id}/clean_rooms
Path parameters
dataset_idstringRequired

The dataset id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
countintegerRequired
max_resultsintegerRequired
first_resultintegerRequired
totalintegerRequired
get/datasets/{dataset_id}/clean_rooms
GET /v1/datasets/{dataset_id}/clean_rooms HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "count": 1,
  "data": [
    {
      "clean_room_organisations": [
        {
          "archived": false,
          "organisation_name": "text",
          "created_ts": 0,
          "purposes": [
            "ACTIVATION"
          ],
          "archived_by": "text",
          "owner": false,
          "created_by": "text",
          "status": "PENDING",
          "last_modified_ts": 0,
          "archived_ts": 0,
          "clean_room_id": "text",
          "organisation_id": "text",
          "last_modified_by": "text"
        }
      ],
      "collaborative_app_id": "text",
      "template_id": "text",
      "organisation_id": "text",
      "clean_room_id": "text",
      "name": "text"
    }
  ],
  "max_results": 1,
  "first_result": 1,
  "total": 1
}

Find datasets matchings

get
/clean_rooms/{clean_room_id}/datasets_matchings
Path parameters
clean_room_idinteger · int64Required

Clean room Id

Query parameters
dataset_idinteger · int64Optional

Dataset Id

statusstring · enumOptional

Dataset matching status

Possible values:
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

keywordsstringOptional

Filter matchings by name or by the name of any participating dataset (case-insensitive substring match)

as_organisation_idstringOptional

View the matchings from this organisation's side. Only honoured when the caller has access to it; ignored otherwise.

Responses
200

Success !

application/json
max_resultsintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
countintegerRequired
first_resultintegerRequired
get/clean_rooms/{clean_room_id}/datasets_matchings
GET /v1/clean_rooms/{clean_room_id}/datasets_matchings HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "max_results": 1,
  "total": 1,
  "status": "ok",
  "count": 1,
  "first_result": 1,
  "data": [
    {
      "refresh_frequency": "DAILY",
      "initiator_org_id": "text",
      "custom_identifier_labels": [
        "text"
      ],
      "archived": false,
      "identifiers_freshness_days": 0,
      "name": "text",
      "feeds": [
        {
          "artifact_id": "text",
          "id": "text",
          "plugin_id": "text",
          "plugin_version_id": "text",
          "audience_segment_id": "text",
          "name": "text"
        }
      ],
      "created_ts": 0,
      "last_refresh_ts": 0,
      "matched_datasets": [
        {
          "dataset": {
            "type": "SEGMENT",
            "expiration_ts": 0,
            "properties": [
              {
                "id": "text",
                "property_type": "EMAIL",
                "position": 0,
                "name": "text",
                "matching_key": false
              }
            ],
            "status": "SYNCHRONIZATION_PENDING",
            "organisation_id": "text",
            "organisation_name": "text",
            "description": "text",
            "records_count": 0,
            "source": "FILE",
            "id": "text",
            "name": "text"
          },
          "organisation_id": "text",
          "dataset_update_id": "text",
          "purposes": [
            "ACTIVATION"
          ],
          "clean_room_id": "text",
          "dataset_id": "text",
          "created_by": "text",
          "expiration_ts": 0,
          "created_ts": 0
        }
      ],
      "status": "PENDING",
      "datasets_matching_history_key_stats": [
        {
          "related_identifiers_count": 0,
          "compartment_name": "text",
          "common_identifiers_count": 0,
          "compartment_id": "text",
          "matching_key_type": "EMAIL",
          "datasets_matching_history_id": "text"
        }
      ],
      "last_modified_ts": 0,
      "count_matched_records": 0,
      "last_modified_by": "text",
      "id": "text",
      "segment_id": "text",
      "custom_identifier_compartment_ids": [
        "text"
      ],
      "external_dashboard_url": "text",
      "matching_keys": [
        "EMAIL"
      ],
      "clean_room_id": "text",
      "created_by": "text",
      "description": "text"
    }
  ]
}

Create datasets matching

post
/clean_rooms/{clean_room_id}/datasets_matchings
Path parameters
clean_room_idinteger · int64Required

Clean room Id

Body
refresh_frequencystring · enumOptionalPossible values:
initiator_org_idstringRequired
custom_identifier_labelsstring[]Read-onlyOptional
archivedbooleanRead-onlyRequiredDefault: false
identifiers_freshness_daysinteger · int64OptionalDefault: 0
namestringRequired
created_tsinteger · int64Read-onlyRequiredDefault: 0
last_refresh_tsinteger · int64Read-onlyOptionalDefault: 0
statusstring · enumRequiredPossible values:
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
count_matched_recordsinteger · int64Read-onlyOptionalDefault: 0
last_modified_bystringRead-onlyOptional
idstringRead-onlyRequired
segment_idstringRead-onlyOptional
custom_identifier_compartment_idsstring[]Optional
external_dashboard_urlstringOptional
clean_room_idstringRequired
created_bystringRead-onlyOptional
descriptionstringOptional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/clean_rooms/{clean_room_id}/datasets_matchings
POST /v1/clean_rooms/{clean_room_id}/datasets_matchings HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 240

{
  "refresh_frequency": "DAILY",
  "initiator_org_id": "text",
  "identifiers_freshness_days": 0,
  "name": "text",
  "status": "PENDING",
  "custom_identifier_compartment_ids": [
    "text"
  ],
  "external_dashboard_url": "text",
  "clean_room_id": "text",
  "description": "text"
}
{
  "status": "ok",
  "data": {
    "refresh_frequency": "DAILY",
    "initiator_org_id": "text",
    "custom_identifier_labels": [
      "text"
    ],
    "archived": false,
    "identifiers_freshness_days": 0,
    "name": "text",
    "feeds": [
      {
        "artifact_id": "text",
        "id": "text",
        "plugin_id": "text",
        "plugin_version_id": "text",
        "audience_segment_id": "text",
        "name": "text"
      }
    ],
    "created_ts": 0,
    "last_refresh_ts": 0,
    "matched_datasets": [
      {
        "dataset": {
          "type": "SEGMENT",
          "expiration_ts": 0,
          "properties": [
            {
              "id": "text",
              "property_type": "EMAIL",
              "position": 0,
              "name": "text",
              "matching_key": false
            }
          ],
          "status": "SYNCHRONIZATION_PENDING",
          "organisation_id": "text",
          "organisation_name": "text",
          "description": "text",
          "records_count": 0,
          "source": "FILE",
          "id": "text",
          "name": "text"
        },
        "organisation_id": "text",
        "dataset_update_id": "text",
        "purposes": [
          "ACTIVATION"
        ],
        "clean_room_id": "text",
        "dataset_id": "text",
        "created_by": "text",
        "expiration_ts": 0,
        "created_ts": 0
      }
    ],
    "status": "PENDING",
    "datasets_matching_history_key_stats": [
      {
        "related_identifiers_count": 0,
        "compartment_name": "text",
        "common_identifiers_count": 0,
        "compartment_id": "text",
        "matching_key_type": "EMAIL",
        "datasets_matching_history_id": "text"
      }
    ],
    "last_modified_ts": 0,
    "count_matched_records": 0,
    "last_modified_by": "text",
    "id": "text",
    "segment_id": "text",
    "custom_identifier_compartment_ids": [
      "text"
    ],
    "external_dashboard_url": "text",
    "matching_keys": [
      "EMAIL"
    ],
    "clean_room_id": "text",
    "created_by": "text",
    "description": "text"
  }
}

Update dataset from file

post
/datasets/{dataset_id}/updates.file
Path parameters
dataset_idstringRequired

The dataset id

Body
filestring · binary[]Optional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datasets/{dataset_id}/updates.file
POST /v1/datasets/{dataset_id}/updates.file HTTP/1.1
Host: api.mediarithmics.local
Content-Type: multipart/form-data
Accept: */*
Content-Length: 19

{
  "file": [
    "binary"
  ]
}
{
  "status": "ok",
  "data": {
    "created_ts": 0,
    "status": "PENDING",
    "file_path": "text",
    "size": 0,
    "last_modified_ts": 0,
    "type": "FULL",
    "last_modified_by": "text",
    "dataset_records_count": 0,
    "file_lines_count": 0,
    "id": "text",
    "error_log": "text",
    "created_by": "text",
    "update_records_count": 0
  }
}

Search datasets matching histories

get
/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/history
Path parameters
clean_room_idstringRequired

Clean room Id

datasets_matching_idstringRequired

Datasets intersection Id

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
totalintegerRequired
first_resultintegerRequired
get/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/history
GET /v1/clean_rooms/{clean_room_id}/datasets_matchings/{datasets_matching_id}/history HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "status": "ok",
  "max_results": 1,
  "total": 1,
  "data": [
    {
      "id": "text",
      "datasets_matching_id": "text",
      "created_by": "text",
      "dataset_updates": [
        {
          "id": "text",
          "organisation_id": "text",
          "dataset_records_count": 0
        }
      ],
      "matched_records": 0,
      "error_message": "text",
      "created_by_organisation_id": "text",
      "status": "RUNNING",
      "datasets_matching_history_key_stats": [
        {
          "related_identifiers_count": 0,
          "compartment_name": "text",
          "common_identifiers_count": 0,
          "compartment_id": "text",
          "matching_key_type": "EMAIL",
          "datasets_matching_history_id": "text"
        }
      ],
      "created_ts": 0
    }
  ],
  "first_result": 1
}

Find bunkers

get
/bunkers
Query parameters
organisation_idinteger · int64Required

Organisation owning bunkers

archivedbooleanOptional

If true the result will contain only archived bunkers

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
first_resultintegerRequired
totalintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
get/bunkers
GET /v1/bunkers?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "first_result": 1,
  "total": 1,
  "count": 1,
  "data": [
    {
      "created_ts": 0,
      "name": "text",
      "archived": false,
      "organisation_id": "text",
      "is_initialized": false,
      "archived_by": "text",
      "id": "text",
      "created_by": "text",
      "datamart_id": "text",
      "last_state_refresh": 0,
      "last_modified_ts": 0,
      "archived_ts": 0,
      "last_modified_by": "text"
    }
  ],
  "status": "ok",
  "max_results": 1
}

Create bunker

post
/bunkers
Body
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
dataone ofRequired
or
post/bunkers
POST /v1/bunkers HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "name": "text",
  "organisation_id": "text",
  "datamart_id": "text"
}
{
  "status": "ok",
  "data": {
    "created_ts": 0,
    "name": "text",
    "archived": false,
    "organisation_id": "text",
    "is_initialized": false,
    "archived_by": "text",
    "id": "text",
    "created_by": "text",
    "datamart_id": "text",
    "last_state_refresh": 0,
    "last_modified_ts": 0,
    "archived_ts": 0,
    "last_modified_by": "text"
  }
}

Update the purposes of a shared dataset in a clean room

put
/clean_rooms/{clean_room_id}/datasets/{dataset_id}
Path parameters
clean_room_idstringRequired

Clean room owning datasets

dataset_idstringRequired

The dataset id

Body
expiration_tsinteger · int64RequiredDefault: 0
archivedbooleanRequiredDefault: false
dataset_idstringRequired
created_bystringRead-onlyOptional
clean_room_idstringRequired
last_modified_bystringRead-onlyOptional
archived_tsinteger · int64Read-onlyOptionalDefault: 0
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
organisation_idstringRead-onlyRequired
archived_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/clean_rooms/{clean_room_id}/datasets/{dataset_id}
PUT /v1/clean_rooms/{clean_room_id}/datasets/{dataset_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 185

{
  "expiration_ts": 0,
  "archived": false,
  "dataset_id": "text",
  "purposes": [
    "ACTIVATION"
  ],
  "clean_room_id": "text",
  "dataset": {
    "type": "SEGMENT",
    "status": "SYNCHRONIZATION_PENDING",
    "source": "FILE"
  }
}
{
  "status": "ok",
  "data": {
    "expiration_ts": 0,
    "archived": false,
    "dataset_id": "text",
    "purposes": [
      "ACTIVATION"
    ],
    "created_by": "text",
    "clean_room_id": "text",
    "last_modified_by": "text",
    "dataset": {
      "type": "SEGMENT",
      "expiration_ts": 0,
      "properties": [
        {
          "id": "text",
          "property_type": "EMAIL",
          "position": 0,
          "name": "text",
          "matching_key": false
        }
      ],
      "status": "SYNCHRONIZATION_PENDING",
      "organisation_id": "text",
      "organisation_name": "text",
      "description": "text",
      "records_count": 0,
      "source": "FILE",
      "id": "text",
      "name": "text"
    },
    "archived_ts": 0,
    "last_modified_ts": 0,
    "organisation_id": "text",
    "archived_by": "text",
    "created_ts": 0
  }
}

Stop sharing the dataset in the clean room

delete
/clean_rooms/{clean_room_id}/datasets/{dataset_id}
Path parameters
clean_room_idstringRequired

Clean room owning datasets

dataset_idstringRequired

The dataset id

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/clean_rooms/{clean_room_id}/datasets/{dataset_id}
DELETE /v1/clean_rooms/{clean_room_id}/datasets/{dataset_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Last updated

Was this helpful?