> For the complete documentation index, see [llms.txt](https://support.backpack.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.backpack.exchange/support-docs/es/wallet/documentacion-tecnica/deeplinks/provider-methods/disconnect.md).

# Disconnect

After the initial [Connect](/support-docs/es/wallet/documentacion-tecnica/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](/support-docs/es/wallet/documentacion-tecnica/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](/support-docs/es/wallet/documentacion-tecnica/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](/support-docs/es/wallet/documentacion-tecnica/deeplinks/limitations.md#errors) for a complete list of possible error codes.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://support.backpack.exchange/support-docs/es/wallet/documentacion-tecnica/deeplinks/provider-methods/disconnect.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
