{
  "info": {
    "_postman_id": "7ec34b0f-545d-4b16-99f2-dbddf8a628bc",
    "name": "AB Tasty Decision Activate Campaigns API",
    "description": "The AB Tasty Decision API is a server-side service that evaluates a visitors context against your active experiments, personalizations, and feature flags, then returns a deterministic decision which campaigns the user qualifies for, the selected variation, and any variables or content to render. It centralizes targeting, traffic allocation, and bucketing so you can power A/B tests, gradual rollouts, and personalized experiences from backends, mobile apps, or edge workers while keeping user exposure consistent. You pass identifiers and attributes at request time, use the response to render the experience, and pair it with event tracking for measurement...\n\nContact Support:\n Name: Flagship Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T00:27:30.000Z",
    "updatedAt": "2026-07-28T00:27:30.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-7ec34b0f-545d-4b16-99f2-dbddf8a628bc"
  },
  "item": [
    {
      "name": "{environmentId}",
      "item": [
        {
          "name": "campaigns",
          "item": [
            {
              "name": "{campaignId}",
              "item": [
                {
                  "name": "AB Tasty Post Environment Campaigns",
                  "id": "6ca2e6c3-2f83-49ca-bf0a-97feee81bc3f",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"consectetur_a\": \"esse sit eiusmod exercitation\",\n    \"sint_58\": true,\n    \"ina3\": -17825077,\n    \"dolor_59c\": \"fugiat occaecat deserunt enim\"\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\",\n  \"format_response\": false,\n  \"default_redirect_url\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:environmentId/campaigns/:campaignId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":environmentId",
                        "campaigns",
                        ":campaignId"
                      ],
                      "variable": [
                        {
                          "id": "1cd0fb07-e9cc-4d65-a892-026d3e8f6c1b",
                          "key": "environmentId",
                          "value": "<string>",
                          "description": "(Required) Identifies your account and environment (preprod or prod)"
                        },
                        {
                          "id": "ba5c534f-f2e7-42b3-b540-74c5ff7b167a",
                          "key": "campaignId",
                          "value": "<string>",
                          "description": "(Required) Campaign ID or slug"
                        }
                      ]
                    },
                    "description": "Retrieves the assignment of your visitor ID with a specific context to the specified campaign ID.\nBy default, the API will send a CAMPAIGN hit to Flagship.\n"
                  },
                  "response": [
                    {
                      "id": "7e263a4f-0931-4dcd-b21b-3a05aa27d493",
                      "name": "Successful response",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: apikey",
                            "key": "x-api-key",
                            "value": "<API Key>"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"consectetur_a\": \"esse sit eiusmod exercitation\",\n    \"sint_58\": true,\n    \"ina3\": -17825077,\n    \"dolor_59c\": \"fugiat occaecat deserunt enim\"\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\",\n  \"format_response\": false,\n  \"default_redirect_url\": \"<string>\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/:environmentId/campaigns/:campaignId",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            ":environmentId",
                            "campaigns",
                            ":campaignId"
                          ],
                          "variable": [
                            {
                              "key": "environmentId"
                            },
                            {
                              "key": "campaignId"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"id\": \"<string>\",\n  \"variationGroupId\": \"<string>\",\n  \"variation\": {\n    \"id\": \"<string>\",\n    \"modifications\": {\n      \"type\": \"FLAG\",\n      \"value\": {}\n    }\n  }\n}",
                      "createdAt": "2026-07-28T00:27:31.000Z",
                      "updatedAt": "2026-07-28T00:27:31.000Z",
                      "uid": "35240-7e263a4f-0931-4dcd-b21b-3a05aa27d493"
                    },
                    {
                      "id": "9133165e-e112-491e-a018-2fb72ec49740",
                      "name": "Redirect response (when default_redirect_url is specified)",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: apikey",
                            "key": "x-api-key",
                            "value": "<API Key>"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"consectetur_a\": \"esse sit eiusmod exercitation\",\n    \"sint_58\": true,\n    \"ina3\": -17825077,\n    \"dolor_59c\": \"fugiat occaecat deserunt enim\"\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\",\n  \"format_response\": false,\n  \"default_redirect_url\": \"<string>\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/:environmentId/campaigns/:campaignId",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            ":environmentId",
                            "campaigns",
                            ":campaignId"
                          ],
                          "variable": [
                            {
                              "key": "environmentId"
                            },
                            {
                              "key": "campaignId"
                            }
                          ]
                        }
                      },
                      "status": "Found",
                      "code": 302,
                      "_postman_previewlanguage": "text",
                      "header": [
                        {
                          "disabled": false,
                          "description": {
                            "content": "Redirect URL",
                            "type": "text/plain"
                          },
                          "key": "Location",
                          "value": "<string>"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": null,
                      "createdAt": "2026-07-28T00:27:31.000Z",
                      "updatedAt": "2026-07-28T00:27:31.000Z",
                      "uid": "35240-9133165e-e112-491e-a018-2fb72ec49740"
                    },
                    {
                      "id": "af0b9ebe-90d7-41fd-87e4-7b1b60714f5a",
                      "name": "Authentication information is missing or invalid",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: apikey",
                            "key": "x-api-key",
                            "value": "<API Key>"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"consectetur_a\": \"esse sit eiusmod exercitation\",\n    \"sint_58\": true,\n    \"ina3\": -17825077,\n    \"dolor_59c\": \"fugiat occaecat deserunt enim\"\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\",\n  \"format_response\": false,\n  \"default_redirect_url\": \"<string>\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/:environmentId/campaigns/:campaignId",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            ":environmentId",
                            "campaigns",
                            ":campaignId"
                          ],
                          "variable": [
                            {
                              "key": "environmentId"
                            },
                            {
                              "key": "campaignId"
                            }
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"message\": \"<string>\",\n  \"code\": \"<string>\"\n}",
                      "createdAt": "2026-07-28T00:27:31.000Z",
                      "updatedAt": "2026-07-28T00:27:31.000Z",
                      "uid": "35240-af0b9ebe-90d7-41fd-87e4-7b1b60714f5a"
                    },
                    {
                      "id": "ee40ac40-fe7e-4233-a83b-f9be209875c4",
                      "name": "Rate limit exceeded",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: apikey",
                            "key": "x-api-key",
                            "value": "<API Key>"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"consectetur_a\": \"esse sit eiusmod exercitation\",\n    \"sint_58\": true,\n    \"ina3\": -17825077,\n    \"dolor_59c\": \"fugiat occaecat deserunt enim\"\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\",\n  \"format_response\": false,\n  \"default_redirect_url\": \"<string>\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/:environmentId/campaigns/:campaignId",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            ":environmentId",
                            "campaigns",
                            ":campaignId"
                          ],
                          "variable": [
                            {
                              "key": "environmentId"
                            },
                            {
                              "key": "campaignId"
                            }
                          ]
                        }
                      },
                      "status": "Too Many Requests",
                      "code": 429,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"message\": \"<string>\",\n  \"code\": \"<string>\"\n}",
                      "createdAt": "2026-07-28T00:27:31.000Z",
                      "updatedAt": "2026-07-28T00:27:31.000Z",
                      "uid": "35240-ee40ac40-fe7e-4233-a83b-f9be209875c4"
                    }
                  ],
                  "createdAt": "2026-07-28T00:27:31.000Z",
                  "updatedAt": "2026-07-28T00:27:31.000Z",
                  "uid": "35240-6ca2e6c3-2f83-49ca-bf0a-97feee81bc3f"
                }
              ],
              "id": "409d2b75-1ce2-4afc-bf4e-8870840e184c",
              "createdAt": "2026-07-28T00:27:31.000Z",
              "updatedAt": "2026-07-28T00:27:31.000Z",
              "uid": "35240-409d2b75-1ce2-4afc-bf4e-8870840e184c"
            },
            {
              "name": "AB Tasty Post Environment Campaigns",
              "id": "1107c864-0251-42c3-b131-c68433a43cda",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"ullamco_b\": false,\n    \"ea5\": -34934036,\n    \"indd\": 597021.4278767705\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/:environmentId/campaigns?mode=normal",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ":environmentId",
                    "campaigns"
                  ],
                  "query": [
                    {
                      "description": "Specifies the format of the response body",
                      "key": "mode",
                      "value": "normal"
                    }
                  ],
                  "variable": [
                    {
                      "id": "9c94e6e7-f6b4-4f44-a989-affcc1097019",
                      "key": "environmentId",
                      "value": "<string>",
                      "description": "(Required) Identifies your account and environment (preprod or prod)"
                    }
                  ]
                },
                "description": "Retrieves all the campaigns that correspond to the specified user and context attributes.\nBy default, the API will send a CAMPAIGN hit to Flagship for each campaign in the response.\n"
              },
              "response": [
                {
                  "id": "9e776562-c4f6-48fb-a9a9-5e3aff7edc1c",
                  "name": "Successful response",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "x-api-key",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"ullamco_b\": false,\n    \"ea5\": -34934036,\n    \"indd\": 597021.4278767705\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:environmentId/campaigns?mode=normal",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":environmentId",
                        "campaigns"
                      ],
                      "query": [
                        {
                          "description": "Specifies the format of the response body",
                          "key": "mode",
                          "value": "normal"
                        }
                      ],
                      "variable": [
                        {
                          "key": "environmentId"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"visitorId\": \"<string>\",\n  \"campaigns\": [\n    {\n      \"id\": \"<string>\",\n      \"variationGroupId\": \"<string>\",\n      \"variation\": {\n        \"id\": \"<string>\",\n        \"modifications\": {\n          \"type\": \"REDIRECT\",\n          \"value\": {}\n        }\n      }\n    },\n    {\n      \"id\": \"<string>\",\n      \"variationGroupId\": \"<string>\",\n      \"variation\": {\n        \"id\": \"<string>\",\n        \"modifications\": {\n          \"type\": \"REDIRECT\",\n          \"value\": {}\n        }\n      }\n    }\n  ]\n}",
                  "createdAt": "2026-07-28T00:27:31.000Z",
                  "updatedAt": "2026-07-28T00:27:31.000Z",
                  "uid": "35240-9e776562-c4f6-48fb-a9a9-5e3aff7edc1c"
                },
                {
                  "id": "d2bf1239-74f6-4ef1-9655-51653c903422",
                  "name": "Authentication information is missing or invalid",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "x-api-key",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"ullamco_b\": false,\n    \"ea5\": -34934036,\n    \"indd\": 597021.4278767705\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:environmentId/campaigns?mode=normal",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":environmentId",
                        "campaigns"
                      ],
                      "query": [
                        {
                          "description": "Specifies the format of the response body",
                          "key": "mode",
                          "value": "normal"
                        }
                      ],
                      "variable": [
                        {
                          "key": "environmentId"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"message\": \"<string>\",\n  \"code\": \"<string>\"\n}",
                  "createdAt": "2026-07-28T00:27:31.000Z",
                  "updatedAt": "2026-07-28T00:27:31.000Z",
                  "uid": "35240-d2bf1239-74f6-4ef1-9655-51653c903422"
                },
                {
                  "id": "0ecb1215-d009-4ecf-9301-f849a63fda5e",
                  "name": "Rate limit exceeded",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "x-api-key",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"visitor_id\": \"<string>\",\n  \"anonymous_id\": \"<string>\",\n  \"context\": {\n    \"ullamco_b\": false,\n    \"ea5\": -34934036,\n    \"indd\": 597021.4278767705\n  },\n  \"visitor_consent\": true,\n  \"trigger_hit\": true,\n  \"decision_group\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:environmentId/campaigns?mode=normal",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":environmentId",
                        "campaigns"
                      ],
                      "query": [
                        {
                          "description": "Specifies the format of the response body",
                          "key": "mode",
                          "value": "normal"
                        }
                      ],
                      "variable": [
                        {
                          "key": "environmentId"
                        }
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"message\": \"<string>\",\n  \"code\": \"<string>\"\n}",
                  "createdAt": "2026-07-28T00:27:31.000Z",
                  "updatedAt": "2026-07-28T00:27:31.000Z",
                  "uid": "35240-0ecb1215-d009-4ecf-9301-f849a63fda5e"
                }
              ],
              "createdAt": "2026-07-28T00:27:31.000Z",
              "updatedAt": "2026-07-28T00:27:31.000Z",
              "uid": "35240-1107c864-0251-42c3-b131-c68433a43cda"
            }
          ],
          "id": "20c5f541-d6ae-426f-81c7-8615bfc9f154",
          "createdAt": "2026-07-28T00:27:31.000Z",
          "updatedAt": "2026-07-28T00:27:31.000Z",
          "uid": "35240-20c5f541-d6ae-426f-81c7-8615bfc9f154"
        }
      ],
      "id": "85fd9a5f-e829-4efd-9334-5e95f0f12823",
      "createdAt": "2026-07-28T00:27:31.000Z",
      "updatedAt": "2026-07-28T00:27:31.000Z",
      "uid": "35240-85fd9a5f-e829-4efd-9334-5e95f0f12823"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "x-api-key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://decision.flagship.io/v2"
    }
  ]
}