---
title: "Create an org-level playbook"
method: POST
path: "/v3/organizations/{org_id}/playbooks"
tags: ["playbooks"]
---

# Create an org-level playbook

`POST /v3/organizations/{org_id}/playbooks`

Create a playbook for an organization.

## Path parameters

- `org_id` string, required

## Request body

- PlaybookCreateRequest
  - `body` string, required
  - `macro` string, nullable — Playbook macro identifier. Must start with '!' followed by one or more letters, digits, underscores, or hyphens. Example: '!my_macro' or '!my-macro'
  - `structured_output_schema` object, nullable — JSON Schema (Draft 7) that sessions using this playbook will produce as structured output. Max 64KB. Must be self-contained (no external $ref).
  - `title` string, required

## Response `200`

Successful Response

- PlaybookResponse
  - `access_type` 'enterprise' | 'org', required
  - `body` string, required
  - `created_at` integer, required
  - `created_by` string, required
  - `macro` string, nullable, required
  - `org_id` string, nullable, required
  - `playbook_id` string, required
  - `structured_output_schema` object, nullable
  - `title` string, required
  - `updated_at` integer, required
  - `updated_by` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Content
- `429` — Too Many Requests

---

[API](https://skmtc.net/devinenterprise/apis/devin-api-v1.md) · [All operations](https://skmtc.net/devinenterprise/apis/devin-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devinenterprise/devin-api-v1/versions/e3244476af1c/schema)
