Skip to main content
Create Enterprise Playbook
curl --request POST \
  --url https://api.devin.ai/v2/enterprise/playbooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "body": "<string>",
  "macro": "<string>"
}'
{
  "playbook_id": "playbook-e78391e2b86f4076a0b233c55c9df538",
  "title": "API POST",
  "body": "This was created using the v2 API",
  "status": "published",
  "access": "team",
  "account_id": "account-9a90315aa6334c66bc98bfd76f68455e",
  "macro": "!shsiangtest",
  "created_at": "2025-10-10T12:34:56Z",
  "updated_at": "2025-10-10T12:34:56Z"
}
Create a new playbook. The playbook will be associated with your account and enterprise. Use macros to create quick shortcuts (e.g., !deploy).

Request Body

title
string
required
Title of the playbook (min length 1)
body
string
required
Content/instructions of the playbook (min length 1)
macro
string
Optional macro/shortcut for the playbook (e.g., !deploy)

Response

{
  "playbook_id": "playbook-e78391e2b86f4076a0b233c55c9df538",
  "title": "API POST",
  "body": "This was created using the v2 API",
  "status": "published",
  "access": "team",
  "account_id": "account-9a90315aa6334c66bc98bfd76f68455e",
  "macro": "!shsiangtest",
  "created_at": "2025-10-10T12:34:56Z",
  "updated_at": "2025-10-10T12:34:56Z"
}
I