Licence requirements when creating meetings through API

We have a question regarding how licences are allocated when using the API to create meetings. We’ve got a number of user licences, but want to start creating meetings through the API. How does the API know how many and which licences are being used? For example, if we have 10 users, and everyone can create two concurrent meetings, how does Zoom handle this given that the API will specific to one of those users? We need clarity on how we set this up, please.