---
title: "Controller Handle From Parsed Json"
method: POST
path: "/audience/from_parsed_json"
tags: ["audience"]
---

# Controller Handle From Parsed Json

`POST /audience/from_parsed_json`

Given parsed JSON and a datasource ID, returns an `Audience` object corresponding to that parsed JSON. Also initiates stats generation on the created audience.

## Request body

- FromParsedJsonRequestPayload
  - `audience_name` string, nullable — If provided, used as the name of the audience. If missing, we infer an accurate name via LLM call.
  - `audience_description` string, nullable — If provided, used as the description of the audience. If missing, we infer an accurate description via LLM call.
  - `parsed_json` object, required — The parsed JSON object (corresponding to something created through the query builder) to create an `Audience` from.

## Response `201`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/akk/apis/fastapi.md) · [All operations](https://skmtc.net/akk/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akk/fastapi/revisions/6662a407c637/schema)
