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
| Name | Type | Description |
|---|---|---|
code | string | The replicant whose devices you want to list. |
Example
$ curl https://api.replicant.space/v1/replicants/57F0F6C8/devices \
-H "Authorization: Bearer $API_KEY" {
"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
}
]
}