Garage
Parked dinos, take-outs, deaths and gifts.
POST/api/v1/actions/garage.add
Add a dino to a player's garage
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
steam_id * | string | Full Steam ID |
dino * | object | |
dino.species * | any | |
dino.growth_pct | any | |
dino.sex | any | |
dino.prime | any | |
dino.entomb | any | |
dino.mutations | any | |
dino.parent_mutations | any | |
dino.elder_mutations | any | |
dino.name | any | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.add",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.add" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"steam_id":"string","dino":{"species":null,"growth_pct":null,"sex":null,"prime":null,"entomb":null,"mutations":null,"parent_mutations":null,"elder_mutations":null,"name":null},"reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.death_restore
Restore a dino from a death
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
death_id * | integer | |
again | boolean | |
growth_pct | integer | |
whole | boolean | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.death_restore",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.death_restore" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"death_id":0,"again":false,"growth_pct":0,"whole":false,"reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.edit
Edit a garage dino
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
dino_id * | string | |
changes * | object | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.edit",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.edit" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"dino_id":"string","changes":{},"reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.export
Export a player's garage (mutations, Entomb, prime, sex, growth)
garage:read
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
steam_id * | string | Full Steam ID |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.export",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.export" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"steam_id":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.gift
Give a garage dino to another player (Steam ID)
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
steam_id * | string | Full Steam ID |
dino_id * | string | |
to_steam_id * | string | Full Steam ID |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.gift",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.gift" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"steam_id":"string","dino_id":"string","to_steam_id":"string","reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.import
Import dinos into a player's garage (a garage export's rows)
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
steam_id * | string | Full Steam ID |
dinos * | object[] | |
dinos[].species * | any | |
dinos[].growth_pct | any | |
dinos[].sex | any | |
dinos[].prime | any | |
dinos[].entomb | any | |
dinos[].mutations | any | |
dinos[].parent_mutations | any | |
dinos[].elder_mutations | any | |
dinos[].name | any | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.import",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.import" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"steam_id":"string","dinos":[{"species":null,"growth_pct":null,"sex":null,"prime":null,"entomb":null,"mutations":null,"parent_mutations":null,"elder_mutations":null,"name":null}],"reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.park
Park a player's live dino in their garage (they must be in game)
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
steam_id * | string | Full Steam ID |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.park",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.park" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"steam_id":"string","reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.remove
Remove a garage dino
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
dino_id * | string | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.remove",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.remove" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"dino_id":"string","reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.restore
Restore a removed garage dino
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
dino_id * | string | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.restore",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.restore" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"dino_id":"string","reason":"string"}'
Try it
Add your site and key at the top.
POST/api/v1/actions/garage.take_out
Take a dino out of a player's garage into the game
garage:act
Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.
Body
steam_id * | string | Full Steam ID |
dino_id * | string | |
redeem_at | any | |
reason | string | Shown in the admin log |
Answers
200OK
{
"id": "act_00000000000000000000000000000000",
"action": "garage.take_out",
"state": "done",
"at": 0,
"status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl -X POST "https://your-site.com/api/v1/actions/garage.take_out" \
-H "Authorization: Bearer $SEQUENCE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"steam_id":"string","dino_id":"string","redeem_at":"here","reason":"string"}'
Try it
Add your site and key at the top.
GET/api/v1/garage/{steam_id}
A player's garage: every stored dinosaur with mutations, Entomb, prime, growth, vitals
garage:read
Parameters
steam_id * | path · string | Full Steam ID (17 digits) |
Answers
200OK
{
"data": [
{
"dino_id": "abc",
"species": "Tyrannosaurus",
"growth_percent": 100,
"is_prime": true,
"entombed": {
"state": "not_entombed"
},
"mutations": []
}
],
"next_cursor": null
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl "https://your-site.com/api/v1/garage/{steam_id}" \
-H "Authorization: Bearer $SEQUENCE_KEY"
Try it
GET/api/v1/garage/{steam_id}/deaths
A player's lives and deaths, newest first
garage:read
Parameters
steam_id * | path · string | Full Steam ID (17 digits) |
Answers
200OK
{
"data": [
{
"species": "Tyrannosaurus",
"growth": 0.8,
"cause": "killed",
"killer_sid": "76561198000000001",
"at": 1761955200
}
],
"next_cursor": null
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl "https://your-site.com/api/v1/garage/{steam_id}/deaths" \
-H "Authorization: Bearer $SEQUENCE_KEY"
Try it
GET/api/v1/garage/{steam_id}/history
A player's parks, take-outs and deaths, newest first
garage:read
Parameters
steam_id * | path · string | Full Steam ID (17 digits) |
limit | query · integer | Rows per page (1-100) |
cursor | query · string | next_cursor of the previous page |
Answers
200OK
{
"data": [
{
"kind": "park",
"species": "Tyrannosaurus",
"at": 1761955200
}
],
"next_cursor": null
}
401Error
error | object | |
error.code | string | |
error.message | string | |
403Error
error | object | |
error.code | string | |
error.message | string | |
429Error
error | object | |
error.code | string | |
error.message | string | |
Code
curl "https://your-site.com/api/v1/garage/{steam_id}/history" \
-H "Authorization: Bearer $SEQUENCE_KEY"
Try it