> ## 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 https://multichannel-api.salesforge.ai/public/multichannel/swagger/doc.json post /multichannel/workspaces/{workspaceID}/linkedin/accounts
openapi: 3.1.0
info:
  description: Multichannel public endpoints consumed through salesforge-api public docs.
  title: Multichannel Public API
  version: '1.0'
servers:
  - url: https://multichannel-api.salesforge.ai/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: []
  - 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:
        - LinkedIn
      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'
                  description: LinkedIn account credentials and optional proxy
                  summary: request
        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:
          description: LinkedIn login email.
          example: user@example.com
          type: string
        firstName:
          description: First name recorded on the account.
          example: Ada
          type: string
        lastName:
          description: Last name recorded on the account.
          example: Lovelace
          type: string
        linkedinUrl:
          description: Public LinkedIn profile URL of the account.
          example: https://www.linkedin.com/in/ada
          type: string
        password:
          description: LinkedIn login password.
          type: string
        proxy:
          $ref: '#/components/schemas/requests.ConnectLinkedinAccountProxyRequest'
        skipSenderProfile:
          description: >-
            Connect the account without creating a sender profile for it. By
            default a draft sender

            profile is created and linked automatically. Set this to true to
            connect the account

            standalone, then attach it via POST /sender-profiles or PATCH
            /sender-profiles/{id} with linkedinAccountId.
          example: false
          type: boolean
      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:
          description: >-
            Optional error context. Its shape depends on the message and
            endpoint.
        message:
          description: >-
            Human-readable error text or, for documented cases, a stable
            machine-readable code that clients can branch on.
          example: Invalid request body
          type: string
      type: object
    requests.ConnectLinkedinAccountProxyRequest:
      description: >-
        Proxy to route the LinkedIn session through. Recommended for account
        stability.
      properties:
        host:
          description: >-
            Proxy hostname. An explicit scheme (e.g. socks5://) selects the
            protocol; otherwise http is used.
          example: proxy.example.com
          minLength: 1
          type: string
        password:
          description: Proxy password, when the proxy requires authentication.
          type: string
        port:
          description: Proxy port.
          example: 8080
          type: integer
        username:
          description: Proxy username, when the proxy requires authentication.
          type: string
      required:
        - host
        - port
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.