FAQ
Frequently asked questions about building, running, and shipping widgets on the Invent platform.
Q: How do I make an OAuth connection?
A: We have a proxy service you can use. The sensitive information (secrets, tokens) is stored in our backend, and API calls are proxied from the frontend through to the end service you're trying to contact — so your widget never handles the credentials directly. To request a new OAuth configuration, contact your Invent technical contact for more information.
See Adding OAuth Authentication for how to wire it up in your widget.
Q: How do I get data from Flexmart via API?
A: Your widget comes with the Flexmart endpoint preset in its settings — it's exposed to your widget as the apiUrl prop. Read it as a prop, then use httpClient (also passed in as a platform prop) to call the API, consulting the Swagger documentation for the endpoints and data shapes you need. httpClient automatically attaches the headers required to authenticate your call, so you don't have to manage auth yourself.
See Core Features → API Integration for a worked example.