ZenMode Tasks API

Actions queued for the desktop app.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

POST /api/v1/tasks Queue an action for the desktop app #
GET /api/v1/tasks List queued and completed tasks #
GET /api/v1/tasks/{id} Fetch one task #
PATCH /api/v1/tasks/{id} Report a task outcome #
DELETE /api/v1/tasks/{id} Cancel a task #

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/zen-mode-io:zen-mode-io-tasks-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

zen-mode-io-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ZenMode Tasks 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: Tasks
  description: Actions queued for the desktop app.
paths:
  /api/v1/tasks:
    post:
      operationId: createTask
      summary: Queue an action for the desktop app
      description: 'The desktop app polls this queue. `payload.profile_url` is required for `connect` and `message`; `payload.message` is required for `message`. A suppressed contact is refused with 409. Two distinct 429s exist: the per-minute rate limit (`Retry-After: 60`) and the account''s daily action cap (`Retry-After: 3600`). `payload.message` on a `connect` task is the connection note. A `connect` or `message` task is handed to the desktop app only inside the account''s business hours (the hours of your campaign on that LinkedIn account, else 08:00-18:00 London time, Monday to Friday); outside them it stays `pending`. A `message` task to a person who has replied to this account after ZenMode first contacted them (any campaign or conversation, or, for a person reached only through this API, their first completed `connect` or `message` task) is refused with 409 `recipient_replied`; one queued before the reply arrived ends `failed` with `result.error: "recipient_replied"` and a `task.failed` webhook. Pass `allow_after_reply: true` to send anyway. 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"`.'
      tags:
      - Tasks
      responses:
        '201':
          description: Queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  task:
                    $ref: '#/components/schemas/Task'
        '400':
          description: Unknown action_type, missing payload, or a missing or invalid required payload field.
          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'
        '409':
          description: '`suppressed` (the contact is on your do-not-contact list) or `recipient_replied` (a `message` to a person who has replied to this account; pass `allow_after_reply: true` to send anyway).'
          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'
        '503':
          description: '`reply_check_unavailable`: the replied check could not run; nothing was queued. Retry with backoff (`Retry-After: 60`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: true
        description: The action to queue.
        content:
          application/json:
            schema:
              type: object
              properties:
                action_type:
                  type: string
                  enum:
                  - connect
                  - message
                  - follow
                  - view_profile
                  - withdraw_connection
                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.
                payload:
                  type: object
                  properties:
                    profile_url:
                      type: string
                    message:
                      type: string
                priority:
                  type: integer
                max_retries:
                  type: integer
                allow_after_reply:
                  type: boolean
                  description: Send a `message` task even though the person has replied to this account (otherwise 409 `recipient_replied`). Stored on the task's payload.
              required:
              - action_type
              - payload
    get:
      operationId: listTasks
      summary: List queued and completed tasks
      description: Newest first.
      tags:
      - Tasks
      responses:
        '200':
          description: A page of tasks.
          content:
            application/json:
              schema:
                type: object
                properties:
                  tasks:
                    type: array
                    items:
                      $ref: '#/components/schemas/Task'
                  total:
                    type: integer
                  limit:
                    type: integer
                  offset:
                    type: integer
        '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: status
        in: query
        required: false
        description: Filter by task status.
        schema:
          type: string
          enum:
          - pending
          - processing
          - completed
          - failed
          - cancelled
      - name: linkedin_account_id
        in: query
        required: false
        description: Filter by the linkedin_account_id label the tasks were queued with (exact match).
        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: offset
        in: query
        required: false
        description: Rows to skip.
        schema:
          type: integer
          minimum: 0
          default: 0
  /api/v1/tasks/{id}:
    get:
      operationId: getTask
      summary: Fetch one task
      description: Includes `max_retries`, which the list endpoint omits.
      tags:
      - Tasks
      responses:
        '200':
          description: The task. For a completed `message` task, `sent_message` is the stored message it produced (`message_id`, `conversation_id`, `at`), or null with `sent_message_note` while the desktop app has not recorded it yet.
          content:
            application/json:
              schema:
                type: object
                properties:
                  task:
                    $ref: '#/components/schemas/Task'
                  sent_message:
                    type: object
                    properties:
                      message_id:
                        type: integer
                      conversation_id:
                        type: string
                        nullable: true
                      at:
                        type: string
                        format: date-time
                        nullable: true
                    nullable: true
                    description: Present only for a completed message task.
                  sent_message_note:
                    type: string
                    description: Why sent_message is null.
        '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: Task not found for 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'
      parameters:
      - name: id
        in: path
        required: true
        description: The task id returned when it was queued, e.g. `task_mb3k2x1c_q8z0v7ke`.
        schema:
          type: string
          pattern: ^task_
    patch:
      operationId: updateTask
      summary: Report a task outcome
      description: Moves a task to `processing`, `completed` or `failed`. `cancelled` is rejected — delete the task instead. A terminal transition fires the matching `task.completed` / `task.failed` webhook.
      tags:
      - Tasks
      responses:
        '200':
          description: Updated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  task:
                    $ref: '#/components/schemas/Task'
        '400':
          description: Unknown or non-transitionable status.
          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: Task not found for 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'
      parameters:
      - name: id
        in: path
        required: true
        description: The task id returned when it was queued, e.g. `task_mb3k2x1c_q8z0v7ke`.
        schema:
          type: string
          pattern: ^task_
      requestBody:
        required: true
        description: The outcome.
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                  - processing
                  - completed
                  - failed
                result:
                  type: object
                  additionalProperties: true
              required:
              - status
    delete:
      operationId: deleteTask
      summary: Cancel a task
      description: Only a task that has not started can be cancelled.
      tags:
      - Tasks
      responses:
        '200':
          description: Cancelled.
          content:
            application/json:
              schema:
                type: object
                properties:
                  task:
                    type: object
                    properties:
                      id:
                        type: string
                        pattern: ^task_
                        description: Task id, e.g. `task_mb3k2x1c_q8z0v7ke`.
                      status:
                        type: string
        '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: Task not found for 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'
      parameters:
      - name: id
        in: path
        required: true
        description: The task id returned when it was queued, e.g. `task_mb3k2x1c_q8z0v7ke`.
        schema:
          type: string
          pattern: ^task_
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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key created in the dashboard on the API page (/dashboard/api).