---
title: "Run Agent"
method: POST
path: "/api/v1/agents/run"
tags: ["agents"]
---

# Run Agent

`POST /api/v1/agents/run`

Create an agent job — runs the agent on a batch of businesses.

## Request body

- AgentRunRequest
  - `agent` string, required
  - `businesses` BusinessInput[], required
    - `name` string, required
    - `city` string, nullable
    - `website` string, nullable
    - `phone` string, nullable
    - `address` string, nullable
    - `owner_name` string, nullable
    - `business_id` integer, nullable
  - `config` object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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