List devices

Returns all the devices the replicant owns, as long as they are in range. Travel to another system and forget to establish FTL comms, and you will lose track of your old devices.

Endpoint

GET /v1/replicants/{code}/devices

Path parameters

NameTypeDescription
codestringThe replicant whose devices you want to list.

Example

GET /v1/replicants/{code}/devices 200 OK
$ curl https://api.replicant.space/v1/replicants/57F0F6C8/devices \
    -H "Authorization: Bearer $API_KEY"
response response
{
  "devices": [
    {
      "device_code": "2AC61214",
      "device_type": "mining_drone",
      "location": "SOL-BELT-1",
      "status": "mining",
      "operational_capacity": 0.92
    },
    {
      "device_code": "7FE981A0",
      "device_type": "transport_drone",
      "location": "SOL-BELT-1",
      "status": "idle",
      "operational_capacity": 0.99
    }
  ]
}