List promotion advertiser names
GET
/api/v3/promotions/promoters
const url = 'https://api.tryletterhead.com/api/v3/promotions/promoters?api=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tryletterhead.com/api/v3/promotions/promoters?api=true' \ --header 'Authorization: Bearer <token>'List the distinct advertiser (โpromoterโ) display names used across the companyโs promotions โ a flat list of strings, for populating a promoter filter/autocomplete.
v3 endpoints expect a company API key.
Authorizations
Section titled โAuthorizations โParameters
Section titled โ Parameters โQuery Parameters
Section titled โQuery Parameters โ api
required
boolean
When set to true, the endpoint accepts authorization with your API Key.
Responses
Section titled โ Responses โ200 OK
Media type application/json
object
items
Array<string>
total
integer
Example
{ "items": [ "Example Brand", "Another Advertiser" ], "total": 2}Still can’t find what you need? Contact support.