Skip to main content
POST
Send an invitation
Sends a connection request, with an optional note, from a connected account. Requires a connected account with the invite grant and an Idempotency-Key header. The default limit is 25 invitations per connected account per UTC day, shared across callers. Standard API rate limits also apply. Invitations are not paced: each one is sent as soon as it is picked up.
string
required
OneShot LinkedIn account ID.
string
required
HTTPS linkedin.com/in/ profile URL, or LinkedIn’s id for the person (a external_id).
string
Optional message, preserved verbatim. At most 300 Unicode characters. LinkedIn may impose a shorter account-specific limit or a custom-note allowance.
Response. HTTP 202 returns request_id, receipt_id, linkedin.invitation_id, and linkedin.scheduled_for, always null because invitations are not paced. Save the stable OneShot invitation ID to withdraw the invitation, including while it is queued. Poll GET /v1/requests/{request_id} for completion. SDK methods wait by default. Result. Completed results contain action_request_id, invitation_id, status (sent, already_connected, or pending), and external_invitation_id (LinkedIn’s id for the invitation) when available. Duplicate targets return the original invitation ID. An invitation that was sent outside OneShot has tracked: false and cannot be withdrawn through this API.

Failures

A failed job’s result carries reason, one plain sentence, and upstream_reason, LinkedIn’s own error type, when it gave one. retry_after (seconds) is set when the wait is known. Meanings are on Errors. Retry with a new key. Refunds. An invitation that fails before reaching LinkedIn is refunded as account credit within a day; refunds run daily at 03:00 UTC. The receipt gets a new signed revision marked failed. Uncertain sends. A timeout, server error or throttled send may still have gone out. It stays processing with send_status: ambiguous, and after 24 hours without confirmation reports send_unverified; it is never resent or refunded. A throttled send is checked after 10 minutes: if LinkedIn shows no invitation, it fails with rate_limited and is refunded. Waiting. The SDKs wait up to 180 seconds; the job keeps running after that. Pass wait: false (Python wait=False) and poll GET /v1/requests/{request_id}. Same key. It replays the original response, so polling shows the same job, failed or not. Nothing is resent. Use a new key to try again.