ASM - Error creating access token through the ASM API
search cancel

ASM - Error creating access token through the ASM API


Article ID: 211448


Updated On:


CA App Synthetic Monitor


After generating the client_id succesfully through the ASM API, the following error is occurring when trying to create the new Access Token as instructed in the ASM documentation, e.g.:

curl -X POST "https:/" -H  "accept: application/json" -H  "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=<client id>&client_secret=<client secret>"

"error": "invalid_client"
"error_description": "Either the client_id does not exist or the client_secret is incorrect"



Any release


In order to resolve this problem please try the following:

- URL encode the client_id and secret_id. You can use below online tool to do so:

- Then, pass the client_id and secret_id in the URL encoded format to the curl command

Additional Information

Create a New Access Token and a Refresh Token From the Client Credentials