Your files would be attached to your organization (I believe) and can be listed with a simple GET:
[GET]: https://api.openai.com/v1/files
https://platform.openai.com/docs/api-reference/files
Otherwise they’d have to be retrieved from the messages:
[GET]: https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}/files
https://platform.openai.com/docs/api-reference/messages/listMessageFiles