> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.coperniq.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.coperniq.io/_mcp/server.

# Get Asset

GET https://api.coperniq.io/v1/assets/{asset_id}

Retrieve a specific asset by ID.

Reference: https://docs.coperniq.io/api-reference/assets/get-asset

## Authentication

- `x-api-key` header (required) — API Key authentication via header

## Request

### Path parameters

- `asset_id` (string, required)

## Response

### 200

Asset details

- `id` (integer, required) — Asset identifier.
- `status` (enum, required) — Asset lifecycle status.
  - Allowed values: `DRAFT`, `ACTIVE`, `MAINTENANCE`, `INACTIVE`, `RETIRED`
- `siteId` (integer, required)
- `labels` (list of AssetLabel, required) — Labels attached to the asset, ordered by position.
- `isArchived` (boolean, required)
- `uid` (integer, optional, nullable) — Short human-readable identifier for the asset (nullable for older records).
- `name` (string, optional, nullable)
- `type` (enum, optional, nullable) — Asset type enum.
  - Allowed values: `BATTERY_SYSTEM`, `CHARGING_GATEWAY`, `COMBINER_BOX`, `EV_CHARGER`, `LOAD_CENTER`, `MICROINVERTER`, `POWER_OPTIMIZER`, `PRODUCTION_METER`, `RAPID_SHUTDOWN_DEVICE`, `PV_INVERTER`, `TRACKER`, `WEATHER_STATION`, `AIR_CONDITIONER`, `AIR_HANDLING_UNIT`, `BOILER`, `CHILLER`, `COOLING_TOWER`, `FAN`, `HEAT_EXCHANGER`, `HEAT_PUMP`, `MAKE_UP_AIR_UNIT`, `PUMP`, `ROOFTOP_UNIT`, `THERMOSTAT`, `VARIABLE_FREQUENCY_DRIVE`, `AUTOMATIC_TRANSFER_SWITCH`, `BREAKER`, `DISCONNECT_SWITCH`, `ELECTRIC_METER`, `GENERATOR`, `LIGHTING_PANEL`, `PANELBOARD`, `SWITCHGEAR`, `TRANSFORMER`, `UNINTERRUPTIBLE_POWER_SUPPLY`, `BACKFLOW_PREVENTER`, `BOOSTER_PUMP`, `GREASE_INTERCEPTOR`, `STORAGE_TANK`, `SUMP_PUMP`, `VALVE`, `WATER_FILTRATION_SYSTEM`, `WATER_HEATER`, `WATER_SOFTENER`, `ACCESS_CONTROLLER`, `AUTOMATION_CONTROLLER`, `CAMERA`, `CARD_READER`, `DOOR_STRIKE`, `MAGLOCK`, `NETWORK_SWITCH`, `NETWORK_VIDEO_RECORDER`, `SENSOR`, `WIRELESS_ACCESS_POINT`, `OTHER`
- `manufacturer` (string, optional, nullable)
- `model` (string, optional, nullable)
- `serialNumber` (string, optional, nullable)
- `accountId` (integer, optional, nullable) — ID of the account (project with type ACCOUNT) the asset belongs to.
- `size` (double, optional, nullable)
- `installDate` (string, optional, nullable)
- `manufacturingDate` (string, optional, nullable)
- `expectedLifetime` (double, optional, nullable) — Expected lifetime in years
- `description` (string, optional, nullable)
- `coverImageFileId` (integer, optional, nullable)
- `nameplateImageFileId` (integer, optional, nullable)
- `createdAt` (string, optional)
- `updatedAt` (string, optional)

## Errors

### 401 Unauthorized Error

Authentication failed

- `message` (string, optional)
- `code` (enum, optional)
  - Allowed values: `NOT_FOUND`

### 404 Not Found Error

Resource not found

- `message` (string, optional)
- `code` (enum, optional)
  - Allowed values: `NOT_FOUND`

## Types

### AssetLabel

Label attached to an asset (read-only expansion of the label id).

- `id` (integer, required)
- `name` (string, required)
- `type` (enum, required)
  - Allowed values: `ASSET`, `TASK`
- `color` (string, optional, nullable)

## Examples

**Response**

```json
{
  "id": 1,
  "status": "DRAFT",
  "siteId": 1,
  "labels": [
    {
      "id": 1,
      "name": "string",
      "type": "ASSET",
      "color": "string"
    }
  ],
  "isArchived": true,
  "uid": 1,
  "name": "string",
  "type": "BATTERY_SYSTEM",
  "manufacturer": "string",
  "model": "string",
  "serialNumber": "string",
  "accountId": 1,
  "size": 1.1,
  "installDate": "2023-01-15",
  "manufacturingDate": "2023-01-15",
  "expectedLifetime": 1.1,
  "description": "string",
  "coverImageFileId": 1,
  "nameplateImageFileId": 1,
  "createdAt": "2024-01-15T09:30:00Z",
  "updatedAt": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.coperniq.io/v1/assets/asset_id"

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.coperniq.io/v1/assets/asset_id';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.coperniq.io/v1/assets/asset_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.coperniq.io/v1/assets/asset_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.coperniq.io/v1/assets/asset_id")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.coperniq.io/v1/assets/asset_id', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.coperniq.io/v1/assets/asset_id");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.coperniq.io/v1/assets/asset_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```