Join the Conversation

To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".

Options

My SonicWall API - Bearer Token

Hi,

I successfully managed to get through most of the steps to access the MySonicWall API:

I have an access token, client_secret, tenant_serial - but I never managed to get the bearer token. I always get an 401 Unauthorized."

I followed the instruction here:
https://www.sonicwall.com/support/knowledge-base/nsm-cloud-getting-token-for-msw-and-nsm-apis/231018225425867/

Remarks:
- I always use https://api.mysonicwall.com/api/ (and not NSM) - is that correct? (will NSM work if user does not use NSM? I tried it as well, at least I am getting a reply:
"status": {        "info": [            {                "code": "NOK",                "level": "error",                "message": "Serial (0040xxxxxxxxxx) is not registered to NSM."            }        ],        "success": false    }}

- in my account are two tenants, I tried with serials from both tenants - I always get an 401 Unauthorized. I added authorization x-api-key as well - no difference.

Tested with postman and python scripts.

Any ideas?

Thanks
Martin

Category: Developer Hub
Reply
Sign In or Register to comment.