attachments api test