Segments API FAQ

Frequently asked questions around using the Segments endpoint.

What are some best practices around submitting segment API calls?

What are segment templates?

Segment templates are provided by Adobe for common use cases. You can base new segments off of these Adobe-provided segment templates. Although original templates cannot be modified, copies of them can be made and then the copies can be modified. You can identify templates by the additional attribute template: true as shown at the bottom of the following example:

{
      "id": "Has_An_Action",
      "name": "Has an Action",
      "description": null,
      "definition": {
        "container": {
          "func": "container",
          "pred": {
            "val": {
              "func": "attr",
              "name": "variables/mobileaction"
            },
            "func": "exists",
            "description": "Action Name"
          },
          "context": "hits"
        },
        "func": "segment",
        "version": [
          1,
          0,
          0
        ]
      },
      "template": true
},
data-variant=info
data-slots=text
Adobe may add optional request and response members (name/value pairs) to existing API objects at any time and without notice or changes in versioning. Adobe recommends that you refer to the API documentation of any third-party tool you integrate with our APIs so that such additions are ignored in processing if not understood. If implemented properly, such additions are non-breaking changes for your implementation. Adobe will not remove parameters or add required parameters without first providing standard notification through release notes.

What is segment compatibility?

Some segments can only be used with certain reporting engines. For example, some segments work only with Data Warehouse and some work only with Analysis Workspace. The compatibility expansion includes a return object that specifies the products in which the segment can be used. The version information of the products is also included in the response. The version information is for internal use and can be ignored. Compatibility and version information cannot be edited because they are derived from the definition of the segment.