# Disconnect

After the initial [Connect](/wallet/technical-docs/deeplinks/provider-methods/connect.md) event, an app may disconnect from Backpack at any time. When Backpack is disconnected, it will reject all signature requests until a new connection is established.

## Base URL

```
https://backpack.app/ul/v1/disconnect
```

## Query String Parameters

* `dapp_encryption_public_key` **(required)**: The app's original encryption public key for an existing Connect session.
* `nonce` **(required)**: A base58-encoded nonce is used to encrypt the request.
* `redirect_link` **(required)**: Backpack should redirect the user to this URI after completion. For more information, please see [Specifying Redirects](/wallet/technical-docs/deeplinks/specifying-redirects.md). URL-encoded.
* `payload` **(required)**: An encrypted JSON string with the following fields:

  Copy

  ```
  {
      "session": "...", // token received from the connect method
  }
  ```

  * `session` **(required)**: The session token received from the Connect method. Please see [Handling Sessions](/wallet/technical-docs/deeplinks/handling-sessions.md) for more details.

## Returns

### Approve

No query params are returned.

### Reject

An `errorCode` and `errorMessage` as query parameters.

Please see [Errors](/wallet/technical-docs/deeplinks/limitations.md#errors) for a complete list of possible error codes.

```
{
  "errorCode": "...",
  "errorMessage": "..."
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.backpack.exchange/wallet/technical-docs/deeplinks/provider-methods/disconnect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
