The Margin API

The Margin API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-26); not the provider's own document.

GitHub OpenAPI

Operations 9

GET /api/webhooks/actions/boards boards and their columns #
GET /api/webhooks/actions/cards cards on a board #
POST /api/webhooks/actions/cards a card #
POST /api/webhooks/actions/notes a note in the Inbox #
GET /api/webhooks/actions/shopping-items the shopping lists #
POST /api/webhooks/actions/shopping-items an item #
GET /api/webhooks/poll recent events, newest first #
POST /api/webhooks/subscribe REST hooks #
POST /sandbox/session POST /sandbox/session #

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/themarginapp-com:themarginapp-com-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

themarginapp-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: The Margin API
  version: '2026-11-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-26: 9 operation(s) read from 4 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; The Margin has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 8
    pages-with-code: 2
    pages-read: 4
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://themarginapp.com/docs/integrations
  - https://themarginapp.com/docs/agents-and-mcp
  - https://themarginapp.com/docs/integrations.md
  - https://themarginapp.com/docs/agents-and-mcp.md
servers:
- url: https://mcp.themarginapp.com
paths:
  /api/webhooks/actions/boards:
    get:
      operationId: get_api_webhooks_actions_boards
      tags:
      - Api
      summary: boards and their columns
      x-source: https://themarginapp.com/docs/integrations
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/actions/cards:
    get:
      operationId: get_api_webhooks_actions_cards
      tags:
      - Api
      summary: cards on a board
      x-source: https://themarginapp.com/docs/integrations
      parameters:
      - name: boardId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_webhooks_actions_cards
      tags:
      - Api
      summary: a card
      x-source: https://themarginapp.com/docs/integrations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksActionsCardsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/actions/notes:
    post:
      operationId: post_api_webhooks_actions_notes
      tags:
      - Api
      summary: a note in the Inbox
      x-source: https://themarginapp.com/docs/integrations
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksActionsNotesRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/actions/shopping-items:
    get:
      operationId: get_api_webhooks_actions_shopping_items
      tags:
      - Api
      summary: the shopping lists
      x-source: https://themarginapp.com/docs/integrations
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_webhooks_actions_shopping_items
      tags:
      - Api
      summary: an item
      x-source: https://themarginapp.com/docs/integrations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksActionsShoppingItemsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/poll:
    get:
      operationId: get_api_webhooks_poll
      tags:
      - Api
      summary: recent events, newest first
      x-source: https://themarginapp.com/docs/integrations
      parameters:
      - name: eventType
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/subscribe:
    post:
      operationId: post_api_webhooks_subscribe
      tags:
      - Api
      summary: REST hooks
      x-source: https://themarginapp.com/docs/integrations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksSubscribeRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiWebhooksSubscribeResponse'
      x-evidence:
        kind: documentation
  /sandbox/session:
    post:
      operationId: post_sandbox_session
      tags:
      - Sandbox
      summary: POST /sandbox/session
      x-source: https://themarginapp.com/docs/agents-and-mcp
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://mcp.themarginapp.com/sandbox/session\n On the first call, and then every fifth, a successful result ends\
          \ with one\nmore line for the person the agent is helping: a link to try The Margin in\ntheir own browser and keep a real workspace.\
          \ It is its own text block after\nthe result, so a JSON answer still parses, and it never rides on a refusal. \n What is off in the\
          \ sandbox # \n A sand"
components:
  schemas:
    PostApiWebhooksActionsCardsRequest:
      type: object
      properties:
        boardId:
          type: string
        columnId:
          type: string
        title:
          type: string
        description:
          type: string
        priority:
          type: string
        dueDate:
          type: string
      required:
      - boardId
      - columnId
      - title
    PostApiWebhooksActionsNotesRequest:
      type: object
      properties:
        title:
          type: string
        content:
          type: string
          description: markdown
    PostApiWebhooksActionsShoppingItemsRequest:
      type: object
      properties:
        name:
          type: string
          description: '"2 liters of milk" works'
        quantity:
          type: string
        listId:
          type: string
      required:
      - name
    PostApiWebhooksSubscribeRequest:
      type: object
      properties:
        url:
          type: string
        events:
          type: array
          description: list of events to subscribe to
      required:
      - url
      - events
    PostApiWebhooksSubscribeResponse:
      type: object
      properties:
        webhookId:
          type: string
          description: ID of the created webhook
  securitySchemes:
    personal_access_token:
      type: http
      scheme: bearer
      x-source: https://themarginapp.com/.well-known/oauth-authorization-server
tags:
- name: Api
- name: Sandbox
security:
- personal_access_token: []