---
title: "Add a card to a Hive planning board. Pass the expectedVersion you read, so a card someone else added at the same time is never overwritten."
method: POST
path: "/api/v1/tools/create_planning_card"
---

# Add a card to a Hive planning board. Pass the expectedVersion you read, so a card someone else added at the same time is never overwritten.

`POST /api/v1/tools/create_planning_card`

## Request

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

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `boardId` string, required: The board id.
  - `expectedVersion` integer, required: The version read_planning_board returned.
  - `title` string, required: What the card says.
  - `lane` string: Which lane it starts in.
  - `type` string: The card type, as the board’s existing cards use it.

## 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)
