> For the complete documentation index, see [llms.txt](https://developer.workdigital.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.workdigital.io/web-api/untitled/token-client-credentials.md).

# Token (Client Credentials)

### Request Access Token Using client credentials:

URL : `/api/v1/oauth2/token`\
Method : `POST`

### Parameters

*`client_id`* (**required**)\
Your application client id&#x20;

*`client_secret`* (**required**)\
Your application client secret

*`grant_type`* (**required**)\
Use the value as “`client_credentials`“

### Sample Request

`curl -u {client_id}:{client_secret} https://my.worksmart.app/api/v1/oauth2/token -d 'grant_type=client_credentials'`

### Sample Response

```
{
    "access_token": "abcdefghijklmnopqrstuvwxyz123456789", 
    "expires_in": 3600, 
    "token_type": "Bearer", 
    "scope": null
}
```
