---
title: "POST /api/agent/createMany"
method: POST
path: "/api/agent/createMany"
tags: ["agent"]
---

# POST /api/agent/createMany

`POST /api/agent/createMany`

Create several Agent

## Request body

- AgentCreateManyArgs
  - `data` union, required
    - AgentCreateManyInput
      - `id` string
      - `provider` string, required
      - `modelType` string, required
      - `numAgents` integer
      - `isActive` boolean
      - `anthropicApiKey` string, nullable
      - `awsAccessKeyId` string, nullable
      - `awsSecretAccessKey` string, nullable
      - `awsSessionToken` string, nullable
      - `awsRegion` string, nullable
      - `apiEndpoint` string, nullable
      - `apiKey` string, nullable
      - `organizationId` string, required
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
    - AgentCreateManyInput[]
      - `id` string
      - `provider` string, required
      - `modelType` string, required
      - `numAgents` integer
      - `isActive` boolean
      - `anthropicApiKey` string, nullable
      - `awsAccessKeyId` string, nullable
      - `awsSecretAccessKey` string, nullable
      - `awsSessionToken` string, nullable
      - `awsRegion` string, nullable
      - `apiEndpoint` string, nullable
      - `apiKey` string, nullable
      - `organizationId` string, required
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
  - `skipDuplicates` boolean — Do not insert records with unique fields or ID fields that already exist.
  - `meta` Meta — Meta information about the request or response
    - `serialization` unknown

## Response `201`

Successful operation

- object
  - `data` BatchPayload, required
    - `count` integer
  - `meta` Meta — Meta information about the request or response
    - `serialization` unknown

## Other responses

- `400` — Invalid request
- `403` — Request is forbidden
- `422` — Request is unprocessable due to validation errors

---

[API](https://skmtc.dev/iris-networks/apis/my-awesome-api.md) · [All operations](https://skmtc.dev/iris-networks/apis/my-awesome-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iris-networks/my-awesome-api/revisions/4cea49731f1e/schema)
