ReachMCP LinkedIn – Inbox API

The LinkedIn – Inbox API from ReachMCP — 7 operation(s) for linkedin – inbox.

GitHub OpenAPI

Operations 7

GET /api/linkedin/{account_id}/conversations LinkedIn proxy: list messenger conversations (paged) #
GET /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}/messages LinkedIn proxy: list messages in a conversation #
POST /api/linkedin/{account_id}/messages LinkedIn proxy: send a message #
POST /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}/star LinkedIn proxy: star or unstar a conversation #
POST /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}/archive LinkedIn proxy: archive or unarchive a conversation #
POST /api/linkedin/{account_id}/react-message LinkedIn proxy: react to a message with an emoji #
DELETE /api/linkedin/{account_id}/conversations/{conversation_linkedin_id} LinkedIn proxy: delete a conversation #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/reachmcp-com:reachmcp-com-linkedin-inbox-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

reachmcp-com-linkedin-inbox-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MCP Reach LinkedIn – Inbox API
  description: '## MCP Reach API overview


    This API lets you manage LinkedIn accounts connected to MCP Reach and query account activity.

    The documented endpoints cover:


    - listing and deleting LinkedIn accounts

    - reading and updating account quotas

    - reading request logs and aggregated request-log statistics

    - querying LinkedIn `/me` through the account proxy


    ## API documentation


    Interactive reference (Scalar): **`/scalar`** (alias: `/api/scalar`). Swagger UI: `/docs`. ReDoc: `/redoc`.


    ## Authentication


    1. Open the MCP Reach frontend.

    2. Go to **API Keys** and create/retrieve your API key.

    3. Send this key in every request header:


    `X-API-Key: `


    Requests without a valid `X-API-Key` are rejected.


    ## Errors


    Every error response carries `detail` (unchanged, for existing clients) and an `error` object built for agents: `code` (stable identifier such as `daily_quota_reached`), `message`, `status`, `safe_to_retry` (whether the same call can succeed if repeated), `retry_at` (ISO 8601, when it can) and `remediation` (what to do instead). Act on `code`, never on the wording of `message`.


    ## Idempotency


    Send an `Idempotency-Key` header (any string up to 200 characters, a UUID is fine) on any POST/PATCH/DELETE under `/api/linkedin/`. Repeating the request with the same key returns the stored response with `Idempotent-Replayed: true` and does nothing on LinkedIn; the same key with a different body is refused with `409 idempotency_key_reused`. Only successful responses are kept; keys expire after 24 hours.


    ## Webhooks


    Register an endpoint under `/api/webhooks/endpoints` to be called when a conversation gets a new message, the account gains a new connection, an account changes connection state, or a daily quota is close to or at its limit (`GET /api/webhooks/events` lists the types). Deliveries are signed: `Reach-Signature: t=,v1=.'')>`, retried for about 15 hours, and replayable from the dashboard or the API.'
  version: 0.1.0
tags:
- name: LinkedIn – Inbox
paths:
  /api/linkedin/{account_id}/conversations:
    get:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: list messenger conversations (paged)'
      description: Uses the same Voyager Messaging GraphQL calls as Kanbox (``sync_conversations``, ``sync_archived_conversations``, unread search) and returns rows shaped like ``sync_linkedin_conversations_new_format``.
      operationId: linkedin_conversations_api_linkedin__account_id__conversations_get
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      - name: archived
        in: query
        required: false
        schema:
          type: boolean
          description: Archived folder (``category:ARCHIVE`` when not using unread search).
          default: false
          title: Archived
        description: Archived folder (``category:ARCHIVE`` when not using unread search).
      - name: unread
        in: query
        required: false
        schema:
          type: boolean
          description: Only unread threads (search query with ``read:false``).
          default: false
          title: Unread
        description: Only unread threads (search query with ``read:false``).
      - name: starred
        in: query
        required: false
        schema:
          type: boolean
          description: 'Starred only: ``category:STARRED`` for primary inbox; combined with archived/unread, results are filtered to ``STARRED`` in ``categories``.'
          default: false
          title: Starred
        description: 'Starred only: ``category:STARRED`` for primary inbox; combined with archived/unread, results are filtered to ``STARRED`` in ``categories``.'
      - name: count
        in: query
        required: false
        schema:
          type: integer
          maximum: 25
          minimum: 1
          description: Page size (Kanbox uses 25).
          default: 25
          title: Count
        description: Page size (Kanbox uses 25).
      - name: next_cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Cursor from the previous response for the same filters.
          title: Next Cursor
        description: Cursor from the previous response for the same filters.
      - name: page_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Read this company page's inbox (page_id from GET /pages). ``unread`` and ``starred`` then filter the returned page.
          title: Page Id
        description: Read this company page's inbox (page_id from GET /pages). ``unread`` and ``starred`` then filter the returned page.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedInMessengerConversationsPageOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}/messages:
    get:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: list messages in a conversation'
      description: Calls Voyager ``GET /messaging/conversations/{id}/events`` as in Kanbox ``get_conversation_messages``, with optional ``created_before`` paging (same cursor as Kanbox public API).
      operationId: linkedin_conversation_messages_api_linkedin__account_id__conversations__conversation_linkedin_id__messages_get
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      - name: conversation_linkedin_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Linkedin Id
      - name: created_before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Unix ms (string) of the oldest message from the previous page — fetches older events.
          title: Created Before
        description: Unix ms (string) of the oldest message from the previous page — fetches older events.
      - name: page_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: The conversation is in this company page's inbox (page_id from GET /pages). Returns the latest messages; ``created_before`` is not supported there.
          title: Page Id
        description: The conversation is in this company page's inbox (page_id from GET /pages). Returns the latest messages; ``created_before`` is not supported there.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedInConversationMessagesPageOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/linkedin/{account_id}/messages:
    post:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: send a message'
      description: 'POST ``voyagerMessagingDashMessengerMessages?action=createMessage`` as in Kanbox ``send_message``: either ``conversation_linkedin_id`` (existing thread) or ``recipient_linkedin_id`` (DM to member), optionally ``in_mail_premium`` for new InMail-style payloads.'
      operationId: linkedin_send_message_api_linkedin__account_id__messages_post
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkedInSendMessageIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}/star:
    post:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: star or unstar a conversation'
      description: 'Stars or unstars a LinkedIn conversation.


        Set ``star=false`` to remove the star (unstar).


        Calls ``voyagerMessagingDashMessengerConversations?action=addCategory`` (star) or ``?action=removeCategory`` (unstar) with category ``STARRED``.'
      operationId: linkedin_star_conversation_api_linkedin__account_id__conversations__conversation_linkedin_id__star_post
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      - name: conversation_linkedin_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Linkedin Id
      - name: star
        in: query
        required: false
        schema:
          type: boolean
          description: True to star, False to unstar.
          default: true
          title: Star
        description: True to star, False to unstar.
      - name: page_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
          title: Page Id
        description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}/archive:
    post:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: archive or unarchive a conversation'
      description: 'Archives or unarchives a LinkedIn conversation.


        Set ``archive=false`` to unarchive.


        Calls ``PATCH /voyager/api/messaging/conversations/{id}`` with ``{\"patch\": {\"$set\": {\"archived\": true/false}}}``; with ``page_id``, a conversation of that company page''s inbox (category ``ARCHIVE``).'
      operationId: linkedin_archive_conversation_api_linkedin__account_id__conversations__conversation_linkedin_id__archive_post
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      - name: conversation_linkedin_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Linkedin Id
      - name: archive
        in: query
        required: false
        schema:
          type: boolean
          description: True to archive, False to unarchive.
          default: true
          title: Archive
        description: True to archive, False to unarchive.
      - name: page_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
          title: Page Id
        description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/linkedin/{account_id}/react-message:
    post:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: react to a message with an emoji'
      description: 'Adds or removes an emoji reaction on a LinkedIn message.


        Set ``react=false`` to remove the reaction.


        ``message_urn`` is the full message URN returned by the ``/conversations/{id}/messages`` endpoint (e.g. ``urn:li:msg_message:(urn:li:fsd_profile:…,123456789)``).


        ``emoji`` is the Unicode emoji character (e.g. ``👍``, ``❤️``).


        Calls ``voyagerMessagingDashMessengerMessages?action=reactWithEmoji`` or ``?action=unreactWithEmoji``.'
      operationId: linkedin_react_message_api_linkedin__account_id__react_message_post
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      - name: message_urn
        in: query
        required: true
        schema:
          type: string
          description: Full message URN to react to.
          title: Message Urn
        description: Full message URN to react to.
      - name: emoji
        in: query
        required: true
        schema:
          type: string
          description: Unicode emoji character (e.g. 👍, ❤️).
          title: Emoji
        description: Unicode emoji character (e.g. 👍, ❤️).
      - name: react
        in: query
        required: false
        schema:
          type: boolean
          description: True to add the reaction, False to remove it.
          default: true
          title: React
        description: True to add the reaction, False to remove it.
      - name: conversation_linkedin_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Conversation ID — when provided the conversation is marked as read.
          title: Conversation Linkedin Id
        description: Conversation ID — when provided the conversation is marked as read.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/linkedin/{account_id}/conversations/{conversation_linkedin_id}:
    delete:
      tags:
      - LinkedIn – Inbox
      summary: 'LinkedIn proxy: delete a conversation'
      description: 'Permanently deletes a LinkedIn conversation.


        Calls ``DELETE /voyager/api/messaging/conversations/{id}``.


        Returns ``{\"deleted\": true}`` on success.'
      operationId: linkedin_delete_conversation_api_linkedin__account_id__conversations__conversation_linkedin_id__delete
      security:
      - XApiKeyAuth: []
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
          title: Account Id
      - name: conversation_linkedin_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Linkedin Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LinkedInConversationMessagesPageOut:
      properties:
        conversation_linkedin_id:
          type: string
          title: Conversation Linkedin Id
          description: Kanbox ``Conversation.linkedin_id`` / conversation key.
        messages:
          items:
            $ref: '#/components/schemas/LinkedInConversationMessageOut'
          type: array
          title: Messages
        total_count:
          type: integer
          title: Total Count
          description: Number of messages in this response.
        has_more:
          type: boolean
          title: Has More
          description: True when LinkedIn likely has older events (page size 20).
        next_created_before:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Created Before
          description: Pass as ``created_before`` to fetch the next (older) page.
      type: object
      required:
      - conversation_linkedin_id
      - messages
      - total_count
      - has_more
      title: LinkedInConversationMessagesPageOut
      description: Messages for a conversation (Kanbox ``get_conversation_messages`` + public API paging).
    LinkedInSendMessageIn:
      properties:
        text:
          type: string
          maxLength: 16000
          title: Text
          description: Message body (plain text).
          default: ''
        conversation_linkedin_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Conversation Linkedin Id
          description: Kanbox ``Conversation.linkedin_id`` — sends inside an existing thread (takes precedence).
        recipient_linkedin_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Recipient Linkedin Id
          description: Peer ``fsd_profile`` id — starts/sends a direct message without conversation id.
        in_mail_premium:
          type: boolean
          title: In Mail Premium
          description: Use Premium InMail payload (requires ``recipient_linkedin_id``, no conversation id).
          default: false
        page_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Id
          description: 'Reply as this company page (page_id or vanity name from GET /pages). A page can only answer: ``conversation_linkedin_id`` from the page inbox is required.'
      type: object
      title: LinkedInSendMessageIn
      description: Body for Kanbox-style ``send_message`` (conversation thread or recipient profile id).
    LinkedInConversationMessageOut:
      properties:
        id:
          type: string
          title: Id
          description: Message id from ``backendUrn`` (messagingMessage:…).
        message_urn:
          anyOf:
          - type: string
          - type: 'null'
          title: Message Urn
          description: Full message URN (entityUrn) — pass this to proxy_react_message.
        text:
          anyOf:
          - type: string
          - type: 'null'
          title: Text
        html:
          anyOf:
          - type: string
          - type: 'null'
          title: Html
        attachment_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Attachment Url
        attachment_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Attachment Name
        attachment_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Attachment Type
        from_linkedin_id:
          anyOf:
          - type: string
          - type: 'null'
          title: From Linkedin Id
        from_firstname:
          anyOf:
          - type: string
          - type: 'null'
          title: From Firstname
        from_lastname:
          anyOf:
          - type: string
          - type: 'null'
          title: From Lastname
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        is_inbound:
          type: boolean
          title: Is Inbound
          description: True when the sender is not the connected account (incoming message).
        message_type:
          type: string
          title: Message Type
          description: e.g. text, html, gif, or media hint.
          default: text
      type: object
      required:
      - id
      - is_inbound
      title: LinkedInConversationMessageOut
      description: One message from ``/messaging/conversations/{id}/events`` (Kanbox ``parse_linkedin_message``).
    LinkedInConversationListItemOut:
      properties:
        conversation_id:
          type: string
          title: Conversation Id
          description: LinkedIn messaging thread id (``backendUrn`` → ``messagingThread:<id>``). Use this as ``conversation_linkedin_id`` when fetching messages or replying.
        thread_id:
          type: string
          title: Thread Id
          description: Same as ``conversation_id`` — kept for backward compatibility.
        recipient_linkedin_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Recipient Linkedin Id
          description: '``fsd_profile`` id of the other participant (1:1 chats only; ``None`` for group chats). Use this as ``recipient_linkedin_id`` when sending a new message.'
        is_groupchat:
          type: boolean
          title: Is Groupchat
          default: false
        unread_count:
          type: integer
          title: Unread Count
          default: 0
        is_read:
          type: boolean
          title: Is Read
          default: true
        is_archived:
          type: boolean
          title: Is Archived
          default: false
        is_starred:
          type: boolean
          title: Is Starred
          default: false
        is_muted:
          type: boolean
          title: Is Muted
          default: false
        last_activity_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Activity At
        last_read_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Read At
        last_message_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Message Text
        last_message_from_me:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Last Message From Me
          description: 'True when the account (or the page, for a page inbox) wrote the last message, false when the other side did: false means a reply is owed. Absent when LinkedIn sent no sender.'
        last_message_sender_linkedin_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Message Sender Linkedin Id
          description: '``fsd_profile`` id of who wrote the last message (absent for a page).'
        last_message_sender_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Message Sender Name
          description: Name of who wrote the last message.
        participant_firstname:
          type: string
          title: Participant Firstname
          default: ''
        participant_lastname:
          type: string
          title: Participant Lastname
          default: ''
        participant_headline:
          anyOf:
          - type: string
          - type: 'null'
          title: Participant Headline
        participant_picture:
          anyOf:
          - type: string
          - type: 'null'
          title: Participant Picture
        participant_linkedin_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Participant Linkedin Id
          description: Same as ``recipient_linkedin_id`` — kept for backward compatibility.
      type: object
      required:
      - conversation_id
      - thread_id
      title: LinkedInConversationListItemOut
      description: One conversation row — same core fields Kanbox fills from ``sync_linkedin_conversations_new_format``.
    LinkedInMessengerConversationsPageOut:
      properties:
        archived:
          type: boolean
          title: Archived
          description: 'Matches query: archived folder (``category:ARCHIVE``) when not unread.'
        unread:
          type: boolean
          title: Unread
          description: 'Matches query: unread filter (search query with ``read:false``).'
        starred:
          type: boolean
          title: Starred
          description: 'Matches query: starred folder or client filter when combined.'
        count:
          type: integer
          title: Count
          description: Requested page size (LinkedIn typically caps at 25).
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
          description: Pass as ``next_cursor`` for the following page when present.
        since:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Since
          description: 'Only conversations active since this time are listed. ``next_cursor`` is dropped once the page reaches older ones: nothing more to fetch.'
        items:
          items:
            $ref: '#/components/schemas/LinkedInConversationListItemOut'
          type: array
          title: Items
      type: object
      required:
      - archived
      - unread
      - starred
      - count
      - items
      title: LinkedInMessengerConversationsPageOut
      description: Paged messenger list (Voyager Messaging GraphQL).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    XApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Create/retrieve the key in the frontend API Keys page and send it in this header.