# Teamwork Graph: Calling the API asApp

**URL:** <https://community.developer.atlassian.com/t/teamwork-graph-calling-the-api-asapp/103402>\
**Category:** Forge Platform and Tools\
**Tags:** teamwork-graph\
**Created:** [October 22, 2026, 8:02am UTC](https://community.developer.atlassian.com/t/teamwork-graph-calling-the-api-asapp/103402 "2026-10-22T08:02:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janzubac](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@janzubac](https://community.developer.atlassian.com/u/janzubac)\
**Post date:** [October 22, 2026, 8:02am UTC](https://community.developer.atlassian.com/t/teamwork-graph-calling-the-api-asapp/103402/1 "2026-10-22T08:02:10Z")

</div>

Hi all,

I have a question regarding support for running teamwork graph API calls as a forge application.

In `@forge/api` 8.3.0, `requestTeamworkGraph` is declared on `asUser()` and not on `asApp()`.

The UI bridge docs explicitly states

> Calls always run as the current user - Forge apps can’t call the Teamwork Graph API as the app.

This call is not in the typings, but it seems to work at runtime:

`import api, { route } from "@forge/api";`  
`await api.asApp().requestAtlassian(route`/graphql/twg`, {`  
` method: "POST",`  
` headers: { "Content-Type": "application/json" },`  
` body: JSON.stringify({ query, variables }),`  
`});`

Does anyone know which of these is officially supported for a backend call as the app:

1. `api.asApp().requestTeamworkGraph(...)`, with the missing type fixed in `@forge/api`

2. `api.asApp().requestAtlassian(route`/graphql/twg`, ...)`, with that path documented

3. None of the above

If it is only officially supported to be run as the user, is there intention to support running it with api.asApp() in the future?

---

<div class="post-metadata">

**Author:** ![Mihai\_leanzero](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/mihai_leanzero/32/55980_2.png) [@Mihai\_leanzero](https://community.developer.atlassian.com/u/Mihai_leanzero)\
**Post date:** [October 24, 2026, 2:24pm UTC](https://community.developer.atlassian.com/t/teamwork-graph-calling-the-api-asapp/103402/2 "2026-10-24T14:24:45Z")

</div>

Hi @janzubac,

The only documented backend path is `api.asUser().requestTeamworkGraph()`, so I’d go with option 3 until staff weigh in. The [bridge page](https://developer.atlassian.com/platform/forge/apis-reference/ui-api-bridge/requestTeamworkGraph/) tip tells backend code to call `requestTeamworkGraph()` from `@forge/api` with `api.asUser()`. Your quote is the frontend sentence above it.

In 8.3.0, line 76 of [index.d.ts](https://unpkg.com/%40forge/api%408.3.0/out/index.d.ts) leaves `TeamworkGraphFetchMethods` out of `AsAppFetchMethods`, and `asApp()` in [fetch.js](https://unpkg.com/%40forge/api%408.3.0/out/api/fetch.js) has no `requestTeamworkGraph`. The 8.4.0-next.8 typing is the same.

From next.7 the wrapper also defaults `X-Query-Context` to the context ARI (changelog entry 2995cbe, [fetch.js in next.8](https://unpkg.com/%40forge/api%408.4.0-next.8/out/api/fetch.js)). A raw `requestAtlassian` call won’t send it.

Your call is the same gateway call, made as the app. If it returns real data for you, the gateway isn’t rejecting app calls on that path, but working and supported aren’t the same thing. I haven’t run it live.

The bridge page says the user “must have the Teamwork Graph permissions required by the GraphQL operation being called”. With asUser the results follow that user’s permissions, so an asApp result would probably need its own visibility checks (untested).

Support is staff’s call. [CHANGE-3448](https://developer.atlassian.com/changelog/#CHANGE-3448) is silent on asApp too. For a Marketplace app I’d treat it as unsupported, because the [limitations page](https://developer.atlassian.com/platform/teamwork-graph/limitations-and-considerations/) promises a month of notice before changes to the documented API before GA, and an undocumented path gets none.

---

<div class="post-metadata">

**Author:** ![janzubac](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@janzubac](https://community.developer.atlassian.com/u/janzubac)\
**Post date:** [October 26, 2026, 9:19am UTC](https://community.developer.atlassian.com/t/teamwork-graph-calling-the-api-asapp/103402/3 "2026-10-26T09:19:48Z")

</div>

Thank you for the detailed answer Mihai! I have reached out to Atlassian regarding the official support question so let’s see what they say regarding that.
