> 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.

# Show site item

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

One item by id. Only `include` and `fields` apply here; `filter`/`sort`/`page` answer 422. Requesting `history` in `fields[site-items]` also requires the `history` ability on the token.

Reference: https://api.docs.modulards.com/modular-ds-public-api/updater/show-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)
- `fields[site-items]` (string, optional) — Any subset of the index's computed fields

## Response

### 200

200 - Site item

- `data` (object, optional)
  - `attributes` (object, optional)
    - `basename` (string, optional)
    - `component_id` (double, optional)
    - `created_at` (string, optional)
    - `has_error` (boolean, optional)
    - `history` (list of object, optional)
      - `created_at` (string, optional)
      - `event` (string, optional)
      - `from_version` (string, optional)
      - `to_version` (string, 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)
  - `id` (string, optional)
  - `links` (object, optional)
    - `self` (string, optional)
  - `type` (string, optional)
- `jsonapi` (object, optional)
  - `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": "updated",
          "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()
```