---
title: "Schedule the generation of a report for Ai agent"
method: POST
path: "/v1/agent/report/generate"
tags: ["AI Agent"]
---

# Schedule the generation of a report for Ai agent

`POST /v1/agent/report/generate`

Generate a report for an Ai agent

## Request body

- AiAgentReportCreateRequest
  - `configuration` ReportConfigurationForAiAgent
    - `export_format` 'PDF' | 'CSV' — Specifies the format of the file being exported.
    - `__type` string, required — Concrete type used for polymorphic deserialization (discriminator)
    - `agent_id` string, required — Id of the Agent.

## Response `200`

Fetched

- RecordIdentity
  - `sysId` string — Unique Identifier of the tracked item
  - `lastUpdate` string, date-time — Last update of the tracked item
  - `table` string — Context of the tracked item

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
