---
updatedAt: 2026-03-06T17:01:43.000Z
agentTools:
  projectIndex: https://docs.pelcro.com/v2.4/llms.txt
---

# Get campaign

Retrieve a specific campaign.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Open API",
    "version": "1.88"
  },
  "servers": [
    {
      "url": "https://www.pelcro.com/api/v1/sdk/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "site_id"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/campaign": {
      "get": {
        "summary": "Get campaign",
        "description": "Retrieve a specific campaign.",
        "operationId": "get-campaign-by-id-or-key",
        "parameters": [
          {
            "name": "site_id",
            "in": "query",
            "description": "The unique identifier of the site associated with your account.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "campaign_id",
            "in": "query",
            "description": "The campaign unique identifier. Required if `campaign_key` is not provided.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "campaign_key",
            "in": "query",
            "description": "The campaign key. This will search and retrieve campaigns by associated runs. Required if `campaign_id` is not provided.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": false,\n    \"data\": {\n        \"campaigns\": [\n            {\n                \"id\": 542,\n                \"name\": \"Campaign-Me\",\n                \"plan\": {\n                    \"id\": 364833,\n                    \"nickname\": \"Daily\",\n                    \"interval\": \"day\",\n                    \"interval_count\": 1,\n                    \"is_donation\": false,\n                    \"amount\": 2400,\n                    \"currency\": \"usd\",\n                    \"auto_renew\": true,\n                    \"apple_product_id\": null,\n                    \"gift_description\": null,\n                    \"entitlements\": null,\n                    \"type\": \"regular\",\n                    \"address_required\": false,\n                    \"product\": {\n                        \"id\": 3686,\n                        \"entitlements\": null,\n                        \"name\": \"Consulting Services\",\n                        \"address_required\": false,\n                        \"sites\": [\n                            {\n                                \"id\": 699\n                            }\n                        ],\n                        \"paywall\": {\n                            \"tags\": null\n                        },\n                        \"paywalls\": {\n                            \"tags\": []\n                        }\n                    }\n                },\n                \"coupon\": {\n                    \"id\": 2037,\n                    \"code\": \"VAMOS\",\n                    \"discount_type\": \"percentage\",\n                    \"amount_off\": null,\n                    \"currency\": null,\n                    \"duration\": \"once\",\n                    \"duration_in_months\": null,\n                    \"percent_off\": 50,\n                    \"valid\": true\n                }\n            }\n        ]\n    }\n}"
                  },
                  "empty response": {
                    "value": "{\n  \"error\": false,\n  \"data\": {\n    \"campaigns\": []\n  }\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "campaigns": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "example": 542,
                                    "default": 0
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "Campaign-Me"
                                  },
                                  "plan": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "integer",
                                        "example": 364833,
                                        "default": 0
                                      },
                                      "nickname": {
                                        "type": "string",
                                        "example": "Daily"
                                      },
                                      "interval": {
                                        "type": "string",
                                        "example": "day"
                                      },
                                      "interval_count": {
                                        "type": "integer",
                                        "example": 1,
                                        "default": 0
                                      },
                                      "is_donation": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "amount": {
                                        "type": "integer",
                                        "example": 2400,
                                        "default": 0
                                      },
                                      "currency": {
                                        "type": "string",
                                        "example": "usd"
                                      },
                                      "auto_renew": {
                                        "type": "boolean",
                                        "example": true,
                                        "default": true
                                      },
                                      "apple_product_id": {},
                                      "gift_description": {},
                                      "entitlements": {},
                                      "type": {
                                        "type": "string",
                                        "example": "regular"
                                      },
                                      "address_required": {
                                        "type": "boolean",
                                        "example": false,
                                        "default": true
                                      },
                                      "product": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "integer",
                                            "example": 3686,
                                            "default": 0
                                          },
                                          "entitlements": {},
                                          "name": {
                                            "type": "string",
                                            "example": "Consulting Services"
                                          },
                                          "address_required": {
                                            "type": "boolean",
                                            "example": false,
                                            "default": true
                                          },
                                          "sites": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "integer",
                                                  "example": 699,
                                                  "default": 0
                                                }
                                              }
                                            }
                                          },
                                          "paywall": {
                                            "type": "object",
                                            "properties": {
                                              "tags": {}
                                            }
                                          },
                                          "paywalls": {
                                            "type": "object",
                                            "properties": {
                                              "tags": {
                                                "type": "array"
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "coupon": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "integer",
                                        "example": 2037,
                                        "default": 0
                                      },
                                      "code": {
                                        "type": "string",
                                        "example": "VAMOS"
                                      },
                                      "discount_type": {
                                        "type": "string",
                                        "example": "percentage"
                                      },
                                      "amount_off": {},
                                      "currency": {},
                                      "duration": {
                                        "type": "string",
                                        "example": "once"
                                      },
                                      "duration_in_months": {},
                                      "percent_off": {
                                        "type": "integer",
                                        "example": 50,
                                        "default": 0
                                      },
                                      "valid": {
                                        "type": "boolean",
                                        "example": true,
                                        "default": true
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "empty response",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "campaigns": {
                              "type": "array"
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": {\n    \"report_id\": null,\n    \"status\": 404,\n    \"message\": \"Campaign ID or Campaign Key is required\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "report_id": {},
                        "status": {
                          "type": "integer",
                          "example": 404,
                          "default": 0
                        },
                        "message": {
                          "type": "string",
                          "example": "Campaign ID or Campaign Key is required"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```