To give brands the option to call their functions from outside of LivePerson's platform, we provide an API for External Invocation. With this API they can call their functions externally, secured by OAuth 2.0.
Here is a short OAuth 2.0 introduction video: link
OAuth 2.0 offers several grant types for different use cases. LivePerson Functions supports the following two grant types:
- Client Credentials: This is the preferred way to authorize for machine-to-machine communication. Choose this option if you want to call functions from an external system such as a cron job (see here for more infomation on Client Credentials).
- Authorization Code: This is a redirect based flow. Use this grant type if you want to call Functions on behalf of a LiveEngage user such as an Agent or Administrator(see here for more infomation on Authorization Code).