API reference

GET /public/v1/support/widget.css

GET /public/v1/support/widget.css serves the support-widget stylesheet — the styles that pair with widget.js to render the Credicorp chat widget. It is a static asset served with a CSS content type and is safe to cache aggressively.

2 min read

stylesheetPairs with widget.js
staticCache aggressively
CSStext/css content type

What it does

The stylesheet endpoint returns the widget’s CSS. Load it in the document head alongside the script. Keeping the CSS separate lets the browser cache it independently and lets you preload it early.

Embed

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

Caching

Like the script, this is a static asset. Cache it at the CDN and browser; it changes only when the widget’s look changes.

Frequently asked questions

Do I need both the CSS and the JS?

Yes — the script renders the widget and the stylesheet makes it look right. Load both: the CSS in the head, the script with defer.

Can I override the widget styles?

You can layer your own CSS after this stylesheet, but keep changes light so widget updates do not clash with your overrides.

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.