# List where a shared block is placed

`GET /v1/shared-blocks/{id}/usage`

Requires an API key with the `templates:read` scope. [About keys and scopes](/docs/api/authentication)

Templates, campaigns not yet sent and journeys not ended that place it: what a change reaches. Sent campaigns kept it as it was.

## Path parameters

- `id` (string, required, uuid)

## Returns

Returns `200 OK` with a `SharedBlockUsage` in `data`. Otherwise returns an error; [Errors](/docs/api/errors) lists every code and which to retry.

- `templates` (object[], required) — Templates that place it.
  - `id` (string, required, uuid)
  - `name` (string, required)
- `campaigns` (object[], required) — Campaigns not yet sent that place it.
  - `id` (string, required, uuid)
  - `name` (string, required)
- `journeys` (object[], required) — Journeys not ended that place it.
  - `id` (string, required, uuid)
  - `name` (string, required)

## Example

```bash
curl https://api.kirora.io/v1/shared-blocks/018f2a4e-6b1c-7d3e-9f40-37386ae05a6b/usage \
  -H "Authorization: Bearer $KIRORA_API_KEY"
```

Response `200`:

```json
{
  "data": {
    "templates": [
      {
        "id": "018f2a4e-6b1c-7d3e-9f40-37386ae05a6b",
        "name": "Weekend specials"
      }
    ],
    "campaigns": [
      {
        "id": "018f2a4e-6b1c-7d3e-9f40-37386ae05a6b",
        "name": "Weekend specials"
      }
    ],
    "journeys": [
      {
        "id": "018f2a4e-6b1c-7d3e-9f40-37386ae05a6b",
        "name": "Weekend specials"
      }
    ]
  }
}
```
