---
title: "Record a chat chart the owner put on a dashboard (creator only)"
method: POST
path: "/agents/sessions/{session_id}/chart-placements"
tags: ["AI", "Agents"]
---

# Record a chat chart the owner put on a dashboard (creator only)

`POST /agents/sessions/{session_id}/chart-placements`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/agents/sessions/{session_id}/chart-placements`
- 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`

After the client placed a chat chart on a dashboard through the figures API, adds a receipt to the chat and a note the agent reads at the start of its next turn, and returns that receipt row. Places nothing itself.

## Path parameters

- `session_id` string, required

## Request body

- ChartPlacementRequest
  - `dashboard_id` integer, required
  - `title` string, required
  - `page_title` string, nullable
  - `replaced` boolean

## Response `200`

Request fulfilled, document follows

- ChartPlacementReceipt
  - `role` string, required
  - `content` string, required
  - `status` string, required
  - `at` integer, required
  - `events` object[], required

## Other responses

- `400`: Bad request syntax or unsupported method
- `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/fe078afe239b?raw)
