Extend API response with an attribute

In the attributes module, search for the attribute that you want to expose in the API response:

Open the context menu (dots on the right) on the attribute and choose "Use as":

Mark the attribute as API attribute:

Hit save, after a publish the attribute will be available in the XML/JSON responses under the (optional) displayname provided: