# get_inmail_credits: Get InMail credits

Read how many InMail credits each of your accounts has left. This action only reads; it changes nothing. Plan: Free and Connect.

```
POST https://api.heyreagent.com/v1/actions/get_inmail_credits
Authorization: Bearer YOUR_KEY
content-type: application/json

{}
```

## What you give it

- `connectionId` (optional): a connection id. One LinkedIn account id (list_linkedin_accounts). Omit for all accounts on the active setup. Where to get it: Run `list_linkedin_accounts` and use `accounts[].id`.
- `includeAllSetups` (optional): true or false. With no connectionId: read accounts across every setup, not just the active one.

## What you get back

- `accounts`
- `salesNavigatorCreditsTotal`
- `hint`

## Good to know

- credits is null, with a reason, for an account that could not be read.

Page: https://heyreagent.com/docs/actions/get_inmail_credits