How to determine granted scopes?

When creating an oauth app using optional granular scopes, how can my server determine which optional scopes the user granted, if any?

Is the only solution to attempt an api call for each potential scope?

@Isaac Hope you will be fine.

In the response of ‘POST’ endpoint you have

scope: read/write scopes