Crowdsec Allow Lists API

The Allow Lists API from Crowdsec — 6 operation(s) for allow lists.

GitHub OpenAPI
Business capability
Threat Detection & Response Management BC-620.30

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /allowlists Create an allowlist · Create Allowlist #
Ask an LLM
“How do I create a new allowlist to exempt certain IPs from blocking?”
“Can I add a description when creating an allowlist?”
Tell an agent
Create an allowlist named {name}.
Create allowlist {name} described as {description}.
GET /allowlists List allowlists · List Allowlists #
Ask an LLM
“Which allowlists exist in my organization?”
“Can I page through all allowlists?”
Tell an agent
List all allowlists.
Show {size} allowlists per page.
GET /allowlists/{allowlist_id} Get an allowlist · Get Allowlist #
Ask an LLM
“What are the details of a specific allowlist?”
“Can I look up one allowlist by ID?”
Tell an agent
Get allowlist {allowlist_id}.
Show the name and description of allowlist {allowlist_id}.
PATCH /allowlists/{allowlist_id} Update an allowlist · Update Allowlist #
Ask an LLM
“Can I rename an existing allowlist?”
“Is it possible to change an allowlist's description?”
Tell an agent
Rename allowlist {allowlist_id} to {name}.
Set the description of allowlist {allowlist_id} to {description}.
DELETE /allowlists/{allowlist_id} Delete an allowlist · Delete Allowlist #
Ask an LLM
“How do I delete an allowlist I no longer need?”
“Can I force-delete an allowlist that still has subscribers?”
Tell an agent destructive · confirm first
Delete allowlist {allowlist_id}.
Force delete allowlist {allowlist_id} with force {force}.
POST /allowlists/{allowlist_id}/items Add items to an allowlist · Create Allowlist Items #
Ask an LLM
“How do I add a list of IP addresses to an allowlist?”
“Can an allowlist entry expire automatically?”
Tell an agent
Add {items} to allowlist {allowlist_id} described as {description}.
Add {items} to allowlist {allowlist_id} with expiration {expiration}, described as {description}.
GET /allowlists/{allowlist_id}/items List items in an allowlist · Get Allowlist Items #
Ask an LLM
“Which IP addresses or domains are in a given allowlist?”
“Can I page through the entries of one allowlist?”
Tell an agent
List the items in allowlist {allowlist_id}.
Show {size} items per page from allowlist {allowlist_id}.
GET /allowlists/{allowlist_id}/items/{item_id} Get an allowlist item · Get Allowlist Item #
Ask an LLM
“What is the value and expiration of one entry in an allowlist?”
“Can I fetch a single allowlist item by ID?”
Tell an agent
Get item {item_id} in allowlist {allowlist_id}.
Show the value and expiration of allowlist {allowlist_id} item {item_id}.
PATCH /allowlists/{allowlist_id}/items/{item_id} Update an allowlist item · Update Allowlist Item #
Ask an LLM
“Can I extend the expiration of an existing allowlist entry?”
“Is it possible to change the description of an allowlist item?”
Tell an agent
Set the expiration of item {item_id} in allowlist {allowlist_id} to {expiration}.
Change the description of allowlist {allowlist_id} entry {item_id} to {description}.
DELETE /allowlists/{allowlist_id}/items/{item_id} Remove an item from an allowlist · Delete Allowlist Item #
Ask an LLM
“How do I remove an IP from an allowlist?”
“Can I delete one entry from an allowlist by its item ID?”
Tell an agent destructive · confirm first
Delete item {item_id} from allowlist {allowlist_id}.
Remove allowlist {allowlist_id} entry {item_id}.
GET /allowlists/{allowlist_id}/subscribers List subscribers of an allowlist · Get Allowlist Subscribers #
Ask an LLM
“Which entities are subscribed to a given allowlist?”
“Can I page through the subscribers of an allowlist?”
Tell an agent
List subscribers of allowlist {allowlist_id}.
Show {size} subscribers per page for allowlist {allowlist_id}.
POST /allowlists/{allowlist_id}/subscribers Subscribe entities to an allowlist · Subscribe Allowlist #
Ask an LLM
“How do I subscribe a set of entities to an allowlist?”
“Can I subscribe only certain entity types to an allowlist?”
Tell an agent
Subscribe {entity_type} entities {ids} to allowlist {allowlist_id}.
Add {entity_type} subscribers {ids} to allowlist {allowlist_id}.
DELETE /allowlists/{allowlist_id}/subscribers/{entity_id} Unsubscribe an entity from an allowlist · Unsubscribe Allowlist #
Ask an LLM
“How do I stop a single entity from receiving an allowlist?”
“Can I unsubscribe one entity from an allowlist by its ID?”
Tell an agent destructive · confirm first
Unsubscribe entity {entity_id} from allowlist {allowlist_id}.
Remove {entity_id} as a subscriber of allowlist {allowlist_id}.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/crowdsec:crowdsec-allow-lists-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

crowdsec-allow-lists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Service Allowlists API
  description: This is the API to manage Crowdsec services
  contact:
    name: CrowdSec
    url: https://crowdsec.net/
    email: info@crowdsec.net
  version: 1.87.2
servers:
- url: https://admin.api.crowdsec.net/v1/
  description: Production server
security:
- ApiKeyAuth: []
- BasicAuth: []
tags:


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/crowdsec/openapi/crowdsec-allow-lists-api-openapi.yml