Get the running campaign
GET/api/v1/campaigns/active
The credit campaign running now — the sign-up campaign when there is
one, otherwise the first-integration campaign — as the banner on the
public site shows it. data is null when no campaign is running.
No API key is needed. Answers may be cached for a minute.
Responses
200
The running campaign, or null.
Cache-Controlstringpublic, max-age=60.
dataPublicCampaign | null- PublicCampaign
Show PublicCampaign properties
idstringkindstringproductsarray of stringThe products a first-integration campaign pays for;[]for a sign-up campaign.namestringbanner_textstringbanner_linkstringehunumberThe credit paid, in EHU.ends_atstring (date-time)
- null
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
The campaign could not be loaded (CAMPAIGN_UNAVAILABLE). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X GET 'https://evohub.io/api/v1/campaigns/active'
