API reference

GET /public/v1/support/widget.js

GET /public/v1/support/widget.js serves the support-widget script — a self-contained JavaScript file you add to any page to render the Credicorp chat widget. It has no build step and no dependencies; it mounts itself and talks to POST /public/v1/support/chat for you.

2 min read

drop-inOne script tag
no depsSelf-contained
cacheableStatic asset

What it does

This endpoint returns the widget’s JavaScript with a JavaScript content type. Include it with a single <script> tag and pair it with the stylesheet; the script mounts the chat UI and wires it to the chat endpoint.

Embed

<link rel="stylesheet" href="https://hub.credicorp.co.uk/public/v1/support/widget.css">
<script src="https://hub.credicorp.co.uk/public/v1/support/widget.js" defer></script>

Caching

The script is a static asset — cache it aggressively at the CDN and in the browser. It changes only when the widget itself is updated.

Frequently asked questions

Does the widget need a bundler?

No. It is a single self-contained file with no dependencies and no build step — one script tag and one stylesheet link is the whole integration.

Where does the widget send messages?

To POST /public/v1/support/chat on the public ring. You do not have to wire that up yourself; the script does it.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.