listmonk Subscribers API

The Subscribers API from listmonk — 10 operation(s) for subscribers.

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).
Business capability
Digital Marketing Management BC-400.60

Operations 23

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscribers List subscribers · Get subscribers #
Ask an LLM
“How do I get all the subscribers in my Listmonk list?”
“Can I search subscribers by email with an SQL expression?”
Tell an agent
List all subscribers.
Find subscribers matching {query}.
POST /subscribers Add a new subscriber · Create subscriber #
Ask an LLM
“How do I add a new person to my newsletter list?”
“Can I set a subscriber's status and attributes when I create them?”
Tell an agent
Add a subscriber with email {email}.
Create a subscriber {name} with email {email} on lists {lists}.
DELETE /subscribers Delete subscribers by ID · Delete subscriber by list #
Ask an LLM
“How do I remove a subscriber from a list by their ID?”
“Can I delete several subscribers from a list at once?”
Tell an agent destructive · confirm first
Delete subscriber {id} from the list.
Remove subscribers {id} from the list.
GET /subscribers/{id} Get a subscriber by ID · Get subscriber by id #
Ask an LLM
“What are the details of a single subscriber?”
“Can I look up one subscriber by their ID?”
Tell an agent
Get subscriber {id}.
Show the profile of subscriber {id}.
PUT /subscribers/{id} Update a subscriber by ID · Update subscriber by id #
Ask an LLM
“How do I change a subscriber's email or status?”
“Can I update a subscriber's attributes?”
Tell an agent
Update subscriber {id} with email {email}.
Set the status of subscriber {id} to {status}.
DELETE /subscribers/{id} Delete a subscriber by ID · Delete subscriber by id #
Ask an LLM
“How do I delete one subscriber from all lists?”
“Can I remove a single subscriber by ID?”
Tell an agent destructive · confirm first
Delete subscriber {id}.
Remove subscriber {id} from every list.
PUT /subscribers/lists Add or remove subscribers from lists · Manage subscriber lists #
Ask an LLM
“How do I add a batch of subscribers to a list?”
“Can I unsubscribe a group of people from a list?”
Tell an agent
Apply action {action} to subscribers {ids} on lists {target_list_ids}.
Bulk add subscribers {ids} to lists {target_list_ids}.
PUT /subscribers/lists/{id} Add or remove subscribers from a list · Manage subscriber list by id #
Ask an LLM
“How do I add several subscribers to a list at once by the list's ID?”
“Can I unsubscribe a batch of people from a list?”
Tell an agent
Add subscribers {ids} to list {id}.
Set the status of subscribers {ids} in list {id} to {status}.
PUT /subscribers/blocklist Blocklist subscribers across lists · Manage blocklist by subscriber list #
Ask an LLM
“How do I blocklist a batch of subscribers across several lists?”
“Can I unsubscribe a group of people from multiple lists at once?”
Tell an agent
Apply action {action} to subscribers {ids} across lists {target_list_ids}.
Bulk blocklist subscribers {ids} on lists {target_list_ids}.
PUT /subscribers/{id}/blocklist Blocklist a subscriber across lists · Manage blocklist subscribers by id #
Ask an LLM
“How do I blocklist a single subscriber across several lists?”
“Can I unsubscribe one person from multiple lists?”
Tell an agent
Apply action {action} to subscriber {id} across lists {target_list_ids}.
Blocklist subscriber {id} on lists {target_list_ids}.
GET /subscribers/{id}/export Export a subscriber's profile · Export subscriber data by ID #
Ask an LLM
“How do I export one subscriber's profile data?”
“Can I download a single subscriber's profile?”
Tell an agent
Export subscriber {id}'s profile.
Download the profile of subscriber {id}.
GET /subscribers/{id}/bounces Get a subscriber's bounce records · Get subscriber bounces by id #
Ask an LLM
“What bounce records exist for a subscriber?”
“Can I see why a specific subscriber bounced?”
Tell an agent
Get bounce records for subscriber {id}.
Show bounces of subscriber {id}.
DELETE /subscribers/{id}/bounces Delete a subscriber's bounce records · Delete subscriber bounces by id #
Ask an LLM
“How do I clear bounce records for a subscriber?”
“Can I remove a subscriber's bounce history?”
Tell an agent destructive · confirm first
Delete bounce records for subscriber {id}.
Clear bounces of subscriber {id}.
POST /subscribers/{id}/optin Send an opt-in confirmation email · Subscriber send optin by id #
Ask an LLM
“How do I resend a confirmation email to a subscriber?”
“Can I trigger an opt-in email for one person?”
Tell an agent
Send an opt-in confirmation to subscriber {id}.
Resend the confirmation email for subscriber {id}.
POST /subscribers/query/delete Bulk delete subscribers matching a query · Delete subscriber by query #
Ask an LLM
“How do I delete subscribers matching an SQL expression?”
“Can I remove everyone who hasn't confirmed their subscription?”
Tell an agent destructive · confirm first
Bulk delete subscribers matching {query}.
Remove all subscribers matching {query} in one go.
PUT /subscribers/query/blocklist Bulk blocklist subscribers matching a query · Blocklist subscribers query #
Ask an LLM
“How do I blocklist everyone matching an SQL expression?”
“Can I unsubscribe a group of people from all lists at once?”
Tell an agent
Bulk blocklist subscribers matching {query}.
Unsubscribe everyone matching {query} from all lists.
PUT /subscribers/query/lists Bulk add or remove subscribers matching a query · Manage subscriber lists by query #
Ask an LLM
“Can I add everyone who matches a SQL query to a list in one call?”
“How do I unsubscribe a group of subscribers found by an SQL expression?”
Tell an agent
Add subscribers matching {query} to lists {target_list_ids}.
Remove subscribers matching {query} from lists {target_list_ids} and set status {status}.
GET /subscribers/{subscriber_id} Retrieve a subscriber by ID · Retrieve a specific subscriber #
Ask an LLM
“How do I fetch one subscriber by ID?”
“Can I look up a subscriber by their ID?”
Tell an agent
Retrieve subscriber {subscriber_id}.
Show the record for subscriber {subscriber_id}.
PUT /subscribers/{subscriber_id} Update a subscriber · Update a specific subscriber #
Ask an LLM
“How do I change a subscriber's email address?”
“Can I move an existing subscriber to new lists?”
Tell an agent
Set subscriber {subscriber_id} to have email {email}.
Move subscriber {subscriber_id} to lists {lists}.
DELETE /subscribers/{subscriber_id} Delete a subscriber · Delete a specific subscriber #
Ask an LLM
“How do I permanently erase a subscriber record from Listmonk?”
“Can I wipe a single contact from my database by their subscriber ID?”
Tell an agent destructive · confirm first
Permanently erase subscriber {subscriber_id} from the database.
Remove the contact with subscriber ID {subscriber_id} completely.
POST /subscribers/{subscriber_id}/optin Send an opt-in confirmation email · Send an opt-in confirmation email to a subscriber #
Ask an LLM
“Which endpoint sends a double opt-in request to a subscriber who hasn't confirmed yet?”
“Can Listmonk email an opt-in confirmation to a subscriber on demand?”
Tell an agent
Send the opt-in confirmation email to subscriber {subscriber_id}.
Ask subscriber {subscriber_id} to confirm their subscription by email.
GET /subscribers/{subscriber_id}/export Export a subscriber's data · Export a subscriber's data #
Ask an LLM
“Can I export a subscriber's personal data for GDPR?”
“What does the subscriber export contain?”
Tell an agent
Export subscriber {subscriber_id}'s data.
Download the personal data of {subscriber_id}.
PUT /subscribers/{subscriber_id}/blocklist Blocklist a single subscriber · Blocklist a single subscriber #
Ask an LLM
“How do I blocklist a spam subscriber?”
“Can I blocklist one subscriber without affecting others?”
Tell an agent destructive · confirm first
Blocklist subscriber {subscriber_id}.
Stop sending emails to {subscriber_id}.

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/listmonk:listmonk-subscribers-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

listmonk-subscribers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Listmonk Subscribers API
  version: '1.0'
  description: 'Operations tagged Subscribers across 2 of this provider''s published API definitions: listmonk-collections-openapi.yml, listmonk-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Listmonk Developement Server
  url: http://localhost:9000/api
- url: '{host}/api'
  description: Self-hosted instance
  variables:
    host:
      default: http://localhost:9000
      description: Base URL of your listmonk instance
tags:
- name: Subscribers
  description: Subscribers API
  externalDocs:
    url: https://listmonk.app/docs/apis/subscribers/
paths:
  /subscribers:
    get:
      tags:
      - Subscribers
      description: returns all subscribers.
      operationId: getSubscribers
      parameters:
      - in: query
        name: page
        description: Page number for paginated results.
        required: false
        schema:
          type: integer
          format: int32
      - in: query
        name: per_page
        description: Number of items per page. Use an integer for specific page size or 'all' to retrieve all results
        required: false
        schema:
          oneOf:
          - type: integer
            description: Number of items to return per page
          - type: string
            enum:
            - all
            description: Return all results without pagination
      - in: query
        name: query
        description: query subscribers with an SQL expression.
        required: false
        schema:
          type: string
      - in: query
        name: order_by
        description: Result sorting field. Options are name, status, created_at, updated_at
        required: false
        schema:
          type: string
          enum:
          - name
          - status
          - created_at
          - updated_at
      - in: query
        name: order
        description: ASC|DESC Sort by ascending or descending order.
        required: false
        schema:
          type: string
          enum:
          - ASC
          - DESC
      - in: query
        name: subscription_status
        description: Subscription status to filter by if there are one or more list_ids.
        required: false
        schema:
          type: string
      - in: query
        name: list_id
        description: ID of lists to filter by. Repeat in the query for multiple values.
        required: false
        schema:
          type: array
          items:
            type: integer
      responses:
        '200':
          description: subscribers list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      results:
                        type: array
                        items:
                          $ref: '#/components/schemas/Subscriber'
                      query:
                        type: string
                      total:
                        type: integer
                      per_page:
                        type: integer
                      page:
                        type: integer
      summary: Get subscribers
      x-summary-source: derived
    post:
      description: handles creation of new subscriber
      operationId: createSubscriber
      tags:
      - Subscribers
      requestBody:
        description: new subscriber info
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewSubscriber'
      responses:
        '200':
          description: subscriber object
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
      summary: Create subscriber
      x-summary-source: derived
    delete:
      description: handles subscribers deletion
      operationId: deleteSubscriberByList
      tags:
      - Subscribers
      parameters:
      - in: query
        name: id
        required: true
        description: subscriber id/s to be deleted
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Delete subscriber by list
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/{id}:
    get:
      description: handles the retrieval of a single subscriber by ID.
      operationId: getSubscriberById
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: The id value of the subscriber you want to get.
        schema:
          type: integer
      responses:
        '200':
          description: gets a single subscriber.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
      summary: Get subscriber by id
      x-summary-source: derived
    put:
      description: modify subscriber data
      operationId: updateSubscriberById
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: The id of subscriber to update
        schema:
          type: integer
      requestBody:
        description: new subscriber info
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSubscriber'
      responses:
        '200':
          description: returns updated subscriber.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
      summary: Update subscriber by id
      x-summary-source: derived
    delete:
      description: handles subscriber deletion based on id
      operationId: deleteSubscriberById
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: The id value of the subscriber you want to get.
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Delete subscriber by id
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/lists:
    put:
      description: handles bulk addition or removal of subscribers
      operationId: manageSubscriberLists
      tags:
      - Subscribers
      requestBody:
        description: The list of subscribers details to add or remove
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Manage subscriber lists
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/lists/{id}:
    put:
      description: handles bulk addition or removal of subscribers for a specified list id
      operationId: manageSubscriberListById
      tags:
      - Subscribers
      requestBody:
        description: The list of subscribers to add or remove
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      parameters:
      - in: path
        name: id
        required: true
        description: The id of list you want to update
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Manage subscriber list by id
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/blocklist:
    put:
      description: handles blocklisting of subscriber list
      operationId: manageBlocklistBySubscriberList
      tags:
      - Subscribers
      requestBody:
        description: The list of subscribers to blocklist
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Manage blocklist by subscriber list
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/{id}/blocklist:
    put:
      description: handles the blocklisting of one or more subscribers.
      operationId: manageBlocklistSubscribersById
      tags:
      - Subscribers
      requestBody:
        description: The id of subscriber to add or remove
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      parameters:
      - in: path
        name: id
        required: true
        description: The id value of the subscriber you want to blocklist.
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Manage blocklist subscribers by id
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/{id}/export:
    get:
      description: retrieves a subscriber's profile
      operationId: exportSubscriberDataByID
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: The id value of subscriber profile you want to export
        schema:
          type: integer
      responses:
        '200':
          headers:
            Cache-Control:
              schema:
                type: string
            Content-Disposition:
              schema:
                type: string
                example: attachment; filename="data.json"
          description: subscriber data object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriberData'
      summary: Export subscriber data by ID
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/{id}/bounces:
    get:
      description: retrieves a subscriber's bounce records
      operationId: getSubscriberBouncesById
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: subscriber id
        schema:
          type: integer
      responses:
        '200':
          description: list of bounce records of a subscriber
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Bounce'
      summary: Get subscriber bounces by id
      x-summary-source: derived
    delete:
      description: deletes a subscriber's bounce records
      operationId: deleteSubscriberBouncesById
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: subscriber id
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Delete subscriber bounces by id
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/{id}/optin:
    post:
      description: sends an optin confirmation e-mail to a subscriber.
      operationId: subscriberSendOptinById
      tags:
      - Subscribers
      parameters:
      - in: path
        name: id
        required: true
        description: sends an optin confirmation e-mail to a subscriber
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Subscriber send optin by id
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/query/delete:
    post:
      description: bulk deletes based on an arbitrary SQL expression.
      operationId: deleteSubscriberByQuery
      tags:
      - Subscribers
      requestBody:
        description: Arbitrary SQL expression.
        content:
          text/plain:
            schema:
              type: string
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Delete subscriber by query
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/query/blocklist:
    put:
      description: bulk blocklists subscribers based on an arbitrary SQL expression.
      operationId: blocklistSubscribersQuery
      tags:
      - Subscribers
      requestBody:
        description: Arbitrary SQL expression.
        content:
          text/plain:
            schema:
              type: string
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Blocklist subscribers query
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/query/lists:
    put:
      description: bulk adds/removes/unsubscribes subscribers from one or more lists based on an arbitrary SQL expression.
      operationId: manageSubscriberListsByQuery
      tags:
      - Subscribers
      requestBody:
        description: Arbitrary SQL expression.
        content:
          text/plain:
            schema:
              type: string
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberQueryRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: boolean
      summary: Manage subscriber lists by query
      x-summary-source: derived
    servers:
    - description: Listmonk Developement Server
      url: http://localhost:9000/api
  /subscribers/{subscriber_id}:
    parameters:
    - name: subscriber_id
      in: path
      required: true
      schema:
        type: integer
    get:
      operationId: getSubscriber
      tags:
      - Subscribers
      summary: Retrieve a specific subscriber
      responses:
        '200':
          description: The subscriber.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriberResponse'
      security:
      - BasicAuth: []
      - TokenAuth: []
    put:
      operationId: updateSubscriber
      tags:
      - Subscribers
      summary: Update a specific subscriber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberRequest'
      responses:
        '200':
          description: The updated subscriber.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriberResponse'
      security:
      - BasicAuth: []
      - TokenAuth: []
    delete:
      operationId: deleteSubscriber
      tags:
      - Subscribers
      summary: Delete a specific subscriber
      responses:
        '200':
          description: Deletion result.
      security:
      - BasicAuth: []
      - TokenAuth: []
    servers:
    - url: http://localhost:9000/api
      description: Default local self-hosted instance
    - url: '{host}/api'
      description: Self-hosted instance
      variables:
        host:
          default: http://localhost:9000
          description: Base URL of your listmonk instance
  /subscribers/{subscriber_id}/optin:
    post:
      operationId: sendSubscriberOptin
      tags:
      - Subscribers
      summary: Send an opt-in confirmation email to a subscriber
      parameters:
      - name: subscriber_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Opt-in email queued.
      security:
      - BasicAuth: []
      - TokenAuth: []
    servers:
    - url: http://localhost:9000/api
      description: Default local self-hosted instance
    - url: '{host}/api'
      description: Self-hosted instance
      variables:
        host:
          default: http://localhost:9000
          description: Base URL of your listmonk instance
  /subscribers/{subscriber_id}/export:
    get:
      operationId: exportSubscriber
      tags:
      - Subscribers
      summary: Export a subscriber's data
      parameters:
      - name: subscriber_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Exported subscriber data.
      security:
      - BasicAuth: []
      - TokenAuth: []
    servers:
    - url: http://localhost:9000/api
      description: Default local self-hosted instance
    - url: '{host}/api'
      description: Self-hosted instance
      variables:
        host:
          default: http://localhost:9000
          description: Base URL of your listmonk instance
  /subscribers/{subscriber_id}/blocklist:
    put:
      operationId: blocklistSubscriber
      tags:
      - Subscribers
      summary: Blocklist a single subscriber
      parameters:
      - name: subscriber_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Subscriber blocklisted.
      security:
      - BasicAuth: []
      - TokenAuth: []
    servers:
    - url: http://localhost:9000/api
      description: Default local self-hosted instance
    - url: '{host}/api'
      description: Self-hosted instance
      variables:
        host:
          default: http://localhost:9000
          description: Base URL of your listmonk instance
components:
  schemas:
    SubscriberQueryRequest:
      type: object
      properties:
        query:
          type: string
        ids:
          type: array
          description: The ids of the subscribers to be modified.
          items:
            type: integer
        action:
          type: string
          enum:
          - add
          - remove
          - unsubscribe
          description: Whether to add, remove, or unsubscribe the users.
        target_list_ids:
          type: integer
          description: The ids of the lists to be modified.
          items:
            type: integer
        status:
          type: string
          enum:
          - confirmed
          - unconfirmed
          - unsubscribed
          description: confirmed, unconfirmed, or unsubscribed status.
    UpdateSubscriber:
      type: object
      properties:
        email:
          type: string
        name:
          type: string
        status:
          type: string
        lists:
          type: array
          items:
            type: integer
        list_uuids:
          type: array
          items:
            type: string
        preconfirm_subscriptions:
          type: boolean
        attribs:
          type: object
          additionalProperties: true
    NewSubscriber:
      type: object
      properties:
        email:
          type: string
        name:
          type: string
        status:
          type: string
        lists:
          type: array
          items:
            type: integer
        list_uuids:
          type: array
          items:
            type: string
        preconfirm_subscriptions:
          type: boolean
        attribs:
          type: object
          additionalProperties: true
    SubscriberData:
      type: object
      properties:
        email:
          type: string
        profile:
          type: array
          items:
            $ref: '#/components/schemas/SubscriberProfile'
        subscriptions:
          type: array
          items:
            $ref: '#/components/schemas/Subscriptions'
        campaign_views:
          type: array
          items:
            type: object
        link_clicks:
          type: array
          items:
            type: object
    Bounce:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              type:
                type: string
              source:
                type: string
              meta:
                type: object
              created_at:
                type: string
              email:
                type: string
              subscriber_uuid:
                type: string
              subscriber_id:
                type: integer
              campaign:
                type: object
                properties:
                  id:
                    type: integer
                  name:
                    type: string
              campaign_uuid:
                type: string
              total:
                type: integer
    Subscriptions:
      type: object
      properties:
        subscription_status:
          type: string
        name:
          type: string
        type:
          type: string
        created_at:
          type: string
    Subscriber:
      type: object
      properties:
        id:
          type: integer
        created_at:
          type: string
        updated_at:
          type: string
        uuid:
          type: string
        email:
          type: string
        name:
          type: string
        attribs:
          type: object
          additionalProperties: true
        status:
          type: string
        lists:
          type: array
          items:
            type: object
            properties:
              subscription_status:
                type: string
              id:
                type: integer
              uuid:
                type: string
              name:
                type: string
              type:
                type: string
              tags:
                type: array
                items:
                  type: string
              created_at:
                type: string
              updated_at:
                type: string
    SubscriberProfile:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        email:
          type: string
        name:
          type: string
        attribs:
          type: object
          additionalProperties: true
        status:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    SubscribersResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            results:
              type: array
              items:
                $ref: '#/components/schemas/Subscriber_2'
            total:
              type: integer
            page:
              type: integer
            per_page:
              type: integer
    Subscriber_2:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        email:
          type: string
        name:
          type: string
        status:
          type: string
        attribs:
          type: object
          additionalProperties: true
        lists:
          type: array
          items:
            type: object
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    SubscriberResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Subscriber_2'
    SubscriberRequest:
      type: object
      properties:
        email:
          type: string
          format: email
        name:
          type: string
        status:
          type: string
          enum:
          - enabled
          - disabled
          - blocklisted
        lists:
          type: array
          items:
            type: integer
          description: List IDs to subscribe to.
        attribs:
          type: object
          additionalProperties: true
          description: Arbitrary JSON attributes.
        preconfirm_subscriptions:
          type: boolean
      required:
      - email
    SubscriberListsRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
        query:
          type: string
        action:
          type: string
          enum:
          - add
          - remove
          - unsubscribe
        target_list_ids:
          type: array
          items:
            type: integer
        status:
          type: string
          enum:
          - unconfirmed
          - confirmed
          - unsubscribed
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: HTTP Basic auth using an API user name and token (api_user:token).
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorization header in the form: token api_user:token.'
x-refined-from:
- listmonk-collections-openapi.yml
- listmonk-openapi.yml