APIs & Integrations

coffeeocean
Participant

Get user friendly label for Persona when calling Contacts API

When calling contacts API /contacts/v1/lists/all/contacts/all, it returns the following persona property value. It only contains personal internal value (e.g., ‘persona_2’), which is not as user friendly. How to get the user friendly persona name (e.g., ‘Marketing VP of a mid-size company’)? I can’t seem to find any API for that. Please advise. Thanks!

    "hs_persona": {
      "value": "persona_2"
    }
0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Get user friendly label for Persona when calling Contacts API

Hi @coffeeocean,

The contacts API will always return the internal value for a property (including the persona property). Since the property label values change infrequently, you should pull the property values/labels using the contact properties API and store that in order to reference the property labels.

Get a Contact Property | Contact Properties API

GET /properties/v1/contacts/properties/named/:property_name - Endpoint to get an individual company property