/oauth2/token is returning invalid_client

1 post / 0 new
/oauth2/token is returning invalid_client

Hi

 The API /oauth2/token with grant_type client_credentials is not working. I am passing grant_type=client_credentials and my client_id and client_secret.

It is returning "invalid_client"

 curl --request POST \
  --url https://sandboxapi.1link.net.pk/uat-1link/sandbox/oauth2/token \
  --header 'accept: application/json' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data 'grant_type=client_credentials&client_id=my_client_id&client_secret=my_client_secret&scope=1LinkApi'

{ "error":"invalid_client" }% 

 

What could be wrong here?

 

Regards