> Documentation index: https://docs.hodeishield.com/llms.txt

# `/v1` reference: Evidence

The operations of this resource. They share the pagination and error vocabulary described in [Overview](https://docs.hodeishield.com/en/api/overview/) and [Errors](https://docs.hodeishield.com/en/api/errors/). Example values on this page are **fictitious**. The other operations are in the [complete reference](https://docs.hodeishield.com/en/api/reference/).

## Operations

### List security evidence

`GET /v1/evidence`

The tenant's evidence items: owner, validity date, status.

**Required scope:** `evidence:read`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `page` | query | no | `integer` | 1-based page number. Defaults to 1. |
| `per_page` | query | no | `integer` | Items per page, 1..200. Defaults to 50. |
| `sort` | query | no | `enum(created_at, valid_until)` | Field to order by. One of: created_at, valid_until. |
| `order` | query | no | `enum(asc, desc)` | Sort direction. Defaults to desc. |
| `evidence_type` | query | no | `string` | Exact type match. |
| `source_type` | query | no | `string` | Exact producer match. |
| `vendor_id` | query | no | `string` | Only evidence about this vendor. |
| `expiring_before` | query | no | `string` | Only evidence with a `valid_until` strictly before this `YYYY-MM-DD`. |
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Example response (200, fictitious values):**

```json
{
  "data": [
    {
      "id": "44444444-4444-4444-8444-444444444444",
      "title": "Política de cifrado en tránsito",
      "evidence_type": "policy",
      "status": "current",
      "owner_email": "seguridad@ejemplo-cliente.example",
      "valid_until": "2027-03-01"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 50,
    "total": 132,
    "total_pages": 3
  }
}
```

### Fetch one evidence item

`GET /v1/evidence/{id}`

The same object as the collection, for a single item by id.

**Required scope:** `evidence:read`

**Parameters:**

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | `string` | Evidence identifier. |
| `X-HS-Tenant` | header | no | `string` | The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (`hsp_…`); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |

**Example response (200, fictitious values):**

```json
{
  "data": {
    "id": "44444444-4444-4444-8444-444444444444",
    "title": "Política de cifrado en tránsito",
    "evidence_type": "policy",
    "status": "current",
    "owner_email": "seguridad@ejemplo-cliente.example",
    "valid_until": "2027-03-01"
  }
}
```
