Mailcoach Subscribers API

Subscribers of a list

GitHub OpenAPI

Operations 15

GET /email-lists/{emailList}/subscribers List subscribers for a list #
POST /email-lists/{emailList}/subscribers Subscribe an email address to a list #
POST /email-lists/{emailList}/confirm Confirm a subscriber by list #
POST /email-lists/{emailList}/unsubscribe Unsubscribe a subscriber by list #
POST /email-lists/{emailList}/resubscribe Resubscribe a subscriber by list #
POST /email-lists/{emailList}/resend-confirmation Resend confirmation mail by list #
GET /subscribers/{subscriber} Get a subscriber #
PUT /subscribers/{subscriber} Update a subscriber #
DELETE /subscribers/{subscriber} Delete a subscriber #
POST /subscribers/{subscriber}/confirm Confirm a subscriber #
POST /subscribers/{subscriber}/unsubscribe Unsubscribe a subscriber #
POST /subscribers/{subscriber}/resubscribe Resubscribe a subscriber #
POST /subscribers/{subscriber}/resend-confirmation Resend confirmation mail #
POST /subscribers/{subscriber}/tags Add tags to a subscriber #
DELETE /subscribers/{subscriber}/tags Remove tags from a subscriber #

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/mailcoach-app:mailcoach-app-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

mailcoach-app-subscribers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailcoach Subscribers API
  description: 'REST API for Laravel Mailcoach — send email campaigns, manage subscribers,

    and handle transactional mails.


    Authentication is via Bearer token (Laravel Sanctum).

    All collection endpoints return paginated responses using the standard

    Laravel pagination envelope (`data`, `links`, `meta`).


    Filtering uses the `?filter[key]=value` convention

    (spatie/laravel-query-builder). Sorting uses `?sort=field` (ascending)

    or `?sort=-field` (descending).'
  version: 1.0.0
  contact:
    name: Spatie
    url: https://mailcoach.app
servers:
- url: '{baseUrl}/api'
  description: Mailcoach API
  variables:
    baseUrl:
      default: https://your-app.com
      description: The base URL of your Mailcoach installation
security:
- bearerAuth: []
tags:
- name: Subscribers
  description: Subscribers of a list
paths:
  /email-lists/{emailList}/subscribers:
    get:
      operationId: listSubscribers
      summary: List subscribers for a list
      tags:
      - Subscribers
      parameters:
      - name: emailList
        in: path
        required: true
        description: Email list UUID
        schema:
          type: string
          format: uuid
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/per_page'
      - name: sort
        in: query
        description: 'Sort field. Allowed: `created_at`, `updated_at`, `subscribed_at`, `unsubscribed_at`, `email`, `first_name`, `last_name`, `id` (prefix with `-` for descending).'
        schema:
          type: string
      - name: filter[email]
        in: query
        description: Exact match on email address
        schema:
          type: string
      - name: filter[status]
        in: query
        description: Filter by subscription status
        schema:
          type: string
          enum:
          - subscribed
          - unsubscribed
          - unconfirmed
      - name: filter[search]
        in: query
        description: Search across email, first name, and last name
        schema:
          type: string
      - name: filter[tags]
        in: query
        description: Filter by tag names or UUIDs (comma-separated)
        schema:
          type: string
      - name: filter[tagType]
        in: query
        description: 'How to combine tag filters: `any` (default) or `all`'
        schema:
          type: string
          enum:
          - any
          - all
      - name: filter[segment_uuid]
        in: query
        description: Filter by segment UUID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Paginated list of subscribers
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Subscriber'
                  links:
                    $ref: '#/components/schemas/PaginationLinks'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
    post:
      operationId: createSubscriber
      summary: Subscribe an email address to a list
      tags:
      - Subscribers
      parameters:
      - name: emailList
        in: path
        required: true
        description: Email list UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StoreSubscriberRequest'
      responses:
        '201':
          description: Subscriber created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /email-lists/{emailList}/confirm:
    post:
      operationId: confirmSubscriberByList
      summary: Confirm a subscriber by list
      tags:
      - Subscribers
      description: Confirm an unconfirmed subscriber. Provide the subscriber's email in the request body.
      parameters:
      - name: emailList
        in: path
        required: true
        description: Email list UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberEmailRequest'
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /email-lists/{emailList}/unsubscribe:
    post:
      operationId: unsubscribeByList
      summary: Unsubscribe a subscriber by list
      tags:
      - Subscribers
      description: Unsubscribe a currently subscribed subscriber. Provide the subscriber's email in the request body.
      parameters:
      - name: emailList
        in: path
        required: true
        description: Email list UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberEmailRequest'
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /email-lists/{emailList}/resubscribe:
    post:
      operationId: resubscribeByList
      summary: Resubscribe a subscriber by list
      tags:
      - Subscribers
      description: Resubscribe a previously unsubscribed subscriber. Provide the subscriber's email in the request body.
      parameters:
      - name: emailList
        in: path
        required: true
        description: Email list UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberEmailRequest'
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /email-lists/{emailList}/resend-confirmation:
    post:
      operationId: resendConfirmationByList
      summary: Resend confirmation mail by list
      tags:
      - Subscribers
      description: Resend the confirmation email to an unconfirmed subscriber. Provide the subscriber's email in the request body.
      parameters:
      - name: emailList
        in: path
        required: true
        description: Email list UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberEmailRequest'
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /subscribers/{subscriber}:
    get:
      operationId: showSubscriber
      summary: Get a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Subscriber details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    put:
      operationId: updateSubscriber
      summary: Update a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSubscriberRequest'
      responses:
        '200':
          description: Subscriber updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
    delete:
      operationId: deleteSubscriber
      summary: Delete a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /subscribers/{subscriber}/confirm:
    post:
      operationId: confirmSubscriber
      summary: Confirm a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /subscribers/{subscriber}/unsubscribe:
    post:
      operationId: unsubscribeSubscriber
      summary: Unsubscribe a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /subscribers/{subscriber}/resubscribe:
    post:
      operationId: resubscribeSubscriber
      summary: Resubscribe a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /subscribers/{subscriber}/resend-confirmation:
    post:
      operationId: resendConfirmation
      summary: Resend confirmation mail
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      responses:
        '204':
          $ref: '#/components/responses/NoContent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
  /subscribers/{subscriber}/tags:
    post:
      operationId: addSubscriberTags
      summary: Add tags to a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberTagsRequest'
      responses:
        '200':
          description: Updated subscriber with tags
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
    delete:
      operationId: removeSubscriberTags
      summary: Remove tags from a subscriber
      tags:
      - Subscribers
      parameters:
      - name: subscriber
        in: path
        required: true
        description: Subscriber UUID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriberTagsRequest'
      responses:
        '200':
          description: Updated subscriber with tags removed
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  responses:
    Forbidden:
      description: Forbidden — insufficient permissions
    UnprocessableEntity:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    Unauthorized:
      description: Unauthenticated — missing or invalid bearer token
    NoContent:
      description: No content — action completed successfully
    NotFound:
      description: Resource not found
  schemas:
    ValidationError:
      type: object
      properties:
        message:
          type: string
          example: The given data was invalid.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
      - message
      - errors
    SubscriberEmailRequest:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          format: email
          description: Email address of the subscriber
    Timestamp:
      type: string
      format: date-time
      example: '2026-01-15T12:00:00.000000Z'
    PaginationLinks:
      type: object
      properties:
        first:
          type: string
          format: uri
          example: https://your-app.com/api/templates?page=1
        last:
          type: string
          format: uri
          example: https://your-app.com/api/templates?page=5
        prev:
          type:
          - string
          - 'null'
          format: uri
        next:
          type:
          - string
          - 'null'
          format: uri
    UpdateSubscriberRequest:
      type: object
      properties:
        email:
          type: string
          format: email
        first_name:
          type:
          - string
          - 'null'
        last_name:
          type:
          - string
          - 'null'
        extra_attributes:
          type:
          - object
          - 'null'
          additionalProperties: true
        tags:
          type: array
          items:
            type: string
        append_tags:
          type: boolean
          description: When true, tags are appended instead of replaced
    SubscriberTagsRequest:
      type: object
      required:
      - tags
      properties:
        tags:
          type: array
          items:
            type: string
    PaginationMeta:
      type: object
      properties:
        current_page:
          type: integer
          example: 1
        from:
          type:
          - integer
          - 'null'
          example: 1
        last_page:
          type: integer
          example: 5
        links:
          type: array
          items:
            type: object
            properties:
              url:
                type:
                - string
                - 'null'
                format: uri
              label:
                type: string
              active:
                type: boolean
        path:
          type: string
          format: uri
        per_page:
          type: integer
          example: 15
        to:
          type:
          - integer
          - 'null'
          example: 15
        total:
          type: integer
          example: 73
    Uuid:
      type: string
      format: uuid
      example: 00000000-0000-0000-0000-000000000000
    StoreSubscriberRequest:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          format: email
        first_name:
          type:
          - string
          - 'null'
        last_name:
          type:
          - string
          - 'null'
        extra_attributes:
          type:
          - object
          - 'null'
          additionalProperties: true
        tags:
          type:
          - array
          - 'null'
          items:
            type: string
        skip_confirmation:
          type: boolean
          description: Skip double opt-in confirmation
        strict:
          type: boolean
          description: When true, fails if subscriber already exists on this list
    Subscriber:
      type: object
      properties:
        uuid:
          $ref: '#/components/schemas/Uuid'
        email_list_uuid:
          $ref: '#/components/schemas/Uuid'
        email:
          type: string
          format: email
          example: john@example.com
        first_name:
          type:
          - string
          - 'null'
          example: John
        last_name:
          type:
          - string
          - 'null'
          example: Doe
        extra_attributes:
          type: object
          additionalProperties: true
        tags:
          type: array
          items:
            type: string
          example:
          - newsletter
          - vip
        subscribed_at:
          $ref: '#/components/schemas/Timestamp'
        unsubscribed_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          $ref: '#/components/schemas/Timestamp'
        updated_at:
          $ref: '#/components/schemas/Timestamp'
  parameters:
    per_page:
      name: per_page
      in: query
      description: Number of items per page
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 15
    page:
      name: page
      in: query
      description: Page number
      schema:
        type: integer
        minimum: 1
        default: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Laravel Sanctum API token