Return All Destinations

A GET method that returns all destinations for the specified partner.

Request

GET https://api.demdex.com/v1/destinations
Note:
  • (Optional) Pass in containsSegment=<sid> to return an array of all destinations mapped to the specified segment. For example, your query could look similar to this: GET .../destinations/?containsSegment=4321.
  • Does not return the full destination object. Get the destination by data order if you need fully populated object.

Optional Query Parameters

You can use these optional parameters with API methods that return all properties for an object. Set these options in the request string when passing that query in to the API. See Optional Parameters.
Parameter Description
page Returns results by page number. Numbering starts at 0.
pageSize Sets the number of response results returned by the request (10 is default).
sortBy Sorts and returns results according to the specified JSON property.
descending Sorts and returns results in descending order. Ascending is default.
search Returns results based on the specified string you want to use as a search parameter. For example, let's say you want to find results for all models that have the word "Test" in any of the value fields for that item. Your sample request could look like this:

GET https://api.demdex.com/v1/models/?search=Test.

You can search on any value returned by a "get all" method.

Sample Response
[
   {
      "destinationId":364,
      "pid":1099,
      "name":"Test",
      "description":"",
      "status":"active",
      "destinationType":"PUSH",
      "createTime":1291345192000,
      "updateTime":1291347561000,
      "crUID":262,
      "upUID":262,
      "domainRestrictions":"all_domains"
   },
   {
      "destinationId":369,
      "pid":1099,
      "name":"sample destination",
      "status":"active",
      "destinationType":"PUSH",
      "createTime":1292631706000,
      "updateTime":1292631706000,
      "crUID":262,
      "upUID":262,
      "domainRestrictions":"all_domains"
   }
]