# preview_withdraw_invitations: Preview withdrawing invitations

Count the sent invitations a withdrawal would take back, per campaign. This action only reads; it changes nothing. Plan: Free and Connect.

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

{
  "linkedinConnectionId": "PASTE_CONNECTION_ID_HERE"
}
```

## What you give it

- `campaignId` (optional): a campaign id. ID of a specific campaign to withdraw invites for. Provide either campaignId OR linkedinConnectionId, not both. Where to get it: An earlier answer of this same action has it, in `breakdown[].campaignId`.
- `linkedinConnectionId` (optional): a connection id. LinkedIn sender account ID. When provided (without campaignId), withdraws eligible invites across ALL campaigns using this account. Where to get it: Run `list_linkedin_accounts` and use `accounts[].id`.
- `daysThreshold` (optional): a number, 1 to 90. Only withdraw invites that have been pending for at least this many days (default: 7).
- `withdrawLimit` (optional): a number, 1 to 500. Max number of profiles to withdraw per campaign run. Omit for no limit.

## What you get back

- `summary`
- `breakdown`

## Good to know

- Pass campaignId or linkedinConnectionId, exactly one.
- Only invitations a campaign sent are counted, and only those pending at least daysThreshold days and at most 42.
- When nothing qualifies the answer is a plain sentence, not an object.

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