Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
UI Kit components
Jira UI Kit components
UI Kit hooks
Forge bridge APIs
Jira bridge APIs
Confluence bridge APIs
Dashboard bridge APIs (EAP)
Upgrade UI Kit versions
Last updated Nov 11, 2024

requestConfluence

Previously, you’d need to define a resolver to use the requestConfluence bridge method. With the release of Forge bridge version 2.0, Custom UI and UI Kit can now use the method directly.

The requestConfluence bridge method enables Forge 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: