LoopFlowHQ REST API Docs

REST Actions docs for chat/coding agents. Use this when your tool can make HTTP requests.

Prompt contract: /llm/latest · MCP docs: /llm/mcp

Connection

Base URL: https://www.loopflowhq.com/api/chatgpt-actions

Schema discovery: GET https://www.loopflowhq.com/api/chatgpt-actions/schema

Authentication: Authorization: Bearer lfhq_... or ?api_key=lfhq_...

Methods: all actions are POST to /api/chatgpt-actions/<action>.

Supported Actions

  • / list_projects
  • / list_my_tickets
  • / get_ticket
  • / get_ticket_messages
  • / get_ticket_context
  • / next_best_child_story
  • / next_best_action
  • / create_ticket
  • / update_ticket
  • / update_ticket_status
  • / get_ticket_subtasks
  • / update_ticket_subtasks
  • / post_ticket_message
  • / post_ticket_agent_questions

Key Field Notes

Save brainstorm/refine outcomes with update_ticket.agent_memory and update_ticket.acceptance_criteria.

Save PR links in the dedicated ticket field: update_ticket.pull_request_url.

Use post_ticket_message for visible chat recap and post_ticket_agent_questions for structured follow-ups.

Examples

POST /api/chatgpt-actions/update_ticket
{
  "ticket": "LOOPF-73",
  "agent_memory": "Session recap...",
  "acceptance_criteria": "1. ...\n2. ...",
  "phase": "refine",
  "phase_state": "in_progress"
}
POST /api/chatgpt-actions/update_ticket
{
  "ticket": "LOOPF-73",
  "pull_request_url": "https://github.com/org/repo/pull/123"
}
POST /api/chatgpt-actions/post_ticket_agent_questions
{
  "ticket": "LOOPF-73",
  "questions": [
    {
      "id": "target_user",
      "question": "Who is the primary user for this flow?",
      "proposed_answers": ["Admin", "Member", "Guest"]
    }
  ]
}