turn_suggestions

Record what the user did with a PostHog AI turn suggestion card

post/api/projects/{project_id}/turn_suggestions/resolve/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/turn_suggestions/resolve/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

task_idstring uuid required

ID of the PostHog AI conversation (task) the suggestion card belongs to.

turn_indexinteger required

Zero-based index of the conversation turn the suggestion card was shown under.

resolution'dismissed' | 'accepted' required
  • dismissed - Dismissed
  • accepted - Accepted

Response

recordedboolean required

Whether a suggestion card existed for that turn and this call recorded its outcome. A card keeps the first outcome recorded for it.

Changes

No recorded changes to this operation across all 1 revision of this API.