MailInApp Deals API

The Deals API from MailInApp — 3 operation(s) for deals.

GitHub OpenAPI

Operations 4

GET /api/v1/pipelines List deal pipelines #
GET /api/v1/deals List deals #
POST /api/v1/deals Create a deal #
PATCH /api/v1/deals/{id} Update or move a deal #

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/mailinapp-com:mailinapp-com-deals-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

mailinapp-com-deals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailinapp Com Deals API
  version: 1.0.0
  contact:
    name: MailInApp
    url: https://mailinapp.com
  description: 'Operations tagged Deals across 2 of this provider''s published API definitions: mailinapp-com-openapi.json, mailinapp-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://mailinapp.com
security:
- apiKey: []
tags:
- name: Deals
paths:
  /api/v1/pipelines:
    get:
      tags:
      - Deals
      operationId: listPipelines
      summary: List deal pipelines
      description: Every deal pipeline of the account with its stages in board order, the default pipeline first. Creates the default pipeline if the account has none yet. No deal data.
      responses:
        '200':
          description: The pipelines
          content:
            application/json:
              schema:
                type: object
                required:
                - pipelines
                properties:
                  pipelines:
                    type: array
                    items:
                      $ref: '#/components/schemas/Pipeline'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://mailinapp.com
  /api/v1/deals:
    get:
      tags:
      - Deals
      operationId: listDeals
      summary: List deals
      description: The account's deals across every pipeline, most recently moved first, for deal pickers and deal searches. Each one carries its contact's address, so a call that returns deals is recorded in the account's data-access log. `truncated` is true when more deals matched than were returned.
      parameters:
      - name: pipelineId
        in: query
        required: false
        description: Only this pipeline's deals.
        schema:
          type: string
      - name: stageId
        in: query
        required: false
        description: Only deals in this stage.
        schema:
          type: string
      - name: status
        in: query
        required: false
        description: Only open, won or lost deals.
        schema:
          type: string
          enum:
          - open
          - won
          - lost
      - name: email
        in: query
        required: false
        description: Only the deals about this contact, in any of your contacts lists (case-insensitive). Combine with `status=open` to find the deal to move.
        schema:
          type: string
          format: email
      - name: limit
        in: query
        required: false
        description: At most this many deals (default 100).
        schema:
          type: integer
          minimum: 1
          maximum: 500
          default: 100
      responses:
        '200':
          description: The deals
          content:
            application/json:
              schema:
                type: object
                required:
                - deals
                - truncated
                properties:
                  deals:
                    type: array
                    items:
                      $ref: '#/components/schemas/Deal'
                  truncated:
                    type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Deals
      operationId: createDeal
      summary: Create a deal
      description: A deal on one of the account's contacts. Name the contact by `email` (the most recently updated list that has it, unless `listId` is given) or by `listId` + `rowId`. Without `pipelineId`/`stageId` the deal goes to the default pipeline's first open stage. Fires the `deal.created` webhook event and any deal-stage journey.
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Retrying with the same key answers with the deal it already made (200, `created: false`).'
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - title
              properties:
                email:
                  type: string
                  format: email
                listId:
                  type: string
                rowId:
                  type: string
                title:
                  type: string
                  maxLength: 200
                value:
                  type:
                  - number
                  - string
                  description: Decimal amount, rounded to cents. Default 0.
                currency:
                  type: string
                  pattern: ^[A-Za-z]{3}$
                  description: Default USD.
                pipelineId:
                  type: string
                stageId:
                  type: string
      responses:
        '200':
          description: Already created under this Idempotency-Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DealCreateResult'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DealCreateResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://mailinapp.com
  /api/v1/deals/{id}:
    patch:
      tags:
      - Deals
      operationId: updateDeal
      summary: Update or move a deal
      description: 'Any of `title`, `value`, `currency` and `stageId` (a stage of the deal''s own pipeline). A stage change is recorded in the deal''s history and fires the `deal.stage_changed` webhook event and any deal-stage journey; moving to the current stage changes nothing (`moved: false`). Nothing is written when any part of the body is invalid.'
      parameters:
      - $ref: '#/components/parameters/Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              minProperties: 1
              properties:
                title:
                  type: string
                  maxLength: 200
                value:
                  type:
                  - number
                  - string
                currency:
                  type: string
                  pattern: ^[A-Za-z]{3}$
                stageId:
                  type: string
      responses:
        '200':
          description: The updated deal
          content:
            application/json:
              schema:
                type: object
                required:
                - deal
                - moved
                properties:
                  deal:
                    $ref: '#/components/schemas/Deal'
                  moved:
                    type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://mailinapp.com
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            type: about:blank
            title: Bad Request
            status: 400
            detail: A valid `email` is required
            error: A valid `email` is required
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            type: about:blank
            title: Unauthorized
            status: 401
            detail: 'Missing or invalid Authorization: Bearer <apiKey>'
            error: 'Missing or invalid Authorization: Bearer <apiKey>'
    RateLimited:
      description: Too many requests for this key
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            type: about:blank
            title: Too Many Requests
            status: 429
            detail: Too many requests
            error: Too many requests
    NotFound:
      description: Not found, or not this account's
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            type: about:blank
            title: Not Found
            status: 404
            detail: List not found
            error: List not found
  schemas:
    Error:
      type: object
      description: An RFC 9457 problem details document. Routes may add extension members, such as a machine-readable `code`.
      required:
      - type
      - title
      - status
      - detail
      - error
      properties:
        type:
          type: string
          description: A URI naming the problem type; `about:blank` means the HTTP status says it all.
          example: about:blank
        title:
          type: string
          description: The HTTP status's reason phrase.
          example: Not Found
        status:
          type: integer
          description: The HTTP status code, repeated.
          example: 404
        detail:
          type: string
          description: What went wrong with this request, for a person to read.
          example: List not found
        error:
          type: string
          description: The same text as `detail`, kept for clients written before problem details.
          example: List not found
        code:
          type: string
          description: A machine-readable reason, on the routes that have one.
      additionalProperties: true
    Pipeline:
      type: object
      required:
      - id
      - name
      - isDefault
      - stages
      properties:
        id:
          type: string
        name:
          type: string
        isDefault:
          type: boolean
          description: Where a deal goes when no pipeline is named.
        stages:
          type: array
          items:
            type: object
            required:
            - id
            - name
            - kind
            properties:
              id:
                type: string
              name:
                type: string
              kind:
                type: string
                enum:
                - open
                - won
                - lost
    DealCreateResult:
      type: object
      required:
      - deal
      - created
      properties:
        deal:
          $ref: '#/components/schemas/Deal'
        created:
          type: boolean
    Deal:
      type: object
      required:
      - id
      - title
      - value
      - currency
      - pipelineId
      - stageId
      - stage
      - status
      - source
      - listId
      - rowId
      - email
      properties:
        id:
          type: string
        title:
          type: string
        value:
          type: number
        currency:
          type: string
        pipelineId:
          type: string
        stageId:
          type: string
        stage:
          type:
          - string
          - 'null'
          description: The stage's name.
        status:
          type: string
          enum:
          - open
          - won
          - lost
        source:
          type: string
          enum:
          - manual
          - journey
          - booking
          - checkout
          - proposal
          - api
        listId:
          type: string
        rowId:
          type: string
        email:
          type: string
          format: email
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Dashboard → Developers (mia_live_…).
x-refined-from:
- mailinapp-com-openapi.json
- mailinapp-com-openapi.json
x-provenance:
  method: harvested
  publisher: MailInApp
  source: https://mailinapp.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)