Skip to main content

Service API: quotas

info
  • We're assuming your API key is set in the environment variable $KEY with the necessary permissions.
  • The quotas endpoint requires a key with quotas scope and read access, otherwise the API returns 403 Forbidden.

A quota caps how many times your Organization can perform a given operation, such as creating blocklists or integrations, or querying the CTI. Limits depend on your plan; this endpoint is read-only and reports each limit together with its current usage.

Get Quotasโ€‹

Get the quotas of your Organization and their current usage

SH
curl -i -H "x-api-key: ${KEY}" -X GET -H "Content-Type: application/json" \
https://admin.api.crowdsec.net/v1/quotas

The response has two parts:

  • items holds one entry per operation, with its usage, its limit and whether it is unlimited. An unlimited quota has a limit of -1.
  • cti summarizes the CTI IP lookups of the current period: quota_type is free_quota or paid_quota, and limit is absent when the quota is unlimited.
operationCounts
blocklists_createblocklists created by your Organization
allowlists_createallowlists created by your Organization
blocklists_subscriptions_freesubscriptions to free blocklists
blocklists_subscriptions_premiumsubscriptions to premium blocklists
blocklists_subscriptions_platinumsubscriptions to platinum blocklists
keys_createAPI keys created
integrations_createintegrations created
cves_subscriptionsCVE subscriptions
fingerprints_subscriptionsfingerprint subscriptions
vendors_subscriptionsvendor subscriptions
aia_ips_observedIPs monitored by your Am I Attacking configurations
cti_read_ipCTI IP lookups in the current period
answer on success
JSON
{
"items": [
{
"operation": "blocklists_create",
"usage": 0,
"limit": 0,
"unlimited": false
},
{
"operation": "cti_read_ip",
"usage": 0,
"limit": 0,
"unlimited": false
}
],
"cti": {
"quota_type": "free_quota",
"limit": 0,
"unlimited": false,
"usage": 0
}
}
CrowdSec Docs
We use cookies

This site uses cookies to help us improve your experience. You can accept or decline below.