# Admin Release Allocations

Trigger a claim on behalf of your stakeholders by creating admin withdraw transactions. This is the API equivalent of the "Trigger Claim" action on the Magna dashboard — the admin pays the gas fee, and tokens are released directly to stakeholder wallets.

**Note:** Only allocations that are started, funded, and have a releasable amount greater than 0 will be processed. Ineligible allocations are silently skipped.

***

#### Example request

```bash
curl -X POST https://app.magna.so/api/external/v1/allocations/admin-release \
-H 'Content-Type: application/json' \
-H 'x-magna-api-token: magna_project_api_token' \
-d '{
  "tokenId": "your_token_id",
  "allocationIds": ["allocation_id_1", "allocation_id_2"],
  "sender": "admin_wallet_address"
}'
```

* **magna\_project\_api\_token** (required) — replace with your Full Access Magna API token
* **tokenId** (required) — the token ID associated with the allocations you want to release
* **allocationIds** (required) — an array of allocation IDs to trigger the claim for (minimum 1)
* **sender** (required) — the admin wallet address that will sign the resulting transactions

***

#### Response

```json
{
  "isProcessed": true,
  "result": {
    "items": [
      {
        "transactionGroupId": "0a95df41-468f-4e9b-b5eb-08e982618ad1",
        "parameters": [
          {
            "from": "0xAdminWallet...",
            "to": "0xContract...",
            "data": "0x8612...",
            "platformFee": null,
            "transactionId": "67f987e4-70cc-4833-8935-1f3baff601a4"
          }
        ]
      }
    ],
    "total": 1
  }
}
```

* **items** — an array of transaction groups, each containing unsigned transaction parameters ready for signing
* **transactionGroupId** — the ID of the created transaction group
* **parameters** — an array of unsigned transactions within the group
  * **from** — the sender (admin) wallet address
  * **to** — the smart contract address
  * **data** — the encoded transaction data to sign
  * **platformFee** — the platform fee, if applicable (null if none)
  * **transactionId** — the Magna transaction ID, used when submitting the signed hash
* **total** — the number of transaction groups created

**Note:** If allocations span multiple contracts, multiple transaction groups will be returned. Large batches may also be split into multiple transactions within a group based on chain-specific batch size limits.

***

#### After signing

Once you have signed the transaction(s), submit the signed hash to complete the flow:

```bash
curl -X POST https://app.magna.so/api/external/v1/transactions/indexing \
-H 'Content-Type: application/json' \
-H 'x-magna-api-token: magna_project_api_token' \
-d '{
  "transactionId": "67f987e4-70cc-4833-8935-1f3baff601a4",
  "transactionHash": "0xYourSignedTransactionHash..."
}'
```

Repeat for each `transactionId` returned in the response.


---

# 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.magna.so/magna-api-documentation/allocations/admin-release-allocations.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.
