WarmablyWarmablyDOCS
Search docs⌘K
Dashboard
API Reference/Endpoints

Accept or decline an invitation

POST/api/linkedin/gateway/users/invite/received/{invitation_id}

Resolves one of the connected account's pending inbound connection requests, either accepting it into the network or declining it outright.

Authentication

Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401. The account behind account_id must belong to your key.

Path parameters

FieldTypeDescription
invitation_id *stringThe invitation's id, from List invitations received.

Body parameters

FieldTypeDescription
account_id *stringWhich connected account the invitation was sent to.
provider *"LINKEDIN"Always the literal string LINKEDIN.
shared_secret *stringThe token that came back on this invitation from List invitations received — LinkedIn requires it to act on the invite.
action *"accept" | "decline"Whether to accept the connection request or turn it down.

Response fields

FieldTypeDescription
status"ACCEPTED" | "DECLINED"Confirms which action was taken.

Errors

·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. The account_id doesn't belong to this key.·404 Not Found. No pending invitation with that id — it may already be resolved, or the shared_secret is stale.
CredentialsRequired
AuthorizationBearer wm_live_••••••••
RequestTry it
curl -X POST https://api.warmably.com/api/linkedin/gateway/users/invite/received/9a4c2e11-5f0b-4d3a-8e77-1b2c3d4e5f60 \
  -H "Authorization: Bearer wm_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "459993d2-b0e7-4b19-baf9-45252ca324cf",
    "provider": "LINKEDIN",
    "shared_secret": "eyJhbGciOiJIUzI1NiJ9...",
    "action": "accept"
  }'
Response
200 OK
{
  "object": "UserInvitationHandled",
  "status": "ACCEPTED"
}
No key yet? Create one from Dashboard → API Keys.