Feedback API

Submit feedback, view your own feedback, get failure context, and upload attachments; admin statistics are not on this page.

Endpoints

Method Path Purpose Authentication
POST /api/feedback Submit feedback All three types
GET /api/feedback/mine My feedback User-level
GET /api/feedback/context/{event_seq} Feedback context User-level
DELETE /api/feedback/{fid} Delete feedback User-level
POST /api/feedback/upload Upload an attachment User-level

"User-level" means a grape_ API key or web JWT; tk_ returns 403.

POST /api/feedback

Submits one feedback entry. An Agent's tk_ token can also submit; the server resolves the repository, task, and Skill from the token.

Request body

Field Type Required Description
category string Yes bug / suggestion / question / other; not validated by the server
title string Yes Title
description string Yes Description
page_url string No Source page
repo_key string No Repository; takes effect only for a user-level identity without event_seq
attachment_url / attachment_name string No Attachment
event_seq int No Failure event sequence number
feedback_kind string No cli / platform are routed to the official Skill repository
client_channel string No Client channel: dsh / aishell; invalid values become empty
plugin_version string No Plugin version, up to 64 characters
client_os string No Client OS: windows / macos / linux (win32 / darwin also accepted)
client_version string No Host version; acts as an alias of plugin_version during the transition

Response

{"id": 1, "status": "open", "message": "Feedback submitted"}

When submitting with tk_, the server resolves the repository and task from the token and ignores repo_key / event_seq in the body; each task allows at most 2 entries, and exceeding that returns 429.

The client context fields (client_channel / plugin_version / client_os / client_version) never return 400 when invalid: out-of-enum values are blanked and logged as a warning, and admin statistics group those rows into an "unknown" bucket so older plugin builds and canary builds can still submit.

GET /api/feedback/mine

Query

Parameter Default Description
page 0 Page number
size 10 Entries per page, maximum 100

Response

{
  "items": [
    {
      "id": 1,
      "category": "bug",
      "title": "...",
      "status": "open",
      "source": "user",
      "issue_url": "",
      "created_at": "..."
    }
  ],
  "total": 1,
  "page": 0,
  "total_pages": 1
}

GET /api/feedback/context/{event_seq}

Returns the task context of a failure event, so that feedback can carry on-site information.

Response fields: event_seq, repo_key, issue_number, agent_type, event_status, task, engine, skill, fail_summary.

DELETE /api/feedback/{fid}

Deletes your own feedback; returns 403 for another user's feedback and 404 if it does not exist.

POST /api/feedback/upload

Uploads an attachment as multipart/form-data with the field name file.

  • Supports jpg / png / webp / gif / svg / zip
  • Maximum 5 MB
  • Returns {url, file_key, is_zip, original_name}

What happens after feedback

Feedback does more than write a database row:

  • Agent feedback (source=agent) is converted into an Issue according to Skill ownership
  • User feedback with a repo_key is also routed to the owning repository
  • Pure opinion feedback (no repo_key) is only recorded and is not converted to an Issue
  • When an open Issue with the same title exists, it is reused instead of creating a duplicate

If conversion fails, the entry remains in the table and is retried in the next round; administrators can view the failure reason.

Issues API | Authentication and credentials | Error code dictionary