Hi, Aman!
Can you please try this way?
```
curl -k -u 'client_id:client_secret' -d grant_type=client_credentials https://[gluu-server]/oxauth/restv1/token
```
And a native client config should be like this:
OPENID CONNECT CLIENTS DETAILS
------------------------------
- **Name:** api-test
- **Client ID:** 20a3e723-5187-4abe-82f9-357d7a1e3fed
- **Subject Type:** pairwise
- **ClientSecret:** XXXXXXXXXXX
- **Application Type:** native
- **Persist Client Authorizations:** true
- **Pre-Authorization:** false
- **Authentication method for the Token Endpoint:** client_secret_basic
- **Logout Session Required:** false
- **Include Claims In Id Token:** false
- **Disabled:** false
- **Scopes:** [profile, openid, permission, email, user_name]
- **Grant types:** [authorization_code, refresh_token, client_credentials, implicit]
- **Response types:** [code, token, id_token]
If you use for API-call, `Application Type` should be `Native` I think.
Regards ~ Shakil