---
title: "Get InMail credits"
method: POST
path: "/v1/actions/get_inmail_credits"
tags: ["InMail"]
---

# Get InMail credits

`POST /v1/actions/get_inmail_credits`

## Request

- Base URL: `https://api.heyreagent.com`
- URL: `https://api.heyreagent.com/v1/actions/get_inmail_credits`
- Auth: HTTP bearer

Read how many InMail credits each of your accounts has left.

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

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

## Request body

- object
  - `connectionId` string: One LinkedIn account id (list_linkedin_accounts). Omit for all accounts on the active setup.
  - `includeAllSetups` boolean: With no connectionId: read accounts across every setup, not just the active one.

## Response `200`

It worked. Inside result: accounts, salesNavigatorCreditsTotal, hint.

- Worked
  - `ok` true, required
  - `result` object, required: What was asked for. A field that does not apply is left out, or is null.

## Other responses

- `default`: It did not work. The message says why, in plain English.

---

[API](https://skmtc.dev/heyreagent/apis/heyreagent-api.md) · [All operations](https://skmtc.dev/heyreagent/apis/heyreagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heyreagent/apis/heyreagent-api/revisions/917360c5f841?raw)
