Crowdsec Blocklists API

The Blocklists API from Crowdsec — 12 operation(s) for blocklists.

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

Operations 16

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 /blocklists Create a blocklist · Create Blocklist #
Ask an LLM
“How do I create a blocklist of IPs?”
“Can I add references and tags to a new blocklist?”
Tell an agent
Create blocklist {name} described as {description}.
Create blocklist {name} with label {label} and description {description}.
GET /blocklists List blocklists · Get Blocklists #
Ask an LLM
“Which blocklists do I own or share?”
“Can I list only private blocklists?”
Tell an agent
List my blocklists.
List blocklists in category {category}.
POST /blocklists/search Search blocklists · Search Blocklists #
Ask an LLM
“Which blocklists contain IPs from a given country?”
“Can I search blocklists by behavior or source?”
Tell an agent
Search blocklists for {query}.
Find blocklists with behavior {behaviors} in countries {targeted_countries}.
GET /blocklists/{blocklist_id} Get a blocklist's details · Get Blocklist #
Ask an LLM
“What is the description of a blocklist?”
“Can I see a blocklist's details without its content?”
Tell an agent
Show blocklist {blocklist_id}.
Get the details of blocklist {blocklist_id}.
PATCH /blocklists/{blocklist_id} Update a blocklist's details · Update Blocklist #
Ask an LLM
“Can I change the description of a blocklist?”
“Is it possible to set a CTI query on an existing blocklist?”
Tell an agent
Change the description of blocklist {blocklist_id} to {description}.
Set the CTI query on blocklist {blocklist_id} to {from_cti_query}.
DELETE /blocklists/{blocklist_id} Delete a blocklist · Delete Blocklist #
Ask an LLM
“How do I delete a blocklist I no longer use?”
“Can I force-delete a blocklist that others subscribe to?”
Tell an agent destructive · confirm first
Delete blocklist {blocklist_id}.
Force delete blocklist {blocklist_id} with force {force}.
POST /blocklists/{blocklist_id}/upload Replace a blocklist's content · Upload Blocklist Content #
Ask an LLM
“How do I upload a new IP list to a blocklist?”
“Can I ignore invalid IPs when uploading a blocklist?”
Tell an agent
Upload {file} as the content of blocklist {blocklist_id}.
Replace blocklist {blocklist_id} content with {file}, ignoring invalid IPs.
POST /blocklists/{blocklist_id}/ips Add IPs to a blocklist · Add Ips To Blocklist #
Ask an LLM
“How do I add IPs to an existing blocklist?”
“Can I set an expiration when adding IPs to a blocklist?”
Tell an agent
Add {ips} to blocklist {blocklist_id}.
Add {ips} to blocklist {blocklist_id} with expiration {expiration}.
POST /blocklists/{blocklist_id}/ips/bulk_overwrite Replace a blocklist's content · Bulk Overwrite Blocklist Ips #
Ask an LLM
“Can I overwrite a blocklist's content entirely?”
“What happens to IPs already in the blocklist when I bulk overwrite it?”
Tell an agent
Overwrite blocklist {blocklist_id} content with {ips}.
Replace the entire content of blocklist {blocklist_id} with {ips}, expiring {expiration}.
POST /blocklists/{blocklist_id}/ips/delete Remove IPs from a blocklist · Delete Ips From Blocklist #
Ask an LLM
“How do I remove IPs from a blocklist?”
“Can I delete several IPs from a blocklist at once?”
Tell an agent destructive · confirm first
Delete {ips} from blocklist {blocklist_id}.
Remove the listed IPs from blocklist {blocklist_id}.
GET /blocklists/{blocklist_id}/download Download a blocklist's content · Download Blocklist Content #
Ask an LLM
“How do I download a blocklist as plain text?”
“Can I download a blocklist only if it changed since a date?”
Tell an agent
Download the content of blocklist {blocklist_id}.
Download blocklist {blocklist_id} if it changed since {if_modified_since}.
POST /blocklists/{blocklist_id}/subscribers Subscribe to a blocklist · Subscribe Blocklist #
Ask an LLM
“How do I subscribe my engines to a blocklist?”
“Can I choose the remediation type when subscribing to a blocklist?”
Tell an agent
Subscribe {entity_type} {ids} to blocklist {blocklist_id}.
Subscribe {entity_type} {ids} to blocklist {blocklist_id} with remediation {remediation}.
GET /blocklists/{blocklist_id}/subscribers List who subscribes to a blocklist · Get Blocklist Subscribers #
Ask an LLM
“Which organizations subscribe to my blocklist?”
“Can I see the subscribers of a blocklist within my organization?”
Tell an agent
List the subscribers of blocklist {blocklist_id}.
Show page {page} of blocklist {blocklist_id} subscribers.
DELETE /blocklists/{blocklist_id}/subscribers/{entity_id} Unsubscribe from a blocklist · Unsubscribe Blocklist #
Ask an LLM
“How do I stop my engines from using a blocklist?”
“Can I unsubscribe a single engine from a blocklist shared with my organization?”
Tell an agent destructive · confirm first
Unsubscribe {entity_id} from blocklist {blocklist_id}.
Stop {entity_id} from using blocklist {blocklist_id}.
POST /blocklists/{blocklist_id}/shares Share a blocklist with other organizations · Share Blocklist #
Ask an LLM
“How do I share a blocklist with another organization?”
“Can I give read-write access when sharing a blocklist?”
Tell an agent
Share blocklist {blocklist_id} with organizations {organizations}.
Give organizations {organizations} read-write access to blocklist {blocklist_id}.
DELETE /blocklists/{blocklist_id}/shares/{unshare_organization_id} Unshare a blocklist with an organization · Unshare Blocklist #
Ask an LLM
“How do I stop sharing a blocklist with another organization?”
“Can I force unshare a blocklist that other organizations still subscribe to?”
Tell an agent destructive · confirm first
Unshare blocklist {blocklist_id} with organization {unshare_organization_id}.
Remove my organization's share of blocklist {blocklist_id} ({unshare_organization_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-blocklists-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-blocklists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Service Blocklists 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 (44 KB total) ---
# Full source: https://artifacts.apis.io/crowdsec/openapi/crowdsec-blocklists-api-openapi.yml