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

# Send Connection

> Send LinkedIn connection request to the specified profile. 

Send a connection request to a LinkedIn profile from your own LinkedIn account. You can use this endpoint to automate your LinkedIn outreach.

This endpoint works only with custom accounts. Please check the [Using Custom Accounts](/guides/custom-accounts) guide for more details on how to set up and use custom accounts.

Stay within LinkedIn's limits and best practices to avoid restrictions on your account. We recommend sending no more than 20 connection requests per day.


## OpenAPI

````yaml POST /linkedin/send-connection
openapi: 3.0.1
info:
  title: HarvestAPI LinkedIn API reference
  description: HarvestAPI LinkedIn API reference
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.harvestapi.io
security:
  - ApiKeyAuthHeader: []
paths:
  /linkedin/send-connection:
    post:
      summary: Send LinkedIn connection request
      description: 'Send LinkedIn connection request to the specified profile. '
      parameters:
        - name: profile
          in: query
          description: >-
            LinkedIn profile URL or public identifier or profile ID to which the
            connection request will be sent. For example,
            'https://www.linkedin.com/in/john-doe-123456789/'
          schema:
            type: string
            format: url
        - name: cookie
          in: query
          required: true
          description: >-
            LinkedIn cookies. Please check
            https://docs.harvestapi.io/guides/custom-accounts for more details
            on how to get and use the cookies.
          schema:
            type: string
        - name: proxy
          in: query
          description: >-
            Proxy to use for this request. More details -
            https://docs.harvestapi.io/guides/custom-accounts
          schema:
            type: string
        - name: userAgent
          in: query
          description: >-
            User-Agent to use for this request. More details -
            https://docs.harvestapi.io/guides/custom-accounts
          schema:
            type: string
      responses:
        '200':
          description: Connection request sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  element:
                    type: object
                    properties:
                      connectionId:
                        type: string
                  status:
                    type: string
                  error:
                    type: string
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    ApiKeyAuthHeader:
      type: apiKey
      in: header
      name: X-API-Key

````