---
title: "Create intent"
method: POST
path: "/public/v1/agents/{agentId}/intents"
tags: ["Intents"]
---

# Create intent

`POST /public/v1/agents/{agentId}/intents`

Creates an agent intent. Requires a USER API key.

## Path parameters

- `agentId` string, required

## Request body

- PublicIntentCreateInput
  - `name` string, required
  - `description` string, nullable
  - `phrases` string[], required

## Response `201`

Created intent

- Intent
  - `id` number, required
  - `name` string, required
  - `description` string, nullable
  - `createdAt` string, nullable, required
  - `updatedAt` string, nullable, required
  - `status` 'ACTIVE' | 'DELETED', required
  - `assistantId` string, required
  - `phrases` object[]
    - `id` number, required
    - `phrase` string, required
  - `flowId` number, nullable

---

[API](https://skmtc.net/getfrontline/apis/public-api.md) · [All operations](https://skmtc.net/getfrontline/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getfrontline/public-api/revisions/9d33b6aad674/schema)
