---
title: "Create an interaction log"
method: POST
path: "/api/interaction_logs"
tags: ["Interaction Logs"]
---

# Create an interaction log

`POST /api/interaction_logs`

## Request

- Base URL: `https://app.herondata.io`
- URL: `https://app.herondata.io/api/interaction_logs`
- Auth: API key in header `x-api-key`

Log a user interaction from the frontend.

## Request body

- CreateInteractionLogSchema
  - `attributes` object, nullable: Arbitrary JSON attributes
  - `end_user_heron_id` string, nullable: Heron ID of the end user
  - `name` string, required: Interaction name/type
  - `session_uuid` string, required: PostHog session UUID

## Response `201`

Interaction log created

- InteractionLogResponseSchema
  - `created` string, date-time
  - `heron_id` string

## Other responses

- `404`: End user not found

## Changes

- **2026-11-03** `bd8008e49534`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/herondata/apis/heron-data-api/changes/api/interaction_logs/post.md)

---

[API](https://skmtc.dev/herondata/apis/heron-data-api.md) - [All operations](https://skmtc.dev/herondata/apis/heron-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/herondata/apis/heron-data-api/revisions/1ec936e17fef?raw)
