30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Consent Category

consent/get-category reads one consent category and the cookies declared under it, in a single call.

It is the audit view: the choice a visitor is offered, next to what accepting it actually permits.

At a glance

Abilityconsent/get-category
ToolsetCookieYes — toolset/cookieyes
GroupCookieYes › Consent Categories
RequiresCookieYes, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Reading a category on its own tells you what the banner says. Reading it with its cookies tells you what the banner means, and those come apart more often than you would think — an analytics category whose only declared cookie is a session identifier, a marketing category with nothing in it.

The category’s name and description come back keyed by language, so missing translations are visible here too.

The strictly necessary flag is read-only everywhere in this suite. It is the flag that decides whether a category loads before any consent is given, and changing it turns a real choice into a non-choice — a decision that belongs to a person on the settings screen.

Input

NameTypeRequiredWhat it is
idintegerYesCategory ID, from consent/list-categories.

What comes back

NameTypeWhat it is
categoryobjectID, name and description keyed by language, strictly-necessary flag, visibility and priority.
cookiesarrayThe cookies declared under this category.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What is in our analytics consent category?

It resolves to one call:

{
  "ability": "consent/get-category",
  "parameters": {
    "id": 3
  }
}

Worth knowing

  • The strictly necessary flag is readable here and not writable anywhere in this suite.
  • An empty category is a choice about nothing.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading