---
title: "Create Playbook"
method: POST
path: "/api/v1/playbooks"
tags: ["playbooks"]
---

# Create Playbook

`POST /api/v1/playbooks`

## Request

- Base URL: `https://api.badgeia.com`
- URL: `https://api.badgeia.com/api/v1/playbooks`
- Auth: none declared

Create a new playbook for an agent (v1).

## Request body

- PlaybookCreate: Create a new playbook for an agent.
  - `agent_id` string, uuid, required
  - `name` string, required
  - `playbook_type` 'zero_shot' | 'few_shot' | 'chain_of_thought' | 'react' | 'custom': Playbook archetypes for agent configuration.
  - `system_prompt` string, nullable
  - `model` string
  - `temperature` number
  - `max_tokens` integer
  - `top_p` number
  - `few_shot_examples` object[], nullable
  - `tools_config` object, nullable
  - `notes` string, nullable
  - `description` string, nullable: Public listing blurb shown on marketplace cards. REQUIRED (non-empty) when is_public=True — see routers/playbooks.py.
  - `is_public` boolean
  - `pricing_model` 'free' | 'one_time': How a Playbook is monetized in the Recruiting marketplace.
  - `price_usd_cents` integer: Hire price in USD cents. 0 == free. Max $100k. Integer only — money is NEVER Float.

## Response `201`

Successful Response

- PlaybookRead
  - `id` string, uuid, required
  - `agent_id` string, uuid, required
  - `name` string, required
  - `version` integer, required
  - `parent_id` string, uuid, nullable, required
  - `is_active` boolean, required
  - `is_default` boolean, required
  - `is_public` boolean, required
  - `playbook_type` string, required
  - `system_prompt` string, nullable, required
  - `model` string, required
  - `temperature` number, required
  - `max_tokens` integer, required
  - `top_p` number, required
  - `few_shot_examples` object[], nullable, required
  - `tools_config` object, nullable, required
  - `notes` string, nullable, required
  - `description` string, nullable
  - `created_at` string, date-time, required
  - `pricing_model` string
  - `price_usd_cents` integer
  - `total_clones` integer
  - `total_revenue_usd_cents` integer
  - `already_hired` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/badgeia/apis/badge.md) · [All operations](https://skmtc.dev/badgeia/apis/badge/llms.txt) · [OpenAPI document](https://skmtc.dev/badgeia/apis/badge/revisions/7e7f7fee8b77?raw)
