Retrieving Campaigns

Campaign API Object

A reward is represented as the following JSON object in all API responses.

{
  "object_id": "rfc_0cc175b9c0f1b6a831c399e269772661",
  "object": "campaign",
  "name": "Name of the campaign",
  "type": "signup-booster",
  "created_at": 1502486922
}

A list of rewards is represented as follows:

[...]

Campaign Retrieval API

Don't forget to replace the following placeholders with your own values when running the commands:

  • __API_KEY__  - your api key
  • __CAMPAIGN_ID__  - campaign object id

Retrieve all campaigns in the account

curl -X GET \
    -H "Accept: application/json" \
    -H "Authorization: Bearer __API_KEY__" \
    "https://api.referralmagic.co/campaigns"

Retrieve a specific campaign

curl -X GET\
    -H "Accept: application/json"\
    -H "Authorization: Bearer __API_KEY__"\
    "https://api.referralmagic.co/campaigns/__CAMPAIGN_ID__"

Still need help? Contact Us Contact Us