CountWatch docs / API reference
Error codes
Every error code the API answers with, what it means and how to fix it.
Every error is an RFC 9457 problem with a stable code; its type links the page below.
access_denied(400): The key request was cancelled in the browser.account_id_required(400): The MCP connection reaches more than one account, and a change was sent withoutaccount_id.account_not_found(404): No account with this id is reachable here: over MCP, the connection does not reach it (not ticked at sign-in, disconnected there, or closed).account_on_hold(403): The account is on hold: counts and changes are refused, and no alert or notice is sent.account_rule_limit_reached(409): The account has the maximum number of rules set by you.alert_closed(409):expected_changeandnew_normalneed an open alert: the check accepts the new level as a new normal while the alert runs.alert_not_found(404): No alert with this id in this account; for explain, also a group alert (it has no watch to explain).already_answered(409): The nightly question was already answered; the first answer stays.approval_not_matched(403): The approval_id given to the MCP toolwebhook_urldoes not match an approved, unused approval for this connection's same call (action, metric, tags); approvals last 10 minutes.approvals_waiting(429): Ten Webhook URL approvals are waiting already.authorization_pending(400): The key request is not approved yet.body_too_large(413): The body is over 2 MB.channel_not_in_plan(403): The plan does not include this alert channel.cli_requests_daily(429): Too many key requests (countwatch init) came from this network today.destination_exists(409): The account already has a destination with this address (a Slack or webhook URL, or a PagerDuty routing key).destination_limit_reached(409): The plan's number of alert destinations is reached.destination_not_active(409): The destination is pending, paused or off, so it gets no test alert.destination_not_found(404): No destination with this id in this account.destination_off(409): The destination is off, so verify sends nothing.destinations_unavailable(503): This server keeps no encryption key, so it cannot store a new destination address (a webhook's or Slack's URL, a PagerDuty routing key): addresses are kept encrypted. Its destinations keep working.duplicate_rule(409): A rule with the same scope, direction and hours already exists, or the watch already changes or turns off that shared rule.email_destination_exists(409): The account already has an email destination (there is one owner address).email_not_tested(409): An email destination gets no test alert: a test would spend the plan's alert emails. Its address is proven already, by its confirmation link or the owner's sign-in.email_send_failed(502): The email could not be sent just now.email_unavailable(503): Alert email is not available in this environment yet (no sending domain).event_limit_reached(409): The account stores the most known events it may.event_not_found(404): No event with this id in this account, or it is over.event_started(409): This level change has started: the checks already learned from it.expired_token(400): The key request expired (10 minutes).feedback_window_closed(409): This alert ended more than 30 days ago, so its feedback is closed.forbidden(403): This API key may not do this.group_limit_reached(409): The account has 1,000 groups, the most an account holds on any plan (a bound against abuse; groups have no plan limit).group_not_found(404): No group with this id in this account.headers_unavailable(503): This server keeps no encryption key, so it cannot store a webhook's custom headers (they are kept encrypted).idempotency_key_conflict(400):Idempotency-KeyandBatch-Idare both sent and differ.idempotency_key_reused(409): ThisIdempotency-Keywas already used with a different body (kept 24 hours on ingest; as long as the event onPOST /v1/events).import_not_found(404): No import with this id in this account.import_too_large(400): The import is over its size limits (too many days across its watches).internal(500): CountWatch failed while handling the request.invalid_account(400):POST /v1/cli/approvalsnamed anaccountthat is not an account id (acc_and 32 hex digits).invalid_cursor(400): Thecursorwas not issued by this list.invalid_delivery_id(400): The Webhook URL'sidis not 1–128 visible ASCII characters.invalid_event(400): The event is not valid.invalid_grant(400): No such key request, or its key was collected already.invalid_group(400): The group is not valid.invalid_header(400): A webhook's custom header is not allowed: at most 3, each a name of up to 64 letters, digits or - _ . ! # $ % & ' * + ^| ~ and a value of up to 1,024 printable ASCII characters. Host, Content-Length, Content-Type, Transfer-Encoding, Connection, User-Agent and everywebhook-name are CountWatch's own, and Expect, Upgrade, TE, Trailer, Keep-Alive,Proxy-andCF-*cannot be sent (any letter case). A value that still starts with a header name and a colon (X-Api-Keyset toAuthorization: Bearer …`) is refused: a whole line is split only when the name is empty or the same.invalid_idempotency_key(400): TheIdempotency-Keyis not 1–255 visible ASCII characters.invalid_import(400): An import entry is not valid; nothing was imported.invalid_json(400): The body is not valid JSON.invalid_mode(400):modeis neitherexplicitnorpush.invalid_mute(400):muted_untilis not a time in the next 7 days.invalid_n(400):nis not a whole number from 1 to 1,000,000.invalid_points(400): No point in the request was valid.invalid_query(400): A query parameter is repeated or not valid.invalid_range(400):fromortois not a valid time, orfromis not beforeto.invalid_rate_rule(400): The rate rule is not valid.invalid_request(400): The body or a parameter does not match the operation's schema.invalid_routing_key(400): The PagerDuty routing key is not valid.invalid_rule(400): The rule is not valid.invalid_since(400):sinceis not a valid time.invalid_tags(400): A tag in the query string is not valid.invalid_url(400): The destination URL is not allowed.marks_full(409): The watch already keeps 20 marks of the last 12 weeks.method_not_allowed(405): This path does not take this method.metric_watch_limit_reached(409): This metric has as many watches as allowed.mode_fixed(409): The watch has had a count, so its mode (push or explicit) is fixed.new_normal_not_latest(409):realon an alert whose level was accepted as the new normal undoes that level, but a later level of the same watch was accepted on top of it.new_watch_rate_limited(429): Too many new watches were created in the last hour. A Webhook URL hit answers 429 with Retry-After; in an ingest or import answer (200 or 202) it is the reason one point or entry was rejected.no_question(409):keep_alerting, ornew_normalwith awindow, answers a nightly question (NN-2), but this alert asks none now: itspending_questionis null or was asked more than 14 days ago.not_a_change_alert(409):expected_changeandnew_normalapply to spike and drop alerts only.not_for_this_kind(400): This field does not belong to this destination kind.not_found(404): No operation has this method and path.nothing_stored(409): No watch of the import could be stored.one_email_destination(409): A group's or a watch'sdestination_idshold at most one email destination (one address per choice).owner_email_missing(409): Alert email goes only to the owner's signed-in address, and this account has none.owner_turned_off(409): The owner turned alert emails off from the link in an email; the API cannot turn them on or mail another confirmation link.point_id_limit_reached(429): The account recorded as many point ids today (UTC) as its daily cap allows; the point was not stored. A Webhook URL hit answers 429 with Retry-After (until midnight UTC); in an ingest answer it is the reason one point was rejected.range_too_long(400): The range is longer than this resolution allows.rate_limited(429): Too many requests per second.rate_rule_exists(409): The group has a rate rule of this kind for this tag value.rate_rule_limit_reached(409): The group has as many rate rules as it may hold.rate_rule_not_found(404): No rate rule with this id on this group.replay_pending(409): The watch's rules are still being updated after a recent change (a new time zone, an import or a marked day); a new time zone waits until that is done.request_limit_reached(429): The plan's monthly request limit is reached.rule_limit_reached(409): A watch has as many rules as the plan allows: its own and its group's shared ones together.rule_not_found(404): No rule with this id in this account (forreplaces: no shared rule with this id in the watch's group).store_busy(503): Your account is busy for a moment.token_limit_reached(409): The account has the maximum number of API keys.token_not_found(404): No API key with this id in this account.too_many_points(400): The request has more than 10,000 points.too_many_watches(400): The import has more than 1,000 watches.ts_unit(400): A time looks like Unix seconds.unauthorized(401): The request has no valid API key.unknown_webhook_url(404): This Webhook URL does not exist or was rotated.verification_failed(422): The endpoint did not answer 2xx with the challenge within 3 seconds.verify_code_expired(422): No code is waiting for this destination: a code works for 30 minutes, only for the last test message and the address and signing secret it was sent with.verify_code_locked(422): 5 wrong codes were sent for the last test message, so its code is locked, the right one too.verify_code_wrong(422): The code sent toPOST /v1/destinations/{destination_id}/verifydoes not match the last test message.tries_leftsays how many tries the code has left (5 in all).verify_limit_reached(429): This destination, or this account, had as many verify attempts as allowed (5 per destination per hour, 20 per account per day).watch_exists(409): This metric with these tags has a watch already;POST /v1/watchesonly makes a new one.watch_learning(409): The watch is still learning, so its rules are not chosen yet and a missed spike or drop cannot be marked.watch_limit_reached(409): The account has as many watches on as its plan allows; the point (orPOST /v1/watches) would create a new one, or turning a paused watch on would pass the limit.watch_not_found(404): No watch with this id in this account.watch_paused(409): The watch is paused, so the counts sent to it were dropped (the request still counts). A Webhook URL hit answers 200OK pausedand counts nothing; in an ingest or import answer (200 or 202) it is the reason one point or entry was rejected.webhook_url_exists(409): This metric has a Webhook URL already, and it cannot be shown again (it was made before CountWatch could show it again).webhook_url_limit_reached(409): The account has a Webhook URL for as many metrics as its watch limit.window_mismatch(409): Thewindowsent is not the one the nightly question asks about.
For agents: this page as Markdown.