How do we know the attachment maximum size configuration from client through API

Hello, I’m developing my mastodon’s client app. I have a concern that how we can get the attachment maximum size (current 10Mb for from client for different instances because I saw that each instance have different configuration size and the client need to know the config to make warn users to check before update an attachment.

Thanks in advance.