To generate both, create an app in My Apps > Create App. Use these settings:
Set Distribution Type to Sub-Account.
Add these Scopes:
locations.readonly
contacts.readonly
contacts.write
opportunities.readonly
opportunities.write
users.readonly
Copy the OAuth Redirect URL and add it as a Redirect URL in your HighLevel app.
Copy the Client ID and Client Secret from HighLevel and add them to your credential.
Add the same scopes added above to your credential in a space-separated list. For example:locations.readonly contacts.readonly contacts.write opportunities.readonly opportunities.write users.readonly