---
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`

## Request

- Base URL: `https://api.akkio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.akkio.com/audience/from_parsed_json`
- Auth: none declared

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.dev/akkio/apis/akkio-api.md) - [All operations](https://skmtc.dev/akkio/apis/akkio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akkio/apis/akkio-api/revisions/c477deff6271?raw)
