campaigns
Fetch One Campaign

Fetch one Campaign

This endpoint allows you to fetch one campaign, that is currently active and belongs to the tenant.

Request

Endpoint

GET https://demo.rewardadz.com/public/api/v1/gateway/:campaign_id/campaigns

Parameters

campaign_id:string

Headers

x-access-token:string

Response

This API will return a single campaign object if it exists. below is a sucessfull respoonse

NOTE: The object has diffrent fields depending on the type of campaign

{
  "success": true,
  "ra_message": "Campaigns fetched successfully",
  "ra_response_data": {
    "_id": "6579704725ef96a79ebe60c9",
    "org_id": "6577306405afffa4c930cff5",
    "name": "Financial Litracy",
    "description": "Thank you for participating in our financial literacy survey. Your responses will help us understand your level of financial knowledge and awareness. Please answer the following questions honestly.",
    "type": "survey",
    "age": "18 - 30",
    "gender": "All",
    "location": [],
    "total_budget": 10000,
    "ad_spent": 10000,
    "payout": 50,
    "currency": "KES",
    "logo": "https://storage.googleapis.com/rewardadz-922c1.appspot.com/ra.jpeg?GoogleAccessId=firebase-adminsdk-agxoy%40rewardadz-922c1.iam.gserviceaccount.com&Expires=4856057415&Signature=qPLsy6JEB9%2B8kx1K%2BhBNX7A77%2BhlpAM6c7HLUQK9OyA3eNQ4oLS0o7oSKG%2B9sIkNtIcOOYLh7QmgmBrgiFS91Y5MlITTdAtEpJmiHlkfafgpLHoBkqQppBQgUCEWlAxok3ltAInLgS5aihSY3m6MlTJU9XgRhAfmMxxmxsd2W7fkB8bc7PAXpnbP48LOh5SL%2FfapwUvoTKIHNiL8iBosq82LrWl6i2ppXr3V8bn%2Fr3yhSf1c7J3qTHM%2BbxEewj3ATP3mAg%2BsiHJYHjrRHn12lpW7XN3OpHkbwtWSri4MBhAbXKaU3SY%2FUff1OwuDxrbh%2B14l7mE7M3VC5TmSqwNxGA%3D%3D",
    "content_file": "https://storage.googleapis.com/rewardadz-922c1.appspot.com/ra.jpeg?GoogleAccessId=firebase-adminsdk-agxoy%40rewardadz-922c1.iam.gserviceaccount.com&Expires=4856057415&Signature=qPLsy6JEB9%2B8kx1K%2BhBNX7A77%2BhlpAM6c7HLUQK9OyA3eNQ4oLS0o7oSKG%2B9sIkNtIcOOYLh7QmgmBrgiFS91Y5MlITTdAtEpJmiHlkfafgpLHoBkqQppBQgUCEWlAxok3ltAInLgS5aihSY3m6MlTJU9XgRhAfmMxxmxsd2W7fkB8bc7PAXpnbP48LOh5SL%2FfapwUvoTKIHNiL8iBosq82LrWl6i2ppXr3V8bn%2Fr3yhSf1c7J3qTHM%2BbxEewj3ATP3mAg%2BsiHJYHjrRHn12lpW7XN3OpHkbwtWSri4MBhAbXKaU3SY%2FUff1OwuDxrbh%2B14l7mE7M3VC5TmSqwNxGA%3D%3D",
    "start_time": "2023-12-12T08:30:00.000Z",
    "end_time": "2023-12-13T20:30:00.000Z",
    "content": [
      {
        "type": "open",
        "question": "On a scale of 1 to 10, how would you rate your overall financial literacy?",
        "choices": [],
        "created_at": "2023-12-13T08:50:15+00:00",
        "updated_at": "2023-12-13T08:50:15+00:00",
        "_id": "6579704725ef96a79ebe60ce",
        "__v": 0
      },
      {
        "type": "open",
        "question": "Do you have a budget for your monthly expenses?",
        "choices": [],
        "created_at": "2023-12-13T08:50:15+00:00",
        "updated_at": "2023-12-13T08:50:15+00:00",
        "_id": "6579704725ef96a79ebe60cf",
        "__v": 0
      }
    ],
    "active": false,
    "published": false,
    "deleted_at": null,
    "created_at": "2023-12-13T08:50:15+00:00",
    "updated_at": "2023-12-13T08:50:15+00:00",
    "__v": 0
  }
}