{
  "opencollection": "1.0.0",
  "info": {
    "name": "Criteo Accounts Audience API",
    "version": "2026-07"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.criteo.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Audience",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "/2026-07/retail-media/accounts/{account-id}/audience-segments",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.criteo.com/2026-07/retail-media/accounts/:account-id/audience-segments",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Updates the properties of all segments with a valid configuration, and returns the full segments. For those that cannot be updated, one or multiple errors are returned."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.criteo.com/2026-07/retail-media/accounts/:account-id/audience-segments/:audience-segment-id/contact-list",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account Id"
              },
              {
                "name": "audience-segment-id",
                "value": "",
                "type": "path",
                "description": "Segment Id."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns the statistics of a contact list segment."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/accounts/{account-id}/audience-segments/create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.criteo.com/2026-07/retail-media/accounts/:account-id/audience-segments/create",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account Id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates all segments with a valid configuration, and returns the full segments. For those that cannot be created, one or multiple errors are returned."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/accounts/{account-id}/audience-segments/delete",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.criteo.com/2026-07/retail-media/accounts/:account-id/audience-segments/delete",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete the segments associated to the given IDs."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/accounts/{account-id}/audience-segments/search",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.criteo.com/2026-07/retail-media/accounts/:account-id/audience-segments/search",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account Id"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The number of elements to be returned. The default is 50 and the maximum is 500."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The (zero-based) offset into the collection. The default is 0."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/accounts/{account-id}/audiences/search",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.criteo.com/2026-07/retail-media/accounts/:account-id/audiences/search",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account Id"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The number of elements to be returned. The default is 50 and the maximum is 500."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The (zero-based) offset into the collection. The default is 0."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.criteo.com/2026-07/retail-media/audience-segments/:audience-segment-id/contact-list/add-remove",
            "params": [
              {
                "name": "audience-segment-id",
                "value": "",
                "type": "path",
                "description": "The id of the contact list audience-segment to amend, we only accept external Id here"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id."
        },
        {
          "info": {
            "name": "/2026-07/retail-media/audience-segments/{audience-segment-id}/contact-list/clear",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.criteo.com/2026-07/retail-media/audience-segments/:audience-segment-id/contact-list/clear",
            "params": [
              {
                "name": "audience-segment-id",
                "value": "",
                "type": "path",
                "description": "The id of the contact list audience-segment to amend, we only accept external Id here"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.criteo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id."
        }
      ]
    }
  ],
  "bundled": true
}