---
title: "Get warninglist by ID"
method: GET
path: "/warninglists/view/{warninglistId}"
tags: ["Warninglists"]
---

# Get warninglist by ID

`GET /warninglists/view/{warninglistId}`

## Path parameters

- `warninglistId` string, required

## Response `200`

Get warninglists response

- object
  - `Warninglist` Warninglist
    - `id` string
    - `name` string
    - `type` 'cidr' | 'hostname' | 'substring' | 'string' | 'regex'
    - `description` string
    - `version` string
    - `enabled` boolean
    - `warninglist_entry_count` string
    - `valid_attributes` string — List of comma separated warninglist types.
    - `WarninglistEntry` WarninglistEntry[]
      - `id` string
      - `value` string
      - `warninglist_id` string

## Other responses

- `403` — Authentication failed. Please make sure you pass the API key of an API enabled user along in the Authorization header.
- `404` — The specified resource was not found
- `default` — Unexpected API error

---

[API](https://skmtc.net/misp/apis/misp-automation-api.md) · [All operations](https://skmtc.net/misp/apis/misp-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/misp/misp-automation-api/revisions/88b34ff032a1/schema)
