---
title: "Submit"
method: POST
path: "/audience/from_parsed_json/new"
tags: ["audience", "Audiences"]
---

# Submit

`POST /audience/from_parsed_json/new`

Initiate audience creation call. Takes in a SQL payload as structured JSON.

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

- APITaskStartedResponse
  - `task_id` string, required — The ID of the task that was started. This is generally queryable at a nearby `/status` endpoint to get the current status of the task.

## 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)
