---
title: "Erp Run Workspace Agent"
method: POST
path: "/api/erp/workspace-agents/{agent_key}/run"
tags: ["ERP"]
---

# Erp Run Workspace Agent

`POST /api/erp/workspace-agents/{agent_key}/run`

## Path parameters

- `agent_key` string, required

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Request body

- WorkspaceAgentRunPayload
  - `agent_key` string, nullable
  - `workspace_key` string, nullable
  - `message` string, nullable
  - `action` string, nullable
  - `mode` string
  - `connectors` string[]
  - `skills` string[]
  - `delegate_agent_keys` string[]
  - `delegated_agents` string[]
  - `inputs` object
  - `approved` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/versions/718de1c0d866/schema)
