{
  "opencollection": "1.0.0",
  "info": {
    "name": "Madhive Audiences API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "audiences",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Receive the list of custom and standard audiences with IDs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api2.madhive.com/api/v1/audiences",
            "headers": [
              {
                "name": "X-Cloud-Trace-Context",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "includeStdAuds",
                "value": "",
                "type": "query",
                "description": "include std audiences along with custom audiences"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "restrict to audiences that match according to fuzzy-search"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "number of audiences per page (default 100, max 10000)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Optional page selector RELATIVE to page_token: 1 = next page (the default when a page_token is supplied), -1 = previous page, 0 = reload the current page. Has no effect without page_token.\n"
              },
              {
                "name": "page_token",
                "value": "",
                "type": "query",
                "description": "Opaque cursor from the previous response's pagination.pageToken. Pass it alone to fetch the next page; pagination is cursor-based and offset defaults to the next page when a page_token is supplied.\n"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api2.madhive.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Receive the list of custom and standard audiences with IDs"
        },
        {
          "info": {
            "name": "Using segments and audiences to create a new custom audience with AND/OR/NOT boolean logic. Custom audiences can then be applied to line items in create/edit line item.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api2.madhive.com/api/v1/audiences",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api2.madhive.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Using segments and audiences to create a new custom audience with AND/OR/NOT boolean logic. Custom audiences can then be applied to line items in create/edit line item."
        }
      ]
    }
  ],
  "bundled": true
}