Mida Events API

The Events API from Mida — 3 operation(s) for events.

GitHub OpenAPI

Operations 5

POST /v2/project/{project_key}/event Create Event #
DELETE /v2/project/{project_key}/event/{event_id} Delete Event #
GET /v2/project/{project_key}/event/{event_id} Get Event Details #
PATCH /v2/project/{project_key}/event/{event_id} Update Event #
GET /v2/project/{project_key}/events List Events #

Specifications

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/mida-so:mida-so-events-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

mida-so-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mida Events API
  version: 2.0.0
  description: 'Manage Mida A/B tests, goals, events, hypotheses, surveys and personalization campaigns. Accounts live in one region: call the US or EU server your account is hosted in (Dashboard → Settings shows which). Generated from https://docs.mida.so.'
  contact:
    name: Mida
    url: https://www.mida.so
servers:
- url: https://api-us.mida.so
  description: US region
- url: https://api-eu.mida.so
  description: EU region
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Events
paths:
  /v2/project/{project_key}/event:
    post:
      operationId: createEvent
      summary: Create Event
      description: Record a custom event for a specific visitor. The event is tied to a visitor record in Mida — identify the visitor using their Mida UUID, email, or your own user ID.
      tags:
      - Events
      externalDocs:
        url: https://docs.mida.so/docs/v2/create-event
      parameters:
      - name: project_key
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                event_name:
                  type: string
                  description: Name of the event (e.g. `purchase_completed`, `form_submitted`, `plan_upgraded`)
                mida_uuid:
                  type: string
                  description: Mida-generated visitor UUID
                email:
                  type: string
                  description: Visitor's email (requires prior `mida.identify({ email })` call)
                id:
                  type: string
                  description: Your own user ID (requires prior `mida.identify({ id })` call)
                properties:
                  type: object
                  description: Any additional metadata to attach to the event
              required:
              - event_name
            example:
              event_name: purchase_completed
              mida_uuid: YOUR_VISITOR_UUID
              properties:
                amount: 199.99
                plan: pro
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                message: Event recorded successfully
        '401':
          description: Missing or invalid API key
  /v2/project/{project_key}/event/{event_id}:
    delete:
      operationId: deleteEvent
      summary: Delete Event
      description: Soft-delete an event by setting its status to inactive. The event record is preserved in the database but will no longer appear in the Events dashboard or API list responses.
      tags:
      - Events
      externalDocs:
        url: https://docs.mida.so/docs/v2/delete-event
      parameters:
      - name: project_key
        in: path
        required: true
        schema:
          type: string
        description: Your project's API key
      - name: event_id
        in: path
        required: true
        schema:
          type: integer
        description: The numeric event ID to delete
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                event_id: 9876
                deleted: true
        '401':
          description: Missing or invalid API key
    get:
      operationId: getEventDetails
      summary: Get Event Details
      description: Return the full details of a single event by its ID.
      tags:
      - Events
      externalDocs:
        url: https://docs.mida.so/docs/v2/get-event-details
      parameters:
      - name: project_key
        in: path
        required: true
        schema:
          type: string
        description: Your project's API key
      - name: event_id
        in: path
        required: true
        schema:
          type: integer
        description: The numeric event ID (from Create Event or List Events)
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                event:
                  event_id: 9876
                  event_type: 2
                  event_text: Pricing CTA Clicked
                  event_property: '{"button_id":"hero-cta","placement":"above-fold"}'
                  url: https://example.com/pricing
                  event_path: /pricing
                  status: 1
                  created_at: '2024-01-15T10:30:00.000Z'
        '401':
          description: Missing or invalid API key
    patch:
      operationId: updateEvent
      summary: Update Event
      description: Update fields on a single event. Only the fields you include are changed — all other fields remain unchanged.
      tags:
      - Events
      externalDocs:
        url: https://docs.mida.so/docs/v2/update-event
      parameters:
      - name: project_key
        in: path
        required: true
        schema:
          type: string
        description: Your project's API key
      - name: event_id
        in: path
        required: true
        schema:
          type: integer
        description: The numeric event ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                event_text:
                  type: string
                  description: Rename the event
                event_property:
                  type: object
                  description: Replace the event's metadata
                url:
                  type: string
                  description: Update the associated page URL
                event_path:
                  type: string
                  description: Update the associated URL path
                session:
                  type: string
                  description: Update the session identifier
                status:
                  type: integer
                  description: '`1` = active, `2` = soft-delete'
            example:
              event_text: Pricing CTA Clicked — Mobile
              event_property:
                device: mobile
                button_id: hero-cta
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                event_id: 9876
        '401':
          description: Missing or invalid API key
  /v2/project/{project_key}/events:
    get:
      operationId: listEvents
      summary: List Events
      description: Return all custom events for the selected project. Only active, non-internal events are returned — mirrors the Events dashboard view.
      tags:
      - Events
      externalDocs:
        url: https://docs.mida.so/docs/v2/list-events
      parameters:
      - name: project_key
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: '50'
        description: Max results to return. Maximum `500`.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          default: '0'
        description: Number of records to skip (for pagination).
      - name: event_text
        in: query
        required: false
        schema:
          type: string
          default: _(all)_
        description: Exact match filter on event name.
      - name: start_date
        in: query
        required: false
        schema:
          type: string
          default: _(all time)_
        description: 'Filter events on or after this date. Format: `YYYY-MM-DD`.'
      - name: end_date
        in: query
        required: false
        schema:
          type: string
          default: _(all time)_
        description: 'Filter events on or before this date. Format: `YYYY-MM-DD`.'
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                company_id: 1001
                count: 2
                events:
                - event_id: 9876
                  event_text: Pricing CTA Clicked
                  event_property: '{"button_id":"hero-cta"}'
                  created_at: '2024-01-15T10:30:00.000Z'
                - event_id: 9877
                  event_text: Signup Started
                  event_property: null
                  created_at: '2024-01-15T10:35:00.000Z'
        '401':
          description: Missing or invalid API key
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key generated in the Mida dashboard, sent as `Authorization: Bearer <key>`.'
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: 'The same API key, sent as `x-api-key: <key>`.'
externalDocs:
  url: https://docs.mida.so/docs/intro