# Onsite API

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


---

# Agent Instructions: 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://community.commandersact.com/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.
