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

# Retrieve a site item

GET https://api.modulards.com/api/public/v1/site-items/{siteItem}

Returns one installed item. Use `fields[site-items]` for details that a listing leaves out, such as the last error, which actions the item allows and its recent version history.

Only `include` and `fields` apply: `filter`, `sort` and `page` are ignored. Asking for `history` also requires a role that is allowed to see version history.

Reference: https://api.docs.modulards.com/modular-ds-public-api/updater/installed-items/retrieve-a-site-item

## Authentication

- `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

## Request

### Path parameters

- `siteItem` (string, required)

### Query parameters

- `include` (string, optional) — Related records to embed: `site` embeds the website the item is installed on.
- `fields[site-items]` (string, optional) — Attributes to return, comma-separated; only those are returned. Any of the computed attributes of "List site items" can be named: `copilot_score`, `released_at`, `in_progress_action_id`, `in_progress_action_type`, `in_progress_action_status`, `last_error`, `can_upgrade`, `can_safe_upgrade`, `can_activate`, `can_deactivate`, `can_delete` and `history`.

## Response

### 200

200 - Site item

- `data` (ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaData, optional)
- `jsonapi` (ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaJsonapi, optional)

## Types

### ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaData

- `attributes` (ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaDataAttributes, optional)
- `id` (string, optional)
- `links` (ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaDataLinks, optional)
- `type` (string, optional)

### ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaJsonapi

- `version` (string, optional)

### ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaDataAttributes

- `basename` (string, optional)
- `component_id` (double, optional)
- `created_at` (string, optional)
- `has_error` (boolean, optional)
- `history` (list of ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaDataAttributesHistoryItems, optional)
- `is_hidden` (boolean, optional)
- `last_error` (any, optional, nullable)
- `name` (string, optional)
- `new_version` (string, optional)
- `previous_version` (any, optional, nullable)
- `slug` (string, optional)
- `status` (string, optional)
- `type` (string, optional)
- `updated_at` (string, optional)
- `version` (string, optional)
- `vulnerabilities_c_exists` (boolean, optional)
- `vulnerabilities_exists` (boolean, optional)

### ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaDataLinks

- `self` (string, optional)

### ApiPublicV1SiteItemsSiteItemGetResponsesContentApplicationJsonSchemaDataAttributesHistoryItems

- `created_at` (string, optional)
- `event` (string, optional)
- `from_version` (string, optional)
- `to_version` (string, optional)

## Examples

**Response**

```json
{
  "data": {
    "attributes": {
      "basename": "woocommerce/woocommerce.php",
      "component_id": 42,
      "created_at": "2026-06-01T09:00:00.000000Z",
      "has_error": false,
      "history": [
        {
          "created_at": "2026-09-01T03:00:00.000000Z",
          "event": "upgraded",
          "from_version": "8.9.5",
          "to_version": "8.10.0"
        }
      ],
      "is_hidden": false,
      "last_error": null,
      "name": "WooCommerce",
      "new_version": "8.10.1",
      "previous_version": null,
      "slug": "woocommerce",
      "status": "active",
      "type": "plugin",
      "updated_at": "2026-09-15T07:30:00.000000Z",
      "version": "8.10.0",
      "vulnerabilities_c_exists": false,
      "vulnerabilities_exists": false
    },
    "id": "301",
    "links": {
      "self": "{{base_url}}/api/public/v1/site-items/301"
    },
    "type": "site-items"
  },
  "jsonapi": {
    "version": "1.1"
  }
}
```

**SDK Code**

```python 200 - Site item
import requests

url = "https://api.modulards.com/api/public/v1/site-items/siteItem"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript 200 - Site item
const url = 'https://api.modulards.com/api/public/v1/site-items/siteItem';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go 200 - Site item
package main

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

func main() {

	url := "https://api.modulards.com/api/public/v1/site-items/siteItem"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby 200 - Site item
require 'uri'
require 'net/http'

url = URI("https://api.modulards.com/api/public/v1/site-items/siteItem")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java 200 - Site item
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modulards.com/api/public/v1/site-items/siteItem")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php 200 - Site item
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modulards.com/api/public/v1/site-items/siteItem', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp 200 - Site item
using RestSharp;

var client = new RestClient("https://api.modulards.com/api/public/v1/site-items/siteItem");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift 200 - Site item
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/site-items/siteItem")! 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()
```