> For the complete documentation index, see [llms.txt](https://doc.commandersact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.commandersact.com/features/consent-management/onsite-api.md).

# OnSite API

- [Getting Started](https://doc.commandersact.com/features/consent-management/onsite-api/getting-started.md): Overview on the Commanders Act Consent OnSite API.
- [consent.get](https://doc.commandersact.com/features/consent-management/onsite-api/consent.get.md): Method to receive Commanders Act consent and consent metadata OnSite via JavaScript.
- [consent.update](https://doc.commandersact.com/features/consent-management/onsite-api/consent.update.md): Method to update Commanders Act consent status OnSite via JavaScript.
- [consent.revoke](https://doc.commandersact.com/features/consent-management/onsite-api/consent.revoke.md): Method to revoke Commanders Act consent OnSite via JavaScript.
- [consent.onUpdate](https://doc.commandersact.com/features/consent-management/onsite-api/consent.onupdate.md): Method to subscribe to Commanders Act consent status updates OnSite via JavaScript.
- [consent.onReady](https://doc.commandersact.com/features/consent-management/onsite-api/consent.onready.md): Method to obtain Commanders Act consent when it becomes available.
- [consentBanner.show](https://doc.commandersact.com/features/consent-management/onsite-api/consentbanner.show.md): JavaScript method to display your consent banner.
- [consentBanner.hide](https://doc.commandersact.com/features/consent-management/onsite-api/consentbanner.hide.md): JavaScript method to hide your consent banner.
- [consentCenter.show](https://doc.commandersact.com/features/consent-management/onsite-api/consentcenter.show.md): JavaScript method to display your consent center (consent categories menu).
- [consentCenter.hide](https://doc.commandersact.com/features/consent-management/onsite-api/consentcenter.hide.md): JavaScript method to hide your consent center (consent categories menu).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.commandersact.com/features/consent-management/onsite-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
