---
title: "Record Lenses Artifact Event"
method: POST
path: "/api/v1/integration/lenses-artifact-events"
tags: ["Integration APIs", "lenses-artifact-events"]
---

# Record Lenses Artifact Event

`POST /api/v1/integration/lenses-artifact-events`

Receive and store Lenses artifact pin/unpin events from the power-api service.

## Request body

- LensesArtifactEventCreate — Schema for creating a Lenses artifact analytics event.
  - `event_type` string, required — Type of artifact event: 'pin' or 'unpin'
  - `artifact_id` string, required — UUID of the artifact
  - `artifact_type` string, required — Type of artifact: markdown, chart, executive-summary, follow-up
  - `session_id` string, required — Lenses chat session ID the artifact belongs to
  - `user_email` string, email, required — Email of the user who performed the action
  - `client_name` string, required — Name of the client/organization the user belongs to
  - `title` string, required — Display title of the artifact
  - `created_at` string, date-time, nullable — Timestamp of the event (defaults to now if not provided)

## Response `201`

Successful Response

- LensesArtifactEventResponse — Response schema for artifact event creation.
  - `id` string, uuid, required
  - `message` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/carbonarc/apis/carbon-arc-client-admin-api.md) · [All operations](https://skmtc.net/carbonarc/apis/carbon-arc-client-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/carbonarc/carbon-arc-client-admin-api/revisions/a8ca30023371/schema)
