---
updatedAt: 2025-09-18T21:58:53.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# List Campaigns

## Why List Campaigns?

Occasionally, you may wish to return a list of all current and active campaigns in your account. If you would like to use the Explorer, you may use your API key.

## API Syntax

When using the List Campaigns API endpoint it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`GET https://api.kevel.co/v1/campaign`

Where:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `campaign` - the API endpoint being called.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/campaign": {
      "get": {
        "summary": "List Campaigns",
        "description": "",
        "operationId": "list-campaigns",
        "parameters": [
          {
            "name": "isArchived",
            "in": "query",
            "description": "If true, returns only archived flights",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "AdvertiserId",
            "in": "query",
            "description": "Returns only campaigns that belong to that advertiser ID.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"page\": 1,\n    \"items\": [\n      {\n        \"IsActive\": false,\n        \"Flights\": [],\n        \"FreqCapType\": 0,\n        \"IsDeleted\": false,\n        \"Price\": 0,\n        \"IsArchived\": false,\n        \"AdvertiserId\": 12345,\n        \"Name\": \"Exploding Kittens\",\n        \"Id\": 123456,\n        \"StartDateISO\": \"2017-03-11T00:00:00.0000000\"\n      }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "page": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "IsActive": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "Flights": {
                            "type": "array"
                          },
                          "FreqCapType": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "IsDeleted": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "Price": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "IsArchived": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "AdvertiserId": {
                            "type": "integer",
                            "example": 12345,
                            "default": 0
                          },
                          "Name": {
                            "type": "string",
                            "example": "Exploding Kittens"
                          },
                          "Id": {
                            "type": "integer",
                            "example": 123456,
                            "default": 0
                          },
                          "StartDateISO": {
                            "type": "string",
                            "example": "2017-03-11T00:00:00.0000000"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET \\\n     -H \"X-Adzerk-ApiKey:<APIKEY>\" \\\n     https://api.kevel.co/v1/campaign\n\n## To show archived campaigns:\ncurl -X GET \\\n     -H \"X-Adzerk-ApiKey:<APIKEY>\" \\\n     https://api.kevel.co/v1/campaign?isArchived=true\n     \n## To return campaigns from a specific advertiser:\ncurl -X GET \\\n     -H \"X-Adzerk-ApiKey:<APIKEY>\" \\\n     https://api.kevel.co/v1/campaign?AdvertiserId=12345"
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function listCampaigns() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let campaigns = await client.run(\"campaign\", \"list\");\n  console.log(campaigns);\n\n  let names = campaigns.items.map(a => a.name)\n  console.log(names);\n}\n\nlistCampaigns();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef list_campaign()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    pp client.campaigns.list()\nend\nlist_campaign()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```