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

# List LinkedIn Senders

> Retrieve all LinkedIn accounts connected to your workspace

Returns all LinkedIn accounts (senders) that are connected to your workspace and can send messages.

## Request

<ParamField header="X-API-Key" type="string" required>
  Your API key
</ParamField>

## Response

<ResponseField name="senders" type="array">
  Array of LinkedIn sender accounts

  <Expandable title="Sender Object">
    <ResponseField name="id" type="string">
      Unique sender identifier
    </ResponseField>

    <ResponseField name="name" type="string">
      Full name of the LinkedIn account
    </ResponseField>

    <ResponseField name="linkedinUrl" type="string">
      LinkedIn profile URL
    </ResponseField>

    <ResponseField name="status" type="string">
      Account status: `active`, `disconnected`, `rate_limited`
    </ResponseField>

    <ResponseField name="dailyMessageLimit" type="integer">
      Maximum messages per day
    </ResponseField>

    <ResponseField name="messagesSentToday" type="integer">
      Messages sent so far today
    </ResponseField>

    <ResponseField name="remainingMessages" type="integer">
      Messages remaining for today
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total" type="integer">
  Total number of senders
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.sendpilot.ai/v1/inbox/senders \
    -H "X-API-Key: YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.sendpilot.ai/v1/inbox/senders', {
    headers: {
      'X-API-Key': process.env.SENDPILOT_API_KEY
    }
  });
  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.sendpilot.ai/v1/inbox/senders',
      headers={'X-API-Key': 'YOUR_API_KEY'}
  )
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "senders": [
      {
        "id": "sender_abc123",
        "name": "Jane Smith",
        "linkedinUrl": "https://www.linkedin.com/in/jane-smith",
        "status": "active",
        "dailyMessageLimit": 100,
        "messagesSentToday": 25,
        "remainingMessages": 75
      },
      {
        "id": "sender_def456",
        "name": "John Doe",
        "linkedinUrl": "https://www.linkedin.com/in/john-doe",
        "status": "active",
        "dailyMessageLimit": 100,
        "messagesSentToday": 0,
        "remainingMessages": 100
      }
    ],
    "total": 2
  }
  ```
</ResponseExample>

<Note>
  Only active senders can be used to send messages. Check the `status` field before selecting a sender.
</Note>


## OpenAPI

````yaml GET /v1/inbox/senders
openapi: 3.0.0
info:
  title: SendPilot External API
  description: >
    The SendPilot API enables you to programmatically manage LinkedIn outreach
    campaigns,

    add leads, update lead statuses, send messages, and receive real-time
    webhook notifications.
  version: 1.0.0
  contact:
    name: SendPilot Support
    email: support@sendpilot.ai
    url: https://sendpilot.ai
servers:
  - url: https://api.sendpilot.ai
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Credits
    description: Credits and quota management
  - name: Campaigns
    description: Campaign management endpoints
  - name: Leads
    description: Lead management endpoints
  - name: Lead Database
    description: Lead Database search endpoints
  - name: Lead Extractor
    description: Lead extraction campaign endpoints
  - name: Inbox
    description: Direct messaging endpoints
paths:
  /v1/inbox/senders:
    get:
      tags:
        - Inbox
      summary: List LinkedIn senders
      description: >-
        Returns all LinkedIn accounts connected to the workspace that can send
        messages
      operationId: listSenders
      responses:
        '200':
          description: List of LinkedIn senders
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SenderListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    SenderListResponse:
      type: object
      properties:
        senders:
          type: array
          items:
            $ref: '#/components/schemas/LinkedInSender'
        total:
          type: integer
      required:
        - senders
        - total
    LinkedInSender:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        linkedinUrl:
          type: string
        status:
          type: string
          enum:
            - active
            - disconnected
            - rate_limited
        dailyMessageLimit:
          type: integer
        messagesSentToday:
          type: integer
        remainingMessages:
          type: integer
      required:
        - id
        - name
        - linkedinUrl
        - status
        - dailyMessageLimit
        - messagesSentToday
        - remainingMessages
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - statusCode
        - message
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````