## Client Credentials

Since this grant type (read '[*OAuth Grant Types*](/oauth/grant-types)' section) only allows access to your own account, you only need your OAuth Client ID & Client Secret to generate an Access Token using the Token URL endpoint (https://web.passolution.eu/oauth/token):

```http
POST https://web.passolution.eu/oauth/token
Content-Type: application/json

{
  "client_id": "your-client-id",
  "client_secret": "your-client-secret",
  "grant_type": "client_credentials"
}
```

| Parameter | Description |
|  --- | --- |
| client_id | Your OAuth Client ID |
| client_secret | Your OAuth Client Secret**It should not be stored outside of your secure servers** |
| grant_type | 'grant_type' field should be set to 'client_credentials' when using Client Credentials Grant Type |


The Token URL endpoint will respond with JSON response containing following fields:

```json
{
  "expires_in": 31536000,
  "access_token": "eyJ..."
}
```

| Parameter | Description |
|  --- | --- |
| expires_in | Number of seconds after which the access token will expire. |
| access_token | Access Token for the OAuth Client Passolution Account |