> ## Documentation Index
> Fetch the complete documentation index at: https://developer.salesforge.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect LinkedIn account

> Connects a LinkedIn account to the workspace using credentials and an optional proxy. A matching sender profile is created automatically. If LinkedIn issues a 2FA challenge, the response carries `requires2fa: true` and the caller must submit the code via the OTP endpoint.



## OpenAPI

````yaml /openapi/multichannel-publicapi.json post /multichannel/workspaces/{workspaceID}/linkedin/accounts
openapi: 3.1.0
info:
  description: >-
    Returns the current state of a LinkedIn account. Useful while polling a
    connection that is waiting on OTP.
  title: Multichannel Public API
  version: '1.0'
servers:
  - url: /public
security:
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
  - ApiKeyAuth: []
externalDocs:
  description: ''
  url: ''
paths:
  /multichannel/workspaces/{workspaceID}/linkedin/accounts:
    post:
      tags:
        - multichannel
      summary: Connect LinkedIn account
      description: >-
        Connects a LinkedIn account to the workspace using credentials and an
        optional proxy. A matching sender profile is created automatically. If
        LinkedIn issues a 2FA challenge, the response carries `requires2fa:
        true` and the caller must submit the code via the OTP endpoint.
      parameters:
        - description: Workspace ID
          in: path
          name: workspaceID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                - $ref: '#/components/schemas/requests.ConnectLinkedinAccountRequest'
                  summary: request
                  description: LinkedIn account credentials and optional proxy
        description: LinkedIn account credentials and optional proxy
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.LinkedinAccountResponse'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
          description: Payment Required
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    requests.ConnectLinkedinAccountRequest:
      properties:
        email:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        linkedinUrl:
          type: string
        password:
          type: string
        proxy:
          $ref: '#/components/schemas/requests.ConnectLinkedinAccountProxyRequest'
      required:
        - email
        - password
      type: object
    responses.LinkedinAccountResponse:
      properties:
        checkpoint:
          properties:
            data:
              type: string
            publicKey:
              type: string
            type:
              type: string
          type: object
        firstName:
          type: string
        id:
          type: integer
        isConnected:
          type: boolean
        lastName:
          type: string
        linkedinUrl:
          type: string
        premiumType:
          type: string
        profilePictureUrl:
          type: string
        requires2fa:
          type: boolean
        state:
          type: string
        status:
          type: string
      type: object
    responses.ErrorResponse:
      properties:
        data: {}
        message:
          type: string
      type: object
    requests.ConnectLinkedinAccountProxyRequest:
      properties:
        host:
          minLength: 1
          type: string
        password:
          type: string
        port:
          type: integer
        username:
          type: string
      required:
        - host
        - port
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````