Internal tools
Retool
Add a REST resource and score values from inside an internal admin or review queue.
What exists today
Retool talks to any REST API through a resource. Nothing LayerCall-specific is needed, and the API key lives in the resource rather than in a component.
Setup
- 1Create a REST API resource with base URL https://www.layercall.com
- 2Add a default header X-Api-Key with your key so it is never in front-end code.
- 3Add a query POSTing to /v1/score/user with the fields from your table row.
- 4Bind the verdict to a Tag component so reviewers see allow / review / block at a glance.
Questions
Will the key be exposed to users of the app?
Not if it is set on the resource. Retool resources run server-side, so headers configured there are never shipped to the browser. Putting the key in a component's headers would expose it — do not.