gmail-api

Does the Gmail REST API have access to label colors?


Is it possible to get label colors through the new Gmail REST API? Many of our users color code their emails and it would be great to be able to carry that color coding over to our applications.


Solution

  • It doesn't as per the docs a label consists of:

    {
     "id": string,
     "name": string,
     "messageListVisibility": string,
     "labelListVisibility": string,
     "type": string
    }
    

    see: https://developers.google.com/gmail/api/v1/reference/users/labels

    That does seem like a useful enhancement though.