Mailcoach Links API

Tracked links

GitHub OpenAPI

Operations 1

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-links-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-links-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailcoach Links 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: Links
  description: Tracked links
paths:
  /links/{link}:
    get:
      operationId: showLink
      summary: Get a tracked link
      tags:
      - Links
      parameters:
      - name: link
        in: path
        required: true
        description: Link UUID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Link details with clicks
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Link'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Click:
      type: object
      properties:
        uuid:
          $ref: '#/components/schemas/Uuid'
        send_uuid:
          $ref: '#/components/schemas/Uuid'
        link_uuid:
          $ref: '#/components/schemas/Uuid'
        subscriber_uuid:
          type:
          - string
          - 'null'
          format: uuid
        created_at:
          $ref: '#/components/schemas/Timestamp'
        updated_at:
          $ref: '#/components/schemas/Timestamp'
    Timestamp:
      type: string
      format: date-time
      example: '2026-01-15T12:00:00.000000Z'
    Uuid:
      type: string
      format: uuid
      example: 00000000-0000-0000-0000-000000000000
    Link:
      type: object
      properties:
        uuid:
          $ref: '#/components/schemas/Uuid'
        url:
          type: string
          format: uri
        unique_click_count:
          type: integer
        click_count:
          type: integer
        clicks:
          type: array
          items:
            $ref: '#/components/schemas/Click'
  responses:
    Forbidden:
      description: Forbidden — insufficient permissions
    Unauthorized:
      description: Unauthenticated — missing or invalid bearer token
    NotFound:
      description: Resource not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Laravel Sanctum API token