---
title: "Create one intent for the Hive AI studio."
method: POST
path: "/api/v1/tools/create_ai_intent"
---

# Create one intent for the Hive AI studio.

`POST /api/v1/tools/create_ai_intent`

## Request

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

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `name` string, required: What to call this intent.
  - `description` string: What it means.
  - `policyId` string: The AI policy it belongs to.
  - `positiveExamples` string[], required: Messages that are this intent.
  - `negativeExamples` string[]: Messages that are not.
  - `confidenceThreshold` number: Minimum intent confidence, from 0.5 to 1.
  - `status` 'draft' | 'enabled' | 'paused'

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