A player's history
GET /v1/players/{key}/history: every save Atomo kept, newest first.
On this page
GET
/v1/players/{key}/historyAPI keyEvery save of the player that Atomo kept, newest first, 100 at a time. To read one, ask for the player with its version.
Parameters
- keypathRequired
The data store key.
- beforenumber
For the next 100: the
updatedTimeof the last save you have. Only saves made before it are listed.- storestring
The data store, when the game has more than one.
- scopestringDefault
global Its scope.
Request
curl https://api.useatomo.com/v1/players/Player_48213/history \
-H "Authorization: Bearer $ATOMO_API_KEY"
-- Every save, 100 at a time.
local saves, before = {}, nil
repeat
local url = "https://api.useatomo.com/v1/players/Player_48213/history"
if before then
url ..= "?before=" .. before
end
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = { Authorization = key:AddPrefix("Bearer ") },
})
local page = HttpService:JSONDecode(response.Body)
for _, save in page.versions do
table.insert(saves, save)
end
before = if #page.versions > 0 then page.versions[#page.versions].updatedTime else nil
until not page.more
Answer
{
"asOf": 1796474085467,
"key": "Player_48213",
"receivedAt": 1796474085413,
"versions": [
{
"version": "08DE2C5A1B3F7E91.0000000002.08DE2C5A1B3F7E91.01",
"updatedTime": 1764871140000,
"via": "game",
"conflict": false
},
{
"version": "08DE2C5A1B3F7E91.0000000001.08DE2C5A1B3F7E91.01",
"updatedTime": 1764784800000,
"via": "game",
"conflict": false
}
],
"more": false
}
Each save
- versionstring
Roblox’s version of the save.
- updatedTimenumber
When Roblox saved it.
- viastring
How it reached Atomo:
game(reported by the module),import(a sync or a look-up),repair(comparing with Roblox) orexample.- conflictboolean
truewhen another copy claims the same moment. Needs checking
more is true when there are older saves. How far back it goes depends on the organisation’s history rules.