GroundsocialDocs

API · LinkedIn

POST /linkedin/accounts/{account}/invitations/{invitation}/respond

Accepts or ignores a connection invitation your connected LinkedIn account received.

RequestPOST /v1/linkedin/accounts/{account}/invitations/{invitation}/respond
Operation idlinkedin.invitation.respond
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Accepts or ignores a connection invitation your connected LinkedIn account received.

Path parameters

NameTypeRequiredDescription
accountstringyesThe id of the LinkedIn account you connected (from GET /v1/linkedin/accounts). Example: csn_01JDX9EXAMPLE0000000000.
invitationstringyesThe invitation id or urn. Example: 7312345678901234567.

Request body

FieldTypeRequiredDescription
action"accept" | "ignore"yes
shared_secretstringyesThe invitation’s shared_secret from linkedin_invitations_list.

Responses

StatusMeaningSchema
200The invitation was answered.LinkedInInvitationResponded
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404LinkedIn has no such public page, or it was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.Error

LinkedInInvitationResponded fields

FieldTypeDescription
accountstringThe connected account id (csn_…).
respondedtrue
action"accept" | "ignore"
invitation_urnstring

Errors use one shape everywhere; see Errors for every code and what to do.