Getting file IDs to attach to a Send Message request

Hi,
The Send Message endpoint mentions a file_ids parameter that can be used to attach up to 6 files to the sent message. Where can I get these IDs?
Thanks