List curation sources
GET
/api/v3/curations/sources
const url = 'https://api.tryletterhead.com/api/v3/curations/sources?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/curations/sources?api=true' \ --header 'Authorization: Bearer <token>'Returns the distinct site names (βsourcesβ) the companyβs curations were saved from, each paired
with a display label. Use a returned siteName in List curationsβ sources[] filter.
Authorizations
Section titled βAuthorizations βParameters
Section titled β Parameters βQuery Parameters
Section titled βQuery Parameters β api
required
boolean
Required. Set to true to authenticate with your company API key rather than a signed-in session.
keyword
string
Filter sources by name.
count
integer
Page size. Defaults to returning every source.
page
integer
type
integer
Restrict to sources of one curation type (see List curationsβ type field).
Responses
Section titled β Responses β200 OK β a bare array, not wrapped in items/message/total.
Media type application/json
Array<object>
object
siteName
string
displayLabel
string
Example
[ { "siteName": "example.com", "displayLabel": "Example Daily" }]Still can’t find what you need? Contact support.