# Read a retained source unit

Read one immutable unit from an owned source representation.

Documentation index: https://webcite.co/llms.txt
Canonical page: https://webcite.co/api-docs/source-unit
API origin: https://api.webcite.co
Authentication: x-api-key header. Keep keys on your server.

## When to use it

Use IDs returned by [Publish text source units](/api-docs/publish-text-representation) or [Locate latest source units](/api-docs/latest-representation). Inspect numeric content before choosing figure_index for verification.

## Request

GET /api/v2/sources/{versionId}/representations/{representationId}/units/{unitId}

No fixed public credit price is specified for this V2 read.

### curl

```curl
curl --fail-with-body -X GET 'https://api.webcite.co/api/v2/sources/YOUR_VERSIONID/representations/YOUR_REPRESENTATIONID/units/YOUR_UNITID' \
  -H "x-api-key: $WEBCITE_API_KEY"
```

### Node.js

```javascript
const response = await fetch("https://api.webcite.co/api/v2/sources/YOUR_VERSIONID/representations/YOUR_REPRESENTATIONID/units/YOUR_UNITID", {
  method: "GET",
  headers: {
    "x-api-key": process.env.WEBCITE_API_KEY,
  },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
```

### python

```python
import os
import requests

response = requests.get(
    "https://api.webcite.co/api/v2/sources/YOUR_VERSIONID/representations/YOUR_REPRESENTATIONID/units/YOUR_UNITID",
    headers={"x-api-key": os.environ["WEBCITE_API_KEY"]},
    timeout=(10, 300),
)
response.raise_for_status()
print(response.json())
```

## Response

Returns the retained unit content, locator, native metadata, and evidence state.

## Errors

Foreign or mismatched source, representation, and unit IDs are rejected.

## OpenAPI operation

```json
{
  "path": "/api/v2/sources/{versionId}/representations/{representationId}/units/{unitId}",
  "method": "GET",
  "operation": {
    "operationId": "SourceVersionController_unit",
    "parameters": [
      {
        "in": "path",
        "name": "versionId",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      {
        "in": "path",
        "name": "representationId",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      {
        "in": "path",
        "name": "unitId",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    ],
    "responses": {
      "200": {
        "description": ""
      }
    },
    "security": [
      {
        "x-api-key": []
      },
      {
        "bearer": []
      }
    ],
    "tags": [
      "Versioned evidence"
    ]
  },
  "schemas": {}
}
```
