---
title: "Create Workspace Agent"
method: POST
path: "/api/platform/v1/agents"
tags: ["workflows"]
---

# Create Workspace Agent

`POST /api/platform/v1/agents`

## Request

- Base URL: `https://docs.amdahl.ai`
- URL: `https://docs.amdahl.ai/api/platform/v1/agents`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Save a new tenant-authored agent: a named, reusable prompt the workspace can dispatch later by its stable kebab-case slug. Use when a user wants to capture a custom instruction set as a workspace agent. Rejects a slug that shadows an Amdahl library agent (those ship in code and cannot be replaced) and surfaces tenant slug collisions as a typed conflict.

## Request body

- object
  - `slug` string: Optional stable kebab-case dispatch key (lowercase letters, digits, single dashes). Omitted: derived from the name and uniquified automatically.
  - `name` string, required: Display name.
  - `description` string: Optional one-line blurb for the agent directory.
  - `tool_blocklist` string[]: Operation ids to subtract from this agent tool kit at run time (all kit tools are on by default; empty list = no restriction). Runner-inline tools are refused.
  - `prompt` string, required: The prompt the agent runs with.

## Response `201`

Created

- object
  - `data` unknown

## Other responses

- `400`: Invalid input - failed schema validation
- `401`: Authentication required
- `403`: Forbidden - missing scope or role
- `500`: Internal server error

---

[API](https://skmtc.dev/amdahl/apis/amdahl-platform-api.md) · [All operations](https://skmtc.dev/amdahl/apis/amdahl-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/amdahl/apis/amdahl-platform-api/revisions/d4eee33e2472?raw)
