# Accept or decline a received invitation

### Accept or decline a received invitation

`POST /api/v1/linkedin/invitations/received/{invitationId}`

Operation ID: `respondToLinkedinInvitation`

Accepts or declines a pending received invitation. Neither action can be reversed through this API.

**Path parameters**

- `invitationId` (string, required): invitationId from the received invitations listing

**Request body** (required)

- `connectedAccountId` (string · uuid, required): Connected account to act as
- `action` ("accept" | "decline", required)

**200**: The action that was applied.

- `action` ("accept" | "decline", required)
- `remainingUsage` (object, required): Remaining allowance for this action on the connected account across hourly, daily, and weekly windows. Each action type has its own limits.
  - `hour` (integer | null, required): Remaining hourly allowance for this action. Null when this action has no hourly cap.
  - `day` (integer, required): Remaining daily allowance for this action.
  - `week` (integer | null, required): Remaining weekly allowance for this action. Null when this action has no weekly cap.
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
