# Permission Delegation

## Why Enable It?

By delegating permissions, Upland can sign transactions on behalf of third-party developers, eliminating the need to sign each transaction to an escrow container manually.

## Available Transactions

* Transferring UPX to an escrow container
* Transferring NFTs to an escrow container
* The transactions above must be initiated from the third-party developer's account to a container created by one of their applications.

## Activation/Deactivation Process

To activate or deactivate the delegation feature, contact Upland and request to become an alpha tester. Upon approval, you will receive a message in your Upland account through the Message Center, where you can authorize the delegation.

## Utilizing the New API Structure After Activation

When delegation is enabled, the following endpoint will be enabled for your account.\
<https://api.prod.upland.me/developers-api/containers/:containerId/join\\>
\
This new endpoint has a different structure than the existing /join.

```
Parameters: Container ID
Authorization: App ID, Secret Key
```

```
Body:
{
    "containerId": 1,
    "upxAmount": 10000,
    "sparkAmount": 0,
    "assets": []
}
```

The third-party developer does not need to provide the EOSid, as this endpoint only transfers assets from the developer's account to their containers.

## Use Cases

* An app that maintains a balance on its account for later distribution to other players.
* An app that acquires NFTs to award as prizes to Upland players.
* An app that aims to sell Upland NFTs to Upland players.
* Other unmentioned possibilities.

<br>


---

# 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://docs.developers.upland.me/upland-developers/application-management/permission-delegation.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.
