GetComplied
  • Introduction 👋
  • How to Install 🛠️
  • Configure 🖊️
  • Web SDK
    • Showing the Popup
    • Language
    • Custom Position
    • Layer
    • Animation
    • Continue Anyway
    • Auto Open
    • Inputs
    • Input Lock
    • Rights Managment
      • Right to rectification
      • Right to data portability
      • Right to data access
      • Right to erasure (right to be forgotten)
    • Data-Attributes
    • Events
    • Query String
    • Callbacks
    • Api Commands
    • Debug Console
    • Webhook
  • GetComplied UI
    • Dashboard
    • Policies
    • Cookies
    • Projects
    • Contacts
    • Incidents
    • Incidents
    • Submissions
  • CRM, CMS & ERP
    • Integrations
  • HELP // SUPPORT
    • Still need help?
Powered by GitBook
On this page

Was this helpful?

  1. Web SDK

Api Commands

Api commands are used to comunicate directly with our Api via javascript.

PreviousCallbacksNextDebug Console

Last updated 5 years ago

Was this helpful?

To use the Web SDK please the snippet first.

Api commands will only work after popup is initialized (there is a callback for when it is initialized)

Command

Description

Values

Callback data

getComplied.api('policy-consent', {Id: 0, Grant: false}, function(data){ /* callback */ })

Sets the consent of a specific policy

Id (policy id) Grant (bool)

Success (bool) Message (string)

getComplied.api('thirdparty-consent', {Id: 0, Grant: false}, function(data){ /* callback */ })

Sets the consent of a specific thirdparty

Id (thirdparty id) Grant (bool)

Success (bool) Message (string)

getComplied.api('cookies-consent', {Grant: false}, function(data){ /* callback */ })

Sets the consent of the cookies

Grant (bool)

Success (bool) Message (string)

install