Skip to content

Feedback routes

Bug reports and suggestions, read in the admin (ADR 0012). Generated from openapi.yaml of games-api 0.7.0: 1 route.

  • POST /v1/feedback: Send a bug report, a suggestion or another message about the site or a game

Also tagged feedback, documented with their first tag:

POST /v1/feedback

POST /v1/feedback

Terminal window
curl -X POST 'https://api.filudi.com/v1/feedback' \
-H "authorization: Bearer $FILUDI_PLAYER_TOKEN" \
-H 'content-type: application/json' \
-d '{
"site": "filudi",
"game": "gloop",
"kind": "bug",
"message": "string",
"email": "you@example.com",
"page": "string",
"locale": "en"
}'

Send a bug report, a suggestion or another message about the site or a game

Anyone (ADR 0012). With a player token, the row records the player; a token of another site than site answers 400. An invalid or dead bearer counts as no token, as on sign-in: the route never answers 401. The API stores the user agent (first 300 characters) and an IP hash, encrypts email at rest, and sends no email. locale is kept when it is a locale of the site. game must be in the site catalog; a hidden entry is accepted, since a player may report a game the site just hid. 5 per IP per hour and 10 per player per day.

Credential, optional: a player token (fp1), sent as Authorization: Bearer <token>. A game token (fg1) answers 401 here. Without a token the answer is the anonymous one.

application/json, required. The body is a FeedbackInput.

PropertyTypeRequiredDescription
sitestringyesSite slug
gamestringnoGame slug; absent when the message is about the site
kindFeedbackKindyes
messagestringyesCounted after trim; 10 to 2000 characters
emailstring (email) or stringnoWhere the team may reply; "" counts as no email
pagestringnoPath of the page, without the query string; at most 512 characters; pattern ^/
localestringnoThe page locale; kept when it is a locale of the site
StatusBodyDescription
202FeedbackAcceptedStored for the team.
400ErrorValidation failed.
404noneUnknown site.
429ErrorToo many requests. Headers: Retry-After.
503noneRedis is down; the rate limit cannot be checked.