Add API option to list IDs