ZenMode Conversations API
Every stored LinkedIn conversation, leads and non-leads, with how complete each is; and replies.
Every stored LinkedIn conversation, leads and non-leads, with how complete each is; and replies.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/zen-mode-io:zen-mode-io-conversations-api"
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.
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: 3.2.0
info:
title: ZenMode Conversations API
version: 1.0.0
summary: Read and steer ZenMode LinkedIn outreach.
description: 'ZenMode runs LinkedIn outreach through its desktop app. This API reads the resulting funnel and queues actions for that desktop app to perform.
**When to use it.** Pull leads and reply activity into a CRM, watch the funnel, suppress contacts your team should not touch, or queue connection requests from your own system. Check `GET /api/v1/status` first: tasks queued while the desktop app is offline stay pending until it next runs.
**Authentication.** Every endpoint takes `Authorization: Bearer `. Keys are created in the dashboard on the API page (/dashboard/api). API access requires an active paid plan; a valid key on an ineligible plan returns 403.
**Rate limits.** 100 requests per minute per key. Queueing tasks is additionally bounded by the account''s daily LinkedIn action cap, which returns 429 with `Retry-After: 3600`.'
contact:
name: ZenMode support
url: https://www.zen-mode.io/contact
termsOfService: https://www.zen-mode.io/terms
servers:
- url: https://www.zen-mode.io
description: Production
security:
- bearerAuth: []
tags:
- name: Conversations
description: Every stored LinkedIn conversation, leads and non-leads, with how complete each is; and replies.
paths:
/api/v1/conversations:
get:
operationId: listConversations
summary: List conversations (leads and non-leads)
description: 'Every LinkedIn conversation ZenMode has stored for this account, most recently active first, including people who are not leads. `coverage` says whether every conversation in the LinkedIn inbox has been listed (`thread_list_complete`) and when each account last synced; each conversation''s `history` says how many messages are stored and from when, and `history.complete` is false: older messages may exist on LinkedIn. New messages arrive when the desktop app syncs the inbox, at most once an hour per LinkedIn account while it runs, so a message is often stored an hour or more after its LinkedIn time (`at`). To poll for changes, pass back the `sync_cursor` from your previous response: it returns every conversation with a message stored since that poll, whatever the message''s LinkedIn time, at least once. A `placeholder` conversation is one ZenMode recorded when it sent a message, before the sync linked it to the LinkedIn thread; when the sync links it, its messages move to the LinkedIn conversation with the same message ids and the placeholder id stops resolving.'
tags:
- Conversations
responses:
'200':
description: A page of conversations, the watermark for your next poll (`sync_cursor`, the same on every page of one poll) and the account's coverage.
content:
application/json:
schema:
type: object
properties:
conversations:
type: array
items:
$ref: '#/components/schemas/Conversation'
next_cursor:
type: string
nullable: true
sync_cursor:
type: string
description: Opaque. Pass it as `sync_cursor` on your next poll.
coverage:
$ref: '#/components/schemas/ConversationCoverage'
'400':
description: Invalid filter or cursor.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or invalid Authorization header, or an unknown API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The key is valid but the account's plan does not include API access.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded (100 requests/minute). Carries `Retry-After`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unhandled server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: since
in: query
required: false
description: 'Only conversations with a message whose LinkedIn time (`at`) is at or after this instant. This is LinkedIn''s time, not when ZenMode stored the message: do not poll with since=<last poll time>, because a message sent before that poll and stored by a later inbox sync is never returned. Use `sync_cursor` to poll.'
schema:
type: string
format: date-time
- name: sync_cursor
in: query
required: false
description: 'The `sync_cursor` from a previous response. Only conversations with a message ZenMode stored after that response was built, whatever the message''s LinkedIn time. Messages are returned at least once: de-duplicate by message id.'
schema:
type: string
pattern: ^s_
- name: direction
in: query
required: false
description: 'Who wrote the last message: `received` = they did (awaiting your reply), `sent` = you did.'
schema:
type: string
enum:
- received
- sent
- name: unread
in: query
required: false
description: '`true`: only conversations with a received message you have not read.'
schema:
type: string
enum:
- 'true'
- 'false'
- name: lead_id
in: query
required: false
description: Only conversations linked to this lead.
schema:
type: integer
minimum: 1
- name: profile_url
in: query
required: false
description: Only conversations with this person (a linkedin.com/in/ URL).
schema:
type: string
- name: limit
in: query
required: false
description: Rows to return. Clamped to 100.
schema:
type: integer
minimum: 1
maximum: 100
default: 50
- name: cursor
in: query
required: false
description: '`next_cursor` from the previous page.'
schema:
type: string
/api/v1/conversations/{id}/messages:
get:
operationId: getConversationMessages
summary: A conversation's stored messages, oldest first
description: 'The messages ZenMode holds for one conversation, oldest to newest by LinkedIn time. `conversation.history` says how complete this is; it is never presented as the whole LinkedIn thread. A message stored late sorts by its LinkedIn time, so it can appear before messages you already read: pass `sync_cursor` to get only the messages stored since a previous response. A message keeps its `id` when a placeholder conversation is linked to the LinkedIn thread.'
tags:
- Conversations
responses:
'200':
description: The conversation, a page of its messages, and the account's coverage.
content:
application/json:
schema:
type: object
properties:
conversation:
$ref: '#/components/schemas/Conversation'
messages:
type: array
items:
type: object
properties:
id:
type: integer
direction:
type: string
enum:
- sent
- received
text:
type: string
nullable: true
at:
type: string
format: date-time
nullable: true
date_unknown:
type: boolean
description: True when ZenMode stored no real date for this message; `at` is then null, never 2001.
source:
type: string
read_by_you:
type: boolean
nullable: true
next_cursor:
type: string
nullable: true
sync_cursor:
type: string
description: Opaque watermark for your next poll.
coverage:
$ref: '#/components/schemas/ConversationCoverage'
'400':
description: Invalid filter or cursor.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or invalid Authorization header, or an unknown API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The key is valid but the account's plan does not include API access.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such conversation on this account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded (100 requests/minute). Carries `Retry-After`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unhandled server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: id
in: path
required: true
description: A conversation id from GET /api/v1/conversations.
schema:
type: string
pattern: ^c_
- name: direction
in: query
required: false
description: Only one direction.
schema:
type: string
enum:
- received
- sent
- name: sync_cursor
in: query
required: false
description: The `sync_cursor` from a previous response of either conversations endpoint. Only messages ZenMode stored after it, whatever their LinkedIn time.
schema:
type: string
pattern: ^s_
- name: limit
in: query
required: false
description: Rows to return. Clamped to 500.
schema:
type: integer
minimum: 1
maximum: 500
default: 100
- name: cursor
in: query
required: false
description: '`next_cursor` from the previous page.'
schema:
type: string
/api/v1/conversations/{id}/reply:
post:
operationId: replyToConversation
summary: Queue a reply in a conversation
description: 'Queues a `message` task to this conversation''s person; nothing is sent at call time. The task goes through the same rules as POST /api/v1/tasks (do-not-contact list, stop requests, daily task cap) and the desktop app sends it inside the account''s business hours, daily message limit and pacing. `allow_after_reply` is implied. Poll GET /api/v1/tasks/{id}: once sent it carries `sent_message`. A group conversation, or one whose person''s profile link ZenMode has not recorded yet, is refused with 409.'
tags:
- Conversations
responses:
'201':
description: Queued.
content:
application/json:
schema:
type: object
properties:
task:
$ref: '#/components/schemas/Task'
conversation_id:
type: string
recipient:
type: object
properties:
profile_url:
type: string
name:
type: string
nullable: true
via:
type: string
enum:
- placeholder
- lead
- crm_contact
- inbox_sync
note:
type: string
'400':
description: Missing, empty or too long message, or malformed JSON.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or invalid Authorization header, or an unknown API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The key is valid but the account's plan does not include API access.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such conversation on this account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`group_conversation`, `recipient_unresolved`, `suppressed`, or the person asked to stop.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded (100 requests/minute). Carries `Retry-After`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unhandled server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: id
in: path
required: true
description: A conversation id from GET /api/v1/conversations.
schema:
type: string
pattern: ^c_
requestBody:
required: true
description: The text to send.
content:
application/json:
schema:
type: object
properties:
message:
type: string
minLength: 1
maxLength: 8000
required:
- message
/api/v1/sync:
post:
operationId: requestInboxSync
summary: Ask the desktop app to read the inbox now
description: 'Queues a `sync_inbox` task for one LinkedIn account; nothing reads LinkedIn at call time. The ZenMode desktop app runs it at its next task check while it is open, and the read counts against that account''s daily inbox reads (8 a day, reset at midnight on the computer running the app). Refused with `429` and `Retry-After` when the last completed read was under 30 minutes ago (`too_soon`) or today''s reads are used (`daily_cap_reached`); refused with `409 desktop_update_required` when the account''s desktop app has never reported its read allowance, because it is too old to run requests. One open request per account: calling again while one waits returns that task with `already_requested: true`. At most 12 requests an hour. Poll GET /api/v1/tasks/{id}: `completed` once the inbox was read; `failed` with `result.reason` (for example `daily_max`, `debounced`, `auth_expired`) when it could not be. Then call GET /api/v1/conversations with your `sync_cursor`.'
tags:
- Conversations
responses:
'200':
description: A request for this account is already waiting; that task is returned and nothing new is queued.
content:
application/json:
schema:
type: object
properties:
task:
$ref: '#/components/schemas/Task'
linkedin_account_id:
type: integer
already_requested:
type: boolean
next_sync_not_before:
type: string
format: date-time
nullable: true
sync_paused_reason:
type: string
enum:
- daily_cap_reached
- app_closed
- waiting_for_cycle
- unknown
description: '`daily_cap_reached`: today''s 8 inbox reads are used, next read after next_sync_not_before. `app_closed`: no heartbeat from the desktop app for 90 minutes. `waiting_for_cycle`: the app is open and will read at its next cycle, not before next_sync_not_before. `unknown`: this account''s desktop app is too old to report its read allowance; update it. Inbox reads are not limited to business hours.'
note:
type: string
'202':
description: Queued.
content:
application/json:
schema:
type: object
properties:
task:
$ref: '#/components/schemas/Task'
linkedin_account_id:
type: integer
already_requested:
type: boolean
next_sync_not_before:
type: string
format: date-time
nullable: true
sync_paused_reason:
type: string
enum:
- daily_cap_reached
- app_closed
- waiting_for_cycle
- unknown
description: '`daily_cap_reached`: today''s 8 inbox reads are used, next read after next_sync_not_before. `app_closed`: no heartbeat from the desktop app for 90 minutes. `waiting_for_cycle`: the app is open and will read at its next cycle, not before next_sync_not_before. `unknown`: this account''s desktop app is too old to report its read allowance; update it. Inbox reads are not limited to business hours.'
note:
type: string
'400':
description: '`linkedin_account_required` (more than one account) or malformed JSON.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or invalid Authorization header, or an unknown API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The key is valid but the account's plan does not include API access.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`linkedin_account_not_found`: not one of this key''s accounts.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`desktop_update_required` (the desktop app cannot run requests yet) or `no_linkedin_account`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: '`too_soon`, `daily_cap_reached` (both with `retry_after` seconds and `Retry-After`), or `rate_limit_exceeded`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unhandled server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
description: Required only when the account has more than one LinkedIn account.
content:
application/json:
schema:
type: object
properties:
linkedin_account_id:
type: integer
minimum: 1
description: An id from `coverage.accounts[].linkedin_account_id`.
required: []
components:
schemas:
Task:
type: object
properties:
id:
type: string
pattern: ^task_
description: Task id, e.g. `task_mb3k2x1c_q8z0v7ke`.
user_id:
type: string
linkedin_account_id:
type: string
nullable: true
description: Your own label for the LinkedIn account, stored and returned as-is. It is not a ZenMode account id and does not choose which account runs the task.
action_type:
type: string
enum:
- connect
- message
- follow
- view_profile
- withdraw_connection
payload:
type: object
additionalProperties: true
status:
type: string
enum:
- pending
- processing
- completed
- failed
- cancelled
waiting:
type: object
nullable: true
description: 'Why a `pending` task has not run yet, when the desktop app handed it back for a reason it reports; null otherwise and for every other status. `profile_view_limit`: a connection request waits for the account''s profile views, because ZenMode views each profile first and never sends without the view. `message_cap` / `daily_limit`: the account''s daily limit for that action.'
properties:
reason:
type: string
enum:
- profile_view_limit
- message_cap
- daily_limit
message:
type: string
since:
type: string
format: date-time
nullable: true
description: When it started waiting for this reason.
result:
type: object
additionalProperties: true
nullable: true
description: 'What the desktop app reported when it ran the task. On a free or unconfirmed LinkedIn plan the connection request is sent without a note, and the task result carries `note_dropped: true` with `note_dropped_reason: "free_or_unconfirmed_plan"`. `note_dropped` is `false` when the note went out or none was requested, and absent on results from desktop versions that do not report it.'
properties:
note_dropped:
type: boolean
description: '`connect` tasks only. `true` when the connection request was sent without the note in `payload.message` because the LinkedIn plan is free or not confirmed as paid. `false` when the note went out or no note was requested. Absent when the desktop app that ran the task does not report it.'
note_sent:
type: boolean
description: '`connect` tasks only. `true` only when the note was typed into LinkedIn''s note box and the request went out with it. `false` when the request went out without a note, for any reason, including a dropped note (`note_dropped: true`) and a task with no `payload.message`. Absent when the desktop app that ran the task does not report it.'
note_dropped_reason:
type: string
enum:
- free_or_unconfirmed_plan
description: 'Present only when `note_dropped` is `true`. `free_or_unconfirmed_plan`: the account is on a free LinkedIn plan, or ZenMode has not confirmed a paid plan (Premium or Sales Navigator).'
priority:
type: integer
created_at:
type: string
format: date-time
nullable: true
updated_at:
type: string
format: date-time
nullable: true
started_at:
type: string
format: date-time
nullable: true
completed_at:
type: string
format: date-time
nullable: true
retry_count:
type: integer
Error:
type: object
properties:
error:
type: string
description: Human-readable description of what went wrong.
code:
type: string
description: Stable machine-readable identifier. Absent on some older handlers.
hint:
type: string
description: What to change to make the request succeed.
required:
- error
ConversationCoverage:
type: object
properties:
accounts:
type: array
items:
type: object
properties:
linkedin_account_id:
type: integer
inbox_last_synced_at:
type: string
format: date-time
nullable: true
thread_list_complete:
type: boolean
thread_list_completed_at:
type: string
format: date-time
nullable: true
next_sync_not_before:
type: string
format: date-time
nullable: true
description: 'Earliest time the desktop app may read this inbox again: the reset time when today''s reads are used, otherwise 60 minutes after the last read (30 for a requested sync). null when not known (see sync_paused_reason).'
sync_paused_reason:
type: string
enum:
- daily_cap_reached
- app_closed
- waiting_for_cycle
- unknown
description: '`daily_cap_reached`: today''s 8 inbox reads are used, next read after next_sync_not_before. `app_closed`: no heartbeat from the desktop app for 90 minutes. `waiting_for_cycle`: the app is open and will read at its next cycle, not before next_sync_not_before. `unknown`: this account''s desktop app is too old to report its read allowance; update it. Inbox reads are not limited to business hours.'
thread_list_complete:
type: boolean
description: True when every account's LinkedIn inbox has been listed to its end at least once.
message_history:
type: string
enum:
- partial
requires_desktop_app:
type: boolean
note:
type: string
Conversation:
type: object
properties:
id:
type: string
description: Opaque conversation id (`c_…`).
linkedin_thread_id:
type: string
nullable: true
description: LinkedIn's conversation URN; null for a placeholder.
placeholder:
type: boolean
placeholder_note:
type: string
person:
type: object
properties:
name:
type: string
nullable: true
profile_url:
type: string
nullable: true
public_identifier:
type: string
nullable: true
linkedin_urn:
type: string
nullable: true
linkedin_member_id:
type: string
nullable: true
lead_id:
type: integer
nullable: true
campaign_id:
type: integer
nullable: true
last_message:
type: object
properties:
direction:
type: string
enum:
- sent
- received
text:
type: string
nullable: true
at:
type: string
format: date-time
nullable: true
date_unknown:
type: boolean
description: True when ZenMode stored no real date for this message (an older sync read LinkedIn's year-less date as 2001). `at` is then null, never 2001.
unread_count:
type: integer
history:
type: object
properties:
stored_messages:
type: integer
stored_from:
type: string
format: date-time
nullable: true
description: The earliest stored message with a known date; null when none has one.
undated_messages:
type: integer
description: 'Stored messages whose date is unknown (shown with at: null).'
complete:
type: boolean
description: True only when the desktop app has read the thread back to its first message on LinkedIn (its report); false otherwise.
note:
type: string
backfill:
type: object
properties:
status:
type: string
enum:
- complete
- requested
- reading
- read_recently
- not_available
reason:
type: string
enum:
- placeholder_thread
- desktop_update_required
- multiple_linkedin_accounts
- no_linkedin_account
- check_failed
requested_at:
type: string
format: date-time
nullable: true
read_at:
type: string
format: date-time
nullable: true
note:
type: string
description: 'Only when reading one conversation. Reading the first page of a conversation that is not complete asks the desktop app to read its older messages (at most 3 LinkedIn calls, inside the account''s usual limits); this says what happened. Not available yet on most accounts: needs a desktop release that runs it, and one connected LinkedIn account.'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An API key created in the dashboard on the API page (/dashboard/api).