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

Start free trial

Get Consent Banner

consent/get-banner reads a single banner configuration by ID.

Name, active, default. Small on purpose.

At a glance

Abilityconsent/get-banner
ToolsetCookieYes — toolset/cookieyes
GroupCookieYes › The Banner
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

The banner record itself carries very little. Almost everything a visitor sees comes from elsewhere — the categories, the declared cookies, the language list, the settings — and the banner is the configuration that decides how those are put to a visitor under a particular law.

So this is the call that answers “is this the one that is live”, and not much else. For what visitors are actually receiving right now, consent/get-banner-status reads the built output rather than the configuration.

Input

NameTypeRequiredWhat it is
idintegerYesBanner ID, from consent/list-banners.

What comes back

NameTypeWhat it is
bannerobjectID, name, active flag and default flag.
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:

Is banner 2 the active one?

It resolves to one call:

{
  "ability": "consent/get-banner",
  "parameters": {
    "id": 2
  }
}

Worth knowing

  • Configuration, not output. Use consent/get-banner-status for what is being served.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading