List inferred interest topics
GET
/api/v3/contacts/custom-fields/interest-topics
const url = 'https://api.tryletterhead.com/api/v3/contacts/custom-fields/interest-topics?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/contacts/custom-fields/interest-topics?api=true' \ --header 'Authorization: Bearer <token>'Returns the interest topics Letterhead has inferred for your companyโs contacts from their click activity, each with how many contacts carry it โ the vocabulary the segment builderโs interest-topic criterion draws from. Commonest topic first, then alphabetically.
This capability is still rolling out; if it isnโt enabled for your account yet, this returns an empty list rather than an error.
This is a company-level (v3) read. Authenticate with a company API key as a Bearer token.
Authorizations
Section titled โAuthorizations โParameters
Section titled โ Parameters โQuery Parameters
Section titled โQuery Parameters โ api
required
boolean
Required. Set to true.
Responses
Section titled โ Responses โ200 OK
Media type application/json
object
items
Array<object>
object
value
The interest topic.
string
contactCount
integer
message
string
total
integer
Example
{ "items": [ { "value": "outdoor recreation", "contactCount": 842 }, { "value": "personal finance", "contactCount": 611 } ], "message": "Inferred interest values retrieved.", "total": 2}Still can’t find what you need? Contact support.