Mautic Community Forums

API - modify GET /contacts response

Currently the response to GET /contacts uses the contact id nested within the contacts element. My use case is perhaps unique, in that I would like to connect to Mautic via the no-code environment, Bubble.is. In this popular platform, the data elements and types are retrieved automatically, which becomes problematic with Mautic in that a value (the contact ID) is being used as an element name, so obviously changes with each call. In other words, I cannot simply spin through all items in the json, I can only retrieve by element name.

This problem could be avoided by simply removing the id from the parent ( but keeping ‘id’ in the object itself )