Api
API Overview General information about the CrowdSec Manager API
CrowdSec Manager exposes a RESTful API for all its operations. The frontend communicates with the backend exclusively through this API.
All API endpoints are prefixed with /api.
Example: http://localhost:8080/api/health/stack
The API is protected by network configuration. Access is restricted to the local network or via the exposed port/reverse proxy. No token-based authentication is required.
All responses use the same JSON envelope.
{
"success" : true ,
"data" : { ... }
}
{
"success" : true ,
"message" : "Operation completed"
}
{
"success" : false ,
"error" : "Error description"
}
Method Path Description GET /api/health/stackStack service health GET /api/health/crowdsecCrowdSec health GET /api/health/completeFull diagnostics
Method Path Description GET /api/ip/publicGet public IP GET /api/ip/blocked/:ipCheck if IP is blocked GET /api/ip/security/:ipIP security lookup POST /api/ip/unbanUnban an IP
Method Path Description GET /api/whitelist/viewView current whitelist POST /api/whitelist/currentWhitelist current IP POST /api/whitelist/manualWhitelist manual IP POST /api/whitelist/cidrWhitelist CIDR range POST /api/whitelist/crowdsecAdd to CrowdSec whitelist POST /api/whitelist/traefikAdd to Traefik whitelist POST /api/whitelist/comprehensiveSetup comprehensive whitelist DELETE /api/whitelist/removeRemove from whitelist
Method Path Description GET /api/allowlist/listList allowlists POST /api/allowlist/createCreate allowlist GET /api/allowlist/inspect/:nameInspect allowlist POST /api/allowlist/addAdd entries POST /api/allowlist/removeRemove entries POST /api/allowlist/importImport entries DELETE /api/allowlist/:nameDelete allowlist
Method Path Description POST /api/scenarios/setupSetup custom scenarios GET /api/scenarios/listList scenarios GET /api/scenarios/filesGet scenario files DELETE /api/scenarios/fileDelete scenario file
Method Path Description POST /api/captcha/setupSetup captcha GET /api/captcha/statusGet captcha status GET /api/captcha/detectDetect captcha config POST /api/captcha/configSave captcha config POST /api/captcha/applyApply captcha config
Method Path Description GET /api/logs/crowdsecCrowdSec logs GET /api/logs/traefikTraefik logs GET /api/logs/traefik/advancedAdvanced Traefik log analysis GET /api/logs/:serviceService logs GET /api/logs/stream/:serviceStream logs (WebSocket) GET /api/logs/structured/:serviceStructured log view
Method Path Description GET /api/backup/listList backups POST /api/backup/createCreate backup POST /api/backup/restoreRestore backup DELETE /api/backup/:idDelete backup POST /api/backup/cleanupCleanup old backups GET /api/backup/latestGet latest backup
Method Path Description GET /api/update/checkCheck for updates POST /api/update/with-crowdsecUpdate with CrowdSec restart POST /api/update/without-crowdsecUpdate without CrowdSec restart
Method Path Description GET /api/services/verifyVerify services POST /api/services/shutdownGraceful shutdown POST /api/services/actionService action
Method Path Description GET /api/crowdsec/bouncersList bouncers POST /api/crowdsec/bouncersAdd bouncer DELETE /api/crowdsec/bouncers/:nameDelete bouncer GET /api/crowdsec/decisionsList decisions POST /api/crowdsec/decisionsAdd decision DELETE /api/crowdsec/decisionsDelete decision POST /api/crowdsec/decisions/importImport decisions GET /api/crowdsec/decisions/analysisDecision analysis GET /api/crowdsec/decisions/historyDecision history GET /api/crowdsec/decisions/repeated-offendersRepeated offenders POST /api/crowdsec/decisions/history/reapplyReapply single decision POST /api/crowdsec/decisions/history/bulk-reapplyBulk reapply decisions GET /api/crowdsec/history/statsHistory statistics GET /api/crowdsec/history/activityHistory activity GET /api/crowdsec/history/configHistory config PUT /api/crowdsec/history/configUpdate history config GET /api/crowdsec/alerts/analysisAlert analysis GET /api/crowdsec/alerts/historyAlert history GET /api/crowdsec/alerts/:idInspect alert DELETE /api/crowdsec/alerts/:idDelete alert GET /api/crowdsec/metricsCrowdSec metrics POST /api/crowdsec/enrollEnroll in CrowdSec console POST /api/crowdsec/enroll/finalizeFinalize enrollment GET /api/crowdsec/enroll/preferencesGet enrollment preferences PUT /api/crowdsec/enroll/preferencesUpdate enrollment preferences GET /api/crowdsec/statusEnrollment status
Method Path Description GET /api/traefik/configGet Traefik config GET /api/traefik/config-pathGet config path POST /api/traefik/config-pathSet config path
Method Path Description GET /api/config/settingsGet settings PUT /api/config/settingsUpdate settings GET /api/config/files/:container/:fileTypeGet container file content
Method Path Description GET /api/config/validation/validateValidate configs GET /api/config/validation/snapshotsList snapshots POST /api/config/validation/snapshotCreate snapshot POST /api/config/validation/restore/:typeRestore config POST /api/config/validation/accept/:typeAccept current config DELETE /api/config/validation/snapshot/:typeDelete snapshot
Method Path Description GET /api/notifications/discordGet Discord config POST /api/notifications/discordUpdate Discord config GET /api/notifications/discord/previewPreview Discord config GET /api/notifications/discord/detectDetect Discord config POST /api/notifications/discord/configSave Discord config POST /api/notifications/discord/applyApply Discord config
Method Path Description POST /api/cron/setupSetup cron job GET /api/cron/listList cron jobs DELETE /api/cron/:idDelete cron job
Method Path Description GET /api/profilesGet profiles POST /api/profilesUpdate profiles
Method Path Description GET /api/hub/listList all hub items POST /api/hub/upgradeUpgrade all hub items GET /api/hub/categoriesList categories GET /api/hub/:category/itemsList items by category POST /api/hub/:category/installInstall hub item POST /api/hub/:category/removeRemove hub item POST /api/hub/:category/manual-applyManual apply hub YAML GET /api/hub/preferencesGet hub preferences GET /api/hub/preferences/:categoryGet preference by category PUT /api/hub/preferences/:categoryUpdate preference GET /api/hub/historyHub operation history GET /api/hub/history/:idHub operation by ID
Method Path Description GET /api/simulation/statusGet simulation status POST /api/simulation/toggleToggle simulation mode
Method Path Description GET /api/hosts/listList Docker hosts
Method Path Description GET /api/terminal/:containerWebSocket terminal session
Method Path Description GET /api/events/wsWebSocket event stream GET /api/events/sseSSE event stream