export api for one or all; custom attribute api