> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get Current App Connection

> Get the current App Connection identifier

## `webflow.getCurrentAppConnection()`

Get the current App Connection identifier, if any.

Use this method on initial load of an App to determine whether the App was launched via an "App Connection" button in the Designer. The App can then choose to show a different experience based on the information received.

### Syntax

```typescript
webflow.getCurrentAppConnection(): Promise<null | string>
```

### Returns

**Promise\<`string` | `null`>**

If the App was launched from an App connection, this method will return a Promise that resolves to the string identifier for the App Connection. Otherwise, it returns a Promise resolving to `null`.

### Example

*This example is for an App written in React. This code would be placed on the index page of the App*

```typescript
React.useEffect(() => {
  async function onLoad() {
    /*
    Await the current App Connection information. If the App was launched via a specific App Connection button, this will return a string with the connection name; otherwise, it returns null.
    */
    const appConnection = await webflow.getCurrentAppConnection();

    /*
    Check if the App Connection matches 'myAwesomeAppManageFormElement'.
    If it does, the App will redirect to the '/editForms' page to provide a tailored experience based on the App Connection.
    */
    if (appConnection === "myAwesomeAppManageFormElement") {
      redirectToPage("/editForms");
    }
  }

  // Call the onLoad function when the component mounts.
  onLoad();
}, []);
```

[Try this example](https://webflow.com/oauth/authorize?response_type=code\&client_id=19511de1ec410f9228d8dcbc9420e67916dea80d86d18f0c9a533eb475ea0f62)

### Designer Ability

| Designer Ability    | Locale | Branch | Workflow | Sitemode |
| :------------------ | :----- | :----- | :------- | :------- |
| **canAccessCanvas** | Any    | Any    | Any      | Any      |