---
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`

## Request

- Base URL: `https://carbonarc.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://carbonarc.ai/api/v1/integration/lenses-artifact-events`
- Auth: API key in header `x-api-key`

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.dev/carbonarc/apis/carbon-arc-client-admin-api.md) - [All operations](https://skmtc.dev/carbonarc/apis/carbon-arc-client-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carbonarc/apis/carbon-arc-client-admin-api/revisions/56e2edae9dfe?raw)
