---
title: "Create a new ai summary."
method: POST
path: "/aisummaries"
tags: ["AI"]
---

# Create a new ai summary.

`POST /aisummaries`

Creates a new ai summary and returns the created ai summary's details.

## Request body

- object
  - `on_end_flow_id` string, required — The ID of the flow to be executed when the ai summary ends.
  - `reference_type` '' | 'call' | 'conference' | 'transcribe' | 'recording', required — Type of reference for the AI summary.
  - `reference_id` string, required — The ID of the reference for the ai summary.
  - `language` string, required — The language of the ai summary.

## Response `200`

Details of the created ai summary.

- AIManagerSummary
  - `id` string, uuid — The unique identifier of the summary.
  - `customer_id` string, uuid — The unique identifier of the associated customer. Returned from the `GET /customers` response.
  - `activeflow_id` string, uuid — The unique identifier of the activeflow. Returned from the `GET /activeflows` response.
  - `on_end_flow_id` string, uuid — The unique identifier of the flow to execute when the summary completes. Returned from the `POST /flows` or `GET /flows` response.
  - `reference_type` '' | 'call' | 'conference' | 'transcribe' | 'recording' — Type of reference for the AI summary.
  - `reference_id` string, uuid — The unique identifier of the referenced resource. The actual resource type is determined by reference_type. Returned from the corresponding resource endpoint.
  - `status` '' | 'progressing' | 'done' — Status of the AI summary generation.
  - `language` string — Language used for the AI summary.
  - `content` string — Content of the summary.
  - `tm_create` string, date-time — Timestamp when the summary was created.
  - `tm_update` string, date-time — Timestamp when the summary was last updated.
  - `tm_delete` string, date-time — Timestamp when the summary was deleted.

## Other responses

- `400` — Invalid request (INVALID_ARGUMENT).
- `401` — Authentication required (UNAUTHENTICATED).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/versions/79e779080bcc/schema)
