Attributes to api