GET · Lister

Feedback : Lister. Paramètres, accès et exemples de réponse.

Rédigé par Red Blue

Mis à jour le

Feedback

GET /api/v1/feedback

operationId : feedback_list

Accès

Permission

Consentements OAuth

Clé API d’organisation

feedback.read

Sans objet

KHONY_ORIGIN est l’origine HTTPS de votre application Khony, sans chemin final. Remplacez les identifiants de l’exemple par ceux de vos ressources autorisées. Les données de réponse ci-dessous illustrent le format ; elles ne sont pas le résultat d’un appel à votre organisation.

Paramètres et en-têtes

Nom

Emplacement

Requis

Type et contraintes

productId

query

Oui

string

limit

query

Non

integer ; Défaut : 50 ; Minimum : 1 ; Maximum : 100

page

query

Non

integer ; Défaut : 0 ; Minimum : 0 ; Maximum : 9007199254740991

query

query

Non

string ; Longueur maximale : 160

pagination

query

Non

string ; Valeurs : ["offset","cursor"] ; Défaut : "offset"

cursor

query

Non

string ; Longueur maximale : 2048

Exemple de requête

Shell
curl --request GET "$KHONY_ORIGIN/api/v1/feedback?productId=product_01k3w8d7vhe008000000000001&limit=50&pagination=cursor" \
  --header "x-api-key: $KHONY_API_KEY"
Shell

Réponse de succès · HTTP 200

JSON
{
  "data": [
    {
      "id": "post_01k3w8d7vhe008000000000003",
      "productId": "product_01k3w8d7vhe008000000000001",
      "boardId": "board_01k3w8d7vhe008000000000002",
      "title": "Add dark mode",
      "body": "Please add a dark theme to the public portal.",
      "status": "new",
      "source": "api",
      "voteCount": 0,
      "commentCount": 0,
      "createdAt": "2026-10-01T00:00:00.000Z",
      "updatedAt": "2026-10-01T00:00:00.000Z"
    }
  ],
  "page": {
    "number": 0,
    "size": 50,
    "hasMore": false,
    "next": null
  },
  "nextCursor": null
}
JSON
Schéma complet de la réponse
JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^post_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
          },
          "productId": {
            "type": "string",
            "pattern": "^product_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
          },
          "boardId": {
            "type": "string",
            "pattern": "^board_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "in_review",
              "planned",
              "completed",
              "closed"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "portal",
              "widget",
              "internal",
              "api",
              "import"
            ]
          },
          "voteCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "commentCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "productId",
          "boardId",
          "title",
          "body",
          "status",
          "source",
          "voteCount",
          "commentCount",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "number": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "size": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "hasMore": {
          "type": "boolean"
        },
        "next": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "number",
        "size",
        "hasMore",
        "next"
      ],
      "additionalProperties": false
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "page"
  ],
  "additionalProperties": false
}
JSON

Refus et reprise

Les statuts documentés pour cette opération sont 400, 401, 402, 403, 429, 500, 503. Identifiez la cause avec error.code et, lorsqu’il est présent, error.reason. Une réponse 409 peut demander une relecture de révision ou signaler une commande incompatible ; une réponse 428 demande une confirmation humaine. Ne rejouez une écriture que selon son contrat.

Notes du contrat
JSON
{
  "description": "Requires the public API entitlement. Legacy zero-based page pagination remains available. Use pagination=cursor for keyset pagination, then send nextCursor as cursor with the same product and query; do not combine with a nonzero page. Newer inserts do not shift a cursor continuation. Deletes and edits are not a snapshot. Each authorized request consumes one product API request."
}
JSON