Skip to main content
POST
Withdraw an invitation
Cancels an invitation OneShot sent or queued, before or after it reaches LinkedIn. Requires the invite grant and an Idempotency-Key. Standard API rate limits apply. The daily send cap does not block withdrawal.
string
required
OneShot LinkedIn account ID.
string
required
Stable OneShot invitation ID returned by the invite operation, not LinkedIn’s id (external_invitation_id).
Returns HTTP 202 with request and receipt IDs; linkedin.scheduled_for is always null. Poll the request endpoint for one of:
  • cancelled_before_send: cancelled before it was sent. Its place in the daily allowance is released.
  • withdrawn: LinkedIn confirmed the withdrawal.
  • already_withdrawn: this tracked invitation was already cancelled or withdrawn.
  • not_pending: the invitation is no longer withdrawable, including an accepted connection.
Withdrawal only cancels the invitation. It never disconnects an established connection. It never restores the daily allowance for an invitation already sent. Sending again is a new explicit operation and is subject to LinkedIn’s resend restrictions. When the original send is still unconfirmed, OneShot resolves that first. A withdrawal that cannot be confirmed reports withdrawal_unverified. A retry only ever acts on the same invitation, never on a newer one to the same person. A failed withdrawal has an error_code and a result with reason. Codes include invitation_not_found, use_original_invitation, invitation_unverified, rate_limited and account_disconnected; see Errors. One that failed before reaching LinkedIn is refunded as account credit within a day. The SDKs wait up to 180 seconds. Pass wait: false (Python wait=False) and poll GET /v1/requests/{request_id} instead. After a failed job, the same key replays the original response and polling shows the same failed job. Use a new key to try again.