---
title: "Get AI recommendations for a task (ALL PLANS - aiCore)"
method: POST
path: "/ai/tasks/{id}/recommend"
tags: ["ai"]
---

# Get AI recommendations for a task (ALL PLANS - aiCore)

`POST /ai/tasks/{id}/recommend`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/ai/tasks/{id}/recommend`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Suggests assignee, due date, and priority with reasoning based on team workload and project context.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

Recommendations object

- object
  - `assigneeId` string, nullable
  - `dueDate` string, date-time, nullable
  - `priority` 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL'
  - `reasoning` string

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `402`: Plan gate - feature not available on current plan

---

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