GET · Consulter
Rédigé par Red Blue
Mis à jour le
GET /api/v1/feedback/{postId}
operationId : feedback_get
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 |
postId | path | Oui | string |
Exemple de requête
curl --request GET "$KHONY_ORIGIN/api/v1/feedback/post_01k3w8d7vhe008000000000003?productId=product_01k3w8d7vhe008000000000001" \
--header "x-api-key: $KHONY_API_KEY"Réponse de succès · HTTP 200
{
"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",
"requestedId": "post_01k3w8d7vhe008000000000003",
"revision": "4242",
"visibility": "public",
"commentsLocked": false,
"tags": {
"data": [],
"nextCursor": null
}
}
}Schéma complet de la réponse
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"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))$"
},
"requestedId": {
"type": "string",
"pattern": "^post_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"revision": {
"type": "string",
"maxLength": 20,
"pattern": "^\\d+$"
},
"visibility": {
"type": "string",
"enum": [
"public",
"internal"
]
},
"commentsLocked": {
"type": "boolean"
},
"tags": {
"type": "object",
"properties": {
"data": {
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"pattern": "^tag_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
{
"type": "null"
}
]
}
},
"required": [
"data",
"nextCursor"
],
"additionalProperties": false
},
"bodyDocument": {
"$ref": "#/$defs/__schema1"
}
},
"required": [
"id",
"productId",
"boardId",
"title",
"body",
"status",
"source",
"voteCount",
"commentCount",
"createdAt",
"updatedAt",
"requestedId",
"revision",
"visibility",
"commentsLocked",
"tags"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^tag_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"public",
"internal"
]
}
},
"required": [
"id",
"name",
"color",
"visibility"
],
"additionalProperties": false
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
}
}
}Refus et reprise
Les statuts documentés pour cette opération sont 400, 401, 402, 403, 404, 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
{
"description": "Read an authorized product's feedback, including internal content. Resolves a fusion alias to its canonical ID and preserves requestedId. No private person identities or signed media are included. Tags contain up to 100 entries; continue through feedback_tags_list when nextCursor is present. Requires the product public API entitlement and consumes one request, including a missing-resource response."
}