---
title: "Withdraw sent invitations"
method: POST
path: "/v1/actions/withdraw_invitations"
tags: ["Network"]
---

# Withdraw sent invitations

`POST /v1/actions/withdraw_invitations`

## Request

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

Take back sent invitations that are still unanswered, in the background.

Same inputs and rules as preview_withdraw_invitations; run that first. To take back ONE invitation now, whoever sent it, use withdraw_invitation.

It queues the work and answers at once. tasks[].taskId is not a task id that get_send_status takes.

Calling it twice queues the same withdrawal twice.

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

## Request body

- object
  - `campaignId` string: ID of a specific campaign to withdraw invites for. Provide either campaignId OR linkedinConnectionId, not both.
  - `linkedinConnectionId` string: LinkedIn sender account ID. When provided (without campaignId), withdraws eligible invites across ALL campaigns using this account.
  - `daysThreshold` number: Only withdraw invites that have been pending for at least this many days (default: 7).
  - `withdrawLimit` number: Max number of profiles to withdraw per campaign run. Omit for no limit.

## Response `200`

It worked. Inside result: success, summary, tasks.

- 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)
