Skip to main content
GET
Get a recommendation

Authorizations

X-API-KEY
string
header
required

A personal access token, or for the recommendations endpoints a workspace API key. Include it in a header parameter called X-API-KEY.

Path Parameters

accountId
string
required

The account the project belongs to.

projectId
string
required

The project whose recommendations you want.

number
integer
required

The recommendation's id, a positive whole number unique within its project.

Required range: x >= 1

Response

The recommendation.

id
integer
required

The recommendation’s number, unique within its project.

title
string
required

A short name for the recommendation.

description
string
required

What happens and who it affects, as Markdown.

type
enum<string>
required

defect: the agent does not do what it is set up to do. knowledge_gap: callers ask about something the knowledge base does not cover. opportunity: nothing is broken, but the project could do better. alert: a monitored condition was confirmed. best_practice: a suggestion backed by PolyAI’s best practices.

Available options:
defect,
knowledge_gap,
opportunity,
alert,
best_practice
status
enum<string>
required

open and in_progress recommendations still need a decision. done, cancelled and archived ones are closed.

Available options:
open,
in_progress,
done,
cancelled,
archived
severity
enum<string>
required

How badly an affected conversation goes wrong.

Available options:
high,
medium,
low
impact
enum<string>
required

How much fixing this would improve the project, from its severity and how often it happens.

Available options:
high,
medium,
low
nextStep
enum<string> | null
required

What an open recommendation is waiting for, or null once it is closed. needs_attention: it is identified, and yours to act on. question: it has a question for you. answered: the question is answered and a fix is still to come. fix_proposed: a fix is proposed. fix_ready: a fix is proposed and has been checked.

Available options:
needs_attention,
question,
answered,
fix_proposed,
fix_ready,
null
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
history
object[]
required

What has happened to the recommendation, oldest first.

cause
string

Why it happens, as Markdown. Left out when the description already covers the cause.

conversationSnippet
object

A short example conversation that shows the problem. It is illustrative: written to show the pattern, and not a transcript of a real call.

changeSnippet
object

The same example conversation as it would go with the proposed fix. Present only while that fix is the one awaiting a decision. Illustrative, like conversationSnippet.

tags
object

The parts of the project the recommendation is about. Any of them may be missing.

questions
object[]

The questions an open recommendation is waiting on, when nextStep is question. A get also returns them with their answers while nextStep is answered. Left out otherwise.

proposedFix
object

The fix awaiting a decision, when nextStep is fix_proposed or fix_ready. Left out otherwise.

Last modified on December 1, 2026