Skip to content

Garage

Parked dinos, take-outs, deaths and gifts.

Your key stays in this tab. Calls go straight to your server.

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 *stringFull Steam ID
dino *object
dino.species *any
dino.growth_pctany
dino.sexany
dino.primeany
dino.entombany
dino.mutationsany
dino.parent_mutationsany
dino.elder_mutationsany
dino.nameany
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.add",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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
againboolean
growth_pctinteger
wholeboolean
reasonstringShown 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
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.edit",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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 *stringFull Steam ID

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.export",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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 *stringFull Steam ID
dino_id *string
to_steam_id *stringFull Steam ID
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.gift",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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 *stringFull Steam ID
dinos *object[]
dinos[].species *any
dinos[].growth_pctany
dinos[].sexany
dinos[].primeany
dinos[].entombany
dinos[].mutationsany
dinos[].parent_mutationsany
dinos[].elder_mutationsany
dinos[].nameany
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.import",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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 *stringFull Steam ID
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.park",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.remove",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "garage.restore",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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 *stringFull Steam ID
dino_id *string
redeem_atany
reasonstringShown 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
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

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 · stringFull 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
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/garage/{steam_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/garage/{steam_id}/deaths

A player's lives and deaths, newest first

garage:read

Parameters

steam_id *path · stringFull Steam ID (17 digits)

Answers

200OK
{
  "data": [
    {
      "species": "Tyrannosaurus",
      "growth": 0.8,
      "cause": "killed",
      "killer_sid": "76561198000000001",
      "at": 1761955200
    }
  ],
  "next_cursor": null
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/garage/{steam_id}/deaths" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/garage/{steam_id}/history

A player's parks, take-outs and deaths, newest first

garage:read

Parameters

steam_id *path · stringFull Steam ID (17 digits)
limitquery · integerRows per page (1-100)
cursorquery · stringnext_cursor of the previous page

Answers

200OK
{
  "data": [
    {
      "kind": "park",
      "species": "Tyrannosaurus",
      "at": 1761955200
    }
  ],
  "next_cursor": null
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/garage/{steam_id}/history" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.