Umbraco HTTP Client
Learn more about working with the Umbraco HTTP Client.
import { umbHttpClient } from '@umbraco-cms/backoffice/http-client';
const { data } = await umbHttpClient.get({
url: '/umbraco/myextension/api/v1/endpoint',
security: [{ scheme: 'bearer', type: 'http' }],
});
if (data) {
console.log('Data:', data);
}Using the Umbraco HTTP Client
Executing RequestsGenerating a Custom Client
Custom Generated ClientFurther reading
Last updated
Was this helpful?