Other Endpoints
For more complex 3rd party integrations or custom middleware we also expose the following additional endpoints for your use.
Fetch Current Organization
GET
https://api.heypoplar.com/v1/me
This endpoint will return the Organization associated with your access token. It is intended to be used when testing connectivity and the validity of an access token.
Headers
Authorization*
string
Bearer ProductionAccessToken
Fetch Active Campaigns
GET
https://api.heypoplar.com/v1/campaigns
This endpoint will return any active campaigns.
Headers
Authorization*
string
Bearer ProductionAccessToken
Fetch Campaign
GET
https://api.heypoplar.com/v1/campaign/:id
This endpoint will return the details of a given campaign. It may be used to validate that a provided campaign ID is valid.
Path Parameters
id*
string
Campaign ID
Headers
Authorization*
string
Bearer ProductionAccessToken
Fetch Campaign Creatives
GET
https://api.heypoplar.com/v1/campaign/:id/creatives
This endpoint returns a list of active creatives belonging to a campaign
Path Parameters
ID*
string
Campaign ID
Headers
Authorization*
string
Bearer ProductionAccessToken
Fetch Campaign Mailings
GET
https://api.heypoplar.com/v1/campaign/:id/mailings
This endpoint can be used to fetch all mailings belonging to a campaign.
Since there are typically a large number of mailings associated with a campaign, this endpoint is paginated. Please refer to the following HTTP headers on the response which provide information around the number of mailings and pages, and pay attention to our rate limits when fetching mailings from the API.
Response Headers:
X-Total
- the total number of mailings
X-Total-Pages
- the total number of pages
X-Page
- the current page
X-Per-Page
- the number of results per page
X-Next-Page
- the next page
X-Prev-Page
- the previous page
Path Parameters
id*
string
Campaign ID
Query Parameters
page
number
The page of mailings to be returned
per_page
number
The number of mailings to be returned per page
default: 5
maximum: 100
start_date
string
ISO8601 formatted start date time to limit mailings created after
Example 2021-01-16T10:30:00
end_date
string
ISO8601 formatted end date time to limit mailings created before
Example 2021-02-19T18:30:00
String
Headers
Authorization*
string
Bearer ProductionAccessToken
Last updated