GetApplicationBoxes - Algorand

Given an application ID, return all box names. No particular ordering is guaranteed. Request fails when client or server-side configured limits prevent returning all box names.

Pagination mode is enabled when any of the following parameters are provided: limit, next, prefix, include, or round. In pagination mode box values can be requested and results are returned in sorted order.

To paginate: use the next-token from a previous response as the next parameter in the following request. Pin the round parameter to the round value from the first page's response to ensure consistent results across pages. The server enforces a per-response byte limit, so fewer results than limit may be returned even when more exist; the presence of next-token is the only reliable signal that more data is available.

Endpoint

httpGET /v2/applications/{application-id}/boxes

Path Parameters

ParameterTypeRequiredDescription
application-idintegerYesAn application identifier.

Query Parameters

ParameterTypeRequiredDescription
maxintegerOptionalMax number of box names to return. If max is not set, or max == 0, returns all box-names.
limitintegerOptionalMaximum number of boxes to return per page.
nextstringOptionalA box name, in the goal app call arg form 'encoding:value', representing the earliest box name to include in results. Use the next-token from a previous respons
prefixstringOptionalA box name prefix, in the goal app call arg form 'encoding:value', to filter results by. Only boxes whose names start with this prefix will be returned.
includearrayOptionalInclude additional items in the response. Use values to include box values. Multiple values can be comma-separated.
roundintegerOptionalReturn box data from the given round. The round must be within the node's available range.

Example

bashexport ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${ALGO_ALGOD}v2/applications/REPLACE_APPLICATION-ID/boxes"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
boxesarray—
next-tokenstringUsed for pagination, when making another request provide this token with the next parameter. The next token is the box name to use as the pagination cursor, enc
roundintegerThe round for which this information is relevant.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect