This how-to retrieves UGC Feedback categories and reports a piece of user-generated content from your game.
Prerequisites
- Unity, Unreal, or Godot SDK installed and configured in your project (not required for REST).
- An active Player session (see Authentication).
- At least one UGC Feedback Category configured (see Manage Feedback Categories).
Retrieve Category IDs
Before we can create the Feedback report, we first need to find the category to report the content under.
If you only have a single category, you could manually retrieve the category ID from the Web Console. However, if you have multiple categories, you should list the categories and let the player choose which category to report under.
To retrieve all the categories, we can use the following code:
public void RetrieveCategoryIDs(){ LootLockerSDKManager.ListUGCFeedbackCategories((response) => { if (!response.success) { // Replace this with your own error handling Debug.Log("Could not list UGC related feedback categories"); Debug.Log(response.errorData.ToString()); return; }
// Replace this section with your own UI to let the player choose the category foreach (var category in response.categories) { Debug.Log(category.name + "\n" + category.description + "\n" + category.id); } });}Coming soon — this sample hasn't been written yet. In the meantime, refer to the Reference Documentation for this endpoint.
curl -X "https://api.lootlocker.io/game/feedback/category/entity/ugc" \ -H "x-session-token: your_token_here"Send UGC Report
Now that we have the category ID, we can send the UGC report.
To send a UGC report, we need to provide the following information:
- The category ID
- The ULID of the Asset being reported
- Optionally a description, which can be entered by the player or filled in by the game
public void SendUGCReport(){ string categoryID = "category_id_here"; string reportDescription = "This asset is incomplete"; string ugcUlid = "asset_ulid_here";
LootLockerSDKManager.SendUGCFeedback(ugcUlid, reportDescription, categoryID, (response) => { if (!response.success) { // Replace this with your own error handling Debug.Log("Could not report UGC"); Debug.Log(response.errorData.ToString()); return; }
// Replace this with your own success handling Debug.Log("Report sent to LootLocker"); });}Coming soon — this sample hasn't been written yet. In the meantime, refer to the Reference Documentation for this endpoint.
curl -X "https://api.lootlocker.io/game/feedback" \ -H "x-session-token: your_token_here" \ -D '{ "entity": "ugc", "entity_id": "asset_ulid_here", "category_id": "category_id_here", "description": "This asset is incomplete" }'Conclusion
You've listed UGC Feedback categories and reported a piece of user-generated content from your game. Next, see Create Game Feedback or Create Player Feedback.

