Withdraw Invitations

The DELETE/api/v1/invitations/{id} endpoint allows you to withdraw a pending LinkedIn connection request that was previously sent via Salesflow.

This is useful if you want to clean up old or unanswered invitations to avoid hitting LinkedIn limits or to optimize invite strategy.

Endpoint:

DELETE/api/v1/invitations/{id}

curl https://api.salesflow.io/public/api/v1/invitations/ \
  --request DELETE \
  --header 'X-AccountId: 1234567890' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'

Note:
X-AccountId is required in the request header. You obtain this ID after adding a LinkedIn account through the iFrame authentication flow.

Body Parameters:

Parameter

Type

Description

Id

string

The ID of the invitation you want to withdraw. You could get this from the list of invited profiles

Use Cases

1. Dynamic Campaign Adjustments

If a user updates targeting criteria (e.g. industry or job title), withdraw previously sent invites that no longer match the new criteria.

2. Automated Cleanup Routines

Run automated jobs to withdraw invites older than X days, using the list from /api/v1/invitations/sent .

3. Respond to Rejection Patterns

If a pattern of non-responses is detected, programmatically withdraw similar invites to improve outreach efficiency.

4. Manual Withdraw via your UI

Allow users to manually cancel specific invites from your UI using this endpoint behind the scenes.