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:

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__>"