question

mikeshogo avatar image
mikeshogo asked mikeshogo answered

Getting 401 Unauthorized when making any API calls using OAuth2 token

I just started building a web app with the devkit. OAuth2 is working, and I'm able to get tokens from the sandbox API. However, any api calls are returning:

{
    "message": "401 Unauthorized"
}

curl -X GET \
  https://apisandbox.dev.clover.com/v3/merchants/SG9XWR9KWJZM1 \
  -H 'Authorization: Bearer {MY_TOKEN}'
REST APIDevKit
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

mikeshogo avatar image
mikeshogo answered
Nevermind! I didn't have anything set under "Required Permissions" in the App Settings
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community