---
title: "Log client event. Roles: any, public."
method: POST
path: "/api/client-events"
tags: ["Client Events"]
---

# Log client event. Roles: any, public.

`POST /api/client-events`

## Request body

- ClientEventRequest
  - `membershipId` integer, required
  - `action` 'CLICK' | 'SESSION_START' | 'SHARE' | 'VIEW', required
  - `platform` string, required
  - `targetType` 'ASSET' | 'CERT' | 'CONTENT' | 'EVENT' | 'MEMBER_CERT' | 'MEMBER_PREREQ' | 'MEMBERSHIP' | 'NOTIFICATION' | 'PAGE' | 'PLAYLIST' | 'PREREQ' | 'SPLASH' | 'SPONSOR' | 'WHITEBOARD' | 'HOME' | 'WELCOME', required
  - `targetId` integer
  - `targetMembershipId` integer
  - `targetTitle` string
  - `referrerType` 'HOME' | 'PAGE' | 'SPLASH' | 'WELCOME'
  - `referrerId` integer
  - `referrerMembershipId` integer
  - `referrerTitle` string

## Response `200`

OK

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/mobilecoach/apis/untitled-api.md) · [All operations](https://skmtc.dev/mobilecoach/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mobilecoach/untitled-api/revisions/f2568e11c0ab/schema)
