---
title: "Post mammoth user event"
method: POST
path: "/workspaces/{workspace_id}/mm-ue"
tags: ["Mammoth User Events"]
---

# Post mammoth user event

`POST /workspaces/{workspace_id}/mm-ue`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/mm-ue`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Post mammoth user event data

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

## Request body

- MMUeSchema: Base64-encoded JSON of Mammoth User Event. Decoded JSON structure: { "event_origin": "string", "event_name": "string", "event_context": {}, "additional_info": {}, "browser_name": "string", "browser_size": {"width": int, "height": int}, "browser_version": "string", "device_info": "string", "domain": "string", "email_id": "string", "os_name": "string", "timestamp": float, "user_name": "string", "origin": "string", "session_identifier": "string" }
  - `encoded_data` string, required: Base64-encoded JSON of Mammoth User Event. Decoded JSON structure: { "event_origin": "string", "event_name": "string", "event_context": {}, "additional_info": {}, "browser_name": "string", "browser_size": {"width": int, "height": int}, "browser_version": "string", "device_info": "string", "domain": "string", "email_id": "string", "os_name": "string", "timestamp": float, "user_name": "string", "origin": "string", "session_identifier": "string" }
  - `decoded_data` object: Decoded mammoth user event data

## Response `200`

Request processed successfully

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
