# Content Channel

**Summary:** Endpoints for Content Channel

- Role: [Developers](https://www.subrite.no/developers)
- Source: https://www.subrite.no/developers/content-channel
- Updated: 2026-10-13
- Markdown index: https://www.subrite.no/developers/llms.txt

<a id="get-api-v1-content-channels"></a>
## Get all content channels

`GET /api/v1/content-channels`

**Authentication:** Bearer token (JWT)

### Responses

#### 200

Content type: `application/json` · `array of ContentChannelDto`

Returns all content channels

| Name | Type | Description |
| --- | --- | --- |
| `[].id` (Required when parent is present) | `number` | Unique identifier of the content channel |
| `[].name` (Required when parent is present) | `string` | Name of the content channel · `maxLength`: `1024` |
| `[].description` | `string` | Description of the content channel |

#### 401

unauthorized

### Example request

```bash
curl https://api.subrite.no/api/v1/content-channels \
  --header 'Authorization: Bearer <token>'
```

### Example response

200 · `application/json`

```json
[
  {
    "id": 0,
    "name": "string",
    "description": "string"
  }
]
```

<a id="get-api-v1-content-channels-by-ip"></a>
## Get content channels granted to a request originating from the given IP (M2M only)

`GET /api/v1/content-channels/by-ip`

**Authentication:** Bearer token (JWT)

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `ip` (Required) | query | `string` | Client IP address (IPv4 or IPv6). IPv4-mapped IPv6 addresses (::ffff:1.2.3.4) are normalized server-side. |

### Responses

#### 200

Content type: `application/json` · `array of ContentChannelDto`

Returns content channels reachable through products with matching IP ranges

| Name | Type | Description |
| --- | --- | --- |
| `[].id` (Required when parent is present) | `number` | Unique identifier of the content channel |
| `[].name` (Required when parent is present) | `string` | Name of the content channel · `maxLength`: `1024` |
| `[].description` | `string` | Description of the content channel |

#### 401

unauthorized

### Example request

```bash
curl 'https://api.subrite.no/api/v1/content-channels/by-ip?ip=203.0.113.42' \
  --header 'Authorization: Bearer <token>'
```

### Example response

200 · `application/json`

```json
[
  {
    "id": 0,
    "name": "string",
    "description": "string"
  }
]
```
