About UI Kit 2
UI Kit 2 components
UI kit components
Product bridge APIs
Jira bridge APIs

requestConfluence

Previously, you'd need to define a custom UI resolver to use the requestConfluence bridge method. With the release of Forge bridge version 2.0, you no longer need to do this.

The requestConfluence bridge method enables custom UI apps to call the Confluence Cloud platform REST API as the current user.

Function signature

1
2
function requestConfluence(
  uri: string,
  options?: RequestInit,
): Promise<Response>

Arguments

Returns

Example

1
2
import { requestConfluence } from '@forge/bridge';

const response = await requestConfluence('/wiki/rest/api/content');
console.log(await response.text());

Rate this page: