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 of the playbook (min length 1)
Content/instructions of the playbook (min length 1)
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"
}