Forum Discussion

Akenefick's avatar
Akenefick
Genius
3 years ago

Labels Field For Messages Collection

The labels field for the messages collection only returns the query to retrieve the labels on the message. Is there a field to return the actual labels or do you have to make a separate API call for each message?

    • Akenefick's avatar
      Akenefick
      Genius

      Thanks that works and doesn't seem to make a noticeable difference in response time. I tested it with 1000 messages getting several fields for each with and without the labels subquery and it took close to the same amount of time.