Other Endpoints
Last updated
Last updated
For more complex 3rd party integrations or custom middleware we also expose the following additional endpoints for your use.
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.
Name | Type | Description |
---|---|---|
GET
https://api.heypoplar.com/v1/campaigns
This endpoint will return any active campaigns.
Name | Type | Description |
---|---|---|
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.
GET
https://api.heypoplar.com/v1/campaign/:id/creatives
This endpoint returns a list of active creatives belonging to a campaign
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
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Authorization*
string
Bearer ProductionAccessToken
Authorization*
string
Bearer ProductionAccessToken
id*
string
Campaign ID
Authorization*
string
Bearer ProductionAccessToken
ID*
string
Campaign ID
Authorization*
string
Bearer ProductionAccessToken
id*
string
Campaign ID
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
Authorization*
string
Bearer ProductionAccessToken