# withdraw_invitation: Withdraw one sent invitation, now

Take back one invitation you sent that is still unanswered, now. This action can change or spend something, and it happens right away. Plan: Free and Connect.

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

{
  "invitationId": "PASTE_SENT_INVITATION_ID_HERE"
}
```

## What you give it

- `invitationId` (needed): a sent invitation id. The sent invitation to take back (from list_sent_invitations, or returned by send_invitation). Where to get it: Run `list_sent_invitations` and use `pendingInvitations[].invitationId`.
- `connectionId` (optional): a connection id. Which of your LinkedIn accounts to act from (its id from list_linkedin_accounts). Omit to use your first live one. Where to get it: Run `list_linkedin_accounts` and use `accounts[].id`.

## What you get back

- `withdrawn`
- `invitationId`
- `from`: the account it ran on
- `usedToday`: number
- `dailyLimit`: number

## Good to know

- It cannot be undone.
- An invitation LinkedIn no longer has (accepted, declined or already withdrawn) answers invitation_not_found.

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