---
title: "Create a Hive approval workflow: the ordered reviewers a post has to pass before it can publish. It decides nothing on its own."
method: POST
path: "/api/v1/tools/create_approval_workflow"
---

# Create a Hive approval workflow: the ordered reviewers a post has to pass before it can publish. It decides nothing on its own.

`POST /api/v1/tools/create_approval_workflow`

## Request

- Base URL: `https://hivepublish.com`
- URL: `https://hivepublish.com/api/v1/tools/create_approval_workflow`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `name` string, required: What this workflow is called.
  - `isDefault` boolean: Use this workflow for every post submitted for approval.
  - `active` boolean: Whether this workflow can be used.
  - `steps` object[], required: The reviewers, in order.
    - `name` string, required: What this step is called.
    - `reviewerType` 'member' | 'role' | 'external', required: Who reviews: one teammate, everyone with a role, or a client outside Hive.
    - `reviewerId` string: The teammate, when reviewerType is member.
    - `reviewerRole` 'owner' | 'admin' | 'editor': The role, when reviewerType is role.
    - `externalName` string: The client’s name, when reviewerType is external.
    - `externalEmail` string: The client’s email, when reviewerType is external.
    - `dueInHours` integer: Hours this step has before it is late.
    - `remindBeforeHours` integer: Hours before the due time to remind the reviewer.

## Response `200`

Tool result

- ToolResult
  - `data` unknown, required
  - `meta` object, required
    - `tool` string
    - `workspaceId` string, uuid

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid credential
- `403`: Missing workspace scope, role permission, or plan entitlement
- `409`: Idempotency conflict, replay, or request still in progress
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hivepublish/apis/hive-developer-api.md) · [All operations](https://skmtc.dev/hivepublish/apis/hive-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hivepublish/apis/hive-developer-api/revisions/b440c763583e?raw)
