---
title: "Controller Generate"
method: POST
path: "/location-intelligence/generate"
---

# Controller Generate

`POST /location-intelligence/generate`

Generate location intelligence data

## Request body

- LocationIntelligenceGeneratePayload
  - `location_natural_language` string, required
  - `zip_codes` string[], required
  - `places` string[], required
  - `timeframe` SrcAdAnalyticsLocationIntelligenceModelTimeframe, required
    - `start_date` string, date-time, required
    - `end_date` string, date-time, nullable, required
  - `audience_id` string, nullable, required

## Response `200`

Successful Response

- SrcAsyncJobServiceBuildConcreteAsyncJobRecordClassLocalsConcreteAsyncJobRecord1
  - `id` integer, nullable — ID of this object.
  - `created_at` string, date-time, nullable — datetime object representing when this object was created.
  - `updated_at` string, date-time, nullable — datetime object representing when this object was updated.
  - `deleted_at` string, date-time, nullable — datetime object representing when this object was deleted.
  - `status` 'RUNNING' | 'COMPLETED' | 'FAILED'
  - `endpoint` string — Endpoint spawning async job
  - `request` union — request sent to endpoint
    - object
    - unknown[]
      - unknown
  - `sync_response` union — sync response
    - object
    - unknown[]
      - unknown
  - `error` string, nullable — error message
  - `response` integer, nullable

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