Server API
Home
LootLocker
Home
LootLocker
LootLocker
  1. Player Files
  • Session
    • Session
      POST
    • Ping
      GET
  • Leaderboards
    • Schedules
      • Create
      • Delete
      • Get
    • Rewards
      • Create
      • Delete
    • Archives
      • Download
      • List
    • Manual Resets
      • Request Manual Reset
      • List Manual Resets
      • Get Manual Reset
      • Cancel Manual Reset
    • Get Leaderboard
      GET
    • List Leaderboards
      GET
    • Increment Score
      POST
    • Create Leaderboard
      POST
    • Update Leaderboard
      PUT
    • Delete Leaderboard
      DELETE
    • Submit Score
      POST
    • Get All Member Ranks
      GET
    • Get Score List
      GET
  • Assets
    • Simplified Asset Listing
    • List Contexts
    • Get Assets
  • Asset Instances
    • Get All Storage To Asset Instance
    • Get Storage Pair by ID
    • Create Storage Pair on Asset Instance
    • Update Storage Pairs by Key on Instance
    • Update Storage Pair by ID on Instance
    • Delete Storage Pair by ID on Instance
  • Triggers
    • Invoke Trigger
  • Inventories
    • List Player Inventory
    • Get Character Inventory
    • Get Hero Inventory
    • Alter Player Inventory
    • Add Asset to Player Inventory
    • List Universal Assets
    • List Simplified Player Inventory
    • List Simplified Player Inventory
  • Loadouts
    • Get Player Loadout
    • Equip Asset for Player Loadout
    • Unequip Asset for Player Loadout
    • Get Character Loadout
    • Equip Asset for Character Loadout
    • Unequip Asset for Character Loadout
    • Get Hero Loadout
    • Equip Asset for Hero Loadout
    • Unequip Asset for Hero Loadout
  • Characters & Heroes
    • Get Player Characters
    • Get Player Heroes
  • Player Storage
    • Get Player Storage
    • Lookup keys for Multiple Players
    • Delete for Multiple Players
    • Set for Multiple Players
  • Player Files
    • Create Download Link for Player File
      POST
    • List Files for Player
      GET
    • Get File By ID for Player
      GET
    • Delete File By ID for Player
      DELETE
    • List File Revisions for Player
      GET
    • Get File Revision by ID for Player
      GET
    • Promote File Revision to Current for Player
      POST
    • Get File By Key for Player
      GET
    • Upload File for Player (with optional key for upsert)
      POST
    • Delete File By Key for Player
      DELETE
    • List File Revisions by Key for Player
      GET
    • Get File Revision by Key and Revision ID for Player
      GET
    • Promote File Revision by Key to Current for Player
      POST
  • Drop Tables
    • Compute and Lock Drop Table
    • Pick Drops
  • Loot Boxes
    • Inspect Loot Box
    • Open Loot Box
  • Player
    • Get Player Info By Game Session Tokens
    • Create Player
    • Lookup Player Names by IDs
  • Progressions
    • Tiers
      • Get Progression Tiers
      • Get Single Progression Tier By Step
    • Players
      • Get All Player Progressions
      • Get Player Progressions By ID
      • Add points to player progression
      • Subtract points from player progression
      • Reset player progression
      • Delete player progression
    • Characters
      • Get All Character Progressions
      • Get Character Progressions By ID
      • Add points to Character progression
      • Subtract points from Character progression
      • Reset Character progression
      • Delete Character progression
    • Asset Instances
      • Get All Asset Instance Progressions
      • Get Asset Instance Progressions By ID
      • Add points to Asset Instance progression
      • Subtract points from Asset Instance progression
      • Reset Asset Instance progression
      • Delete Asset Instance progression
    • Get All Progressions
    • Get Progression By Key
  • Balances
    • Create Wallet Modifiers
    • Credit Balance
    • Debit Balance
    • Bulk Balance Operation
    • List Balances
    • Create New Wallet
    • Get Wallet
    • Get Wallet for Holder
  • Currency
    • List Currencies
  • Friends
    • List Friends
  • Metadata
    • Metadata Actions
    • List Metadata
    • List Multisource Metadata
  • Catalogs
    • List Catalog Items By Key
    • Reward Grant
    • List Catalog Items By ID
  • Notifications
    • Send Notification to Player
  • Connected Accounts
    • List Providers For Players
  • Referrals
    • Assert Player Referral Qualification
  • Schemas
    • Catalogs
      • Catalog Asset Detail
      • Catalog Summary
      • Catalog Currency Detail
      • Apple App Store Listing
      • Google Play Store Listing
      • Steam Store Listing
      • Stripe Store Listing
      • Epic Games Store Listing
      • Playstation Store Listing
      • Price
      • Catalog Entry
      • Listings
      • Xbox Store Listing
    • Notifications
      • Types
    • Pagination
      • Offset Pagination
    • Metadata
      • Metadata Value
      • Metadata Entry
      • Metadata Action
      • Metadata Action Error
    • Wallets
      • Get Wallet Response
      • Untitled Schema
    • Assets
      • Asset v1
    • Leaderboards
      • ManualReset
    • ULID
    • TierRef
    • Pagination
    • IdentityState
    • Error
    • ProgressionSummary
    • Inventory
    • ProgressionWithState
    • AwardResult
    • ErrorResponse
    • Cursor Pagination
  1. Player Files

Create Download Link for Player File

POST
https://api.lootlocker.io/server/players/{player_id}/files/{file_id}/download-link/v1
Mints a short-lived signed download URL for a file the caller owns.
This is the only way to obtain a link for a gated file - one whose listing reports requires_download_link: true, which is how a private file reward is granted: the reward hands the player a linkless row instead of a one-hour URL.
The endpoint is not restricted to gated files: any file the caller owns can be minted, so a client can always ask for a fresh link instead of caching one.
The link lives for 60 seconds and is a bearer credential: anyone holding it can download until it expires. Re-mint rather than cache or forward it.
The link is not single-use.
Tenancy is enforced: a file belonging to another player or another game returns 404, not 403, so the existence of another player's file cannot be probed.
Gating decides whether we hand out a URL, not whether the underlying object is reachable. If the object was uploaded for public access, its storage key can still be fetched directly.

Request

Path Params

Responses

🟢200Success
application/json
The file with a freshly signed url.
Bodyapplication/json

🟠404File not found
🔴500Signing failed
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lootlocker.io/server/players//files//download-link/v1'
Response Response Example
200 - Example 1
{
    "id": 0,
    "revision_id": "string",
    "name": "string",
    "key": "string",
    "size": 0,
    "purpose": "string",
    "public": true,
    "url": "string",
    "url_expires_at": "2019-08-24T14:15:22.123Z",
    "requires_download_link": true,
    "created_at": "2019-08-24T14:15:22.123Z"
}
Modified at 2026-10-20 14:52:01
Previous
Set for Multiple Players
Next
List Files for Player
Built with