# MAI Pixel Event Collection API

**Canonical:** https://apis.io/apis/mai/mai-pixel-event-collection-api/  
**Provider:** MAI — https://apis.io/providers/mai/  
**Base URL:** https://pixel.mai.co  
**Documentation:** https://www.npmjs.com/package/@mai-co/pixel

MAI Pixel Event Collection API is published by [MAI](https://apis.io/providers/mai/) on the [APIs.io](https://apis.io/) network. This API exposes 1 JSON Schema definition. Tagged areas include Event Tracking, Attribution, Analytics, E-Commerce, and Shopify. The published artifact set on APIs.io includes API documentation and 1 JSON Schema.

The one public, callable API MAI publishes. A single unauthenticated write-only endpoint, POST /api/collect, that ingests first-party commerce events from a merchant's storefront — product views, cart activity, search, collection views and checkout — together with UTM attribution, so MAI's autonomous advertising agents can tie ad spend to revenue. Ten events are defined. Commerce identifiers in the payload are Shopify GIDs rather than MAI identifiers. MAI publishes no OpenAPI for this endpoint; the contract is published as first-party TypeScript declarations inside the MIT-licensed @mai-co/pixel npm package, from which the JSON Schema in this repository was transcribed.

## Machine-readable artifacts (4)

- **Documentation** — https://www.npmjs.com/package/@mai-co/pixel
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/mai/refs/heads/main/json-schema/mai-pixel-event.schema.json
- **SourceCode** — https://github.com/mai-co
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/mai/refs/heads/main/apis.yml

## Tags

Event Tracking, Attribution, Analytics, E-Commerce, Shopify

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/mai/mai-pixel-event-collection-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/mai/.
