REST endpoints for Admin UI SDK

Adobe Commerce provides several REST endpoints that interact with the Admin UI SDK processes. These endpoints require an admin token on PaaS systems or a token using Adobe's Identity Management System (IMS) on SaaS systems.

Mass actions without iFrames

When a mass action displayIframe parameter is set to false, you must account for additional factors.

Application failures:

Connection interruption failures:

By default, Commerce waits 10 seconds for a response, though the extension point can customize this value. When the timeout is reached, Commerce:

Additional details through REST API:

The GET V1/adminuisdk/massaction/<requestId> endpoint returns details of the failed request when a mass action without an iFrame fails to execute.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Responses:

Example usage:

curl -X GET \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/massaction/<REQUEST_ID>'

Recommendations:

Order view button without iFrames

When an order view button displayIframe parameter is set to false, you must account for additional factors.

Application failures:

Connection interruption failures:

By default, Commerce waits 10 seconds for a response, though the extension point can customize this value. When the timeout is reached, Commerce:

Additional details through REST API:

The GET V1/adminuisdk/orderviewbutton/<requestId> endpoint returns details of the failed request when an order view button without iFrame fails to execute.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Responses:

Example usage:

curl -X GET \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/orderviewbutton/<REQUEST_ID>'

Recommendations

Permission Checks

The following endpoint lets an extension point verify whether the currently authenticated admin user is authorized for an Admin UI SDK ACL resource that the extension registered.

Check a user's permission for an ACL resource

POST /V1/adminuisdk/permission/check

Checks whether the currently authenticated admin user holds the specified Admin UI SDK ACL resource. The resource must have been registered by an extension point (for example, through a menu, mass action, or order view button registration) for this endpoint to grant it. Resources that are unregistered or unrecognized return false, the same as a genuine permission denial, so the response cannot be used to determine whether a resource ID exists.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Request body:

Field
Type
Required
Description
resource
string
Yes
The ACL resource ID to check, in the format Vendor_Module::resource_id

Example usage:

curl -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    -d '{"resource": "Acme_Promotions::manage_promotions"}' \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/permission/check'

Responses:

App Management

The following endpoints manage selected extensions stored in the Commerce database.

Save a selected extension

POST /V1/adminuisdk/extension

Saves a selected extension record to the database.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Request body:

All fields are defined in the extension object.

Field
Type
Required
Description
extension_name
string
Yes
The extension name
extension_title
string
Yes
The extension title
extension_workspace
string
Yes
The extension workspace
data-variant=info
data-slots=text
The Admin UI SDK V2 Beta version of this endpoint added the extension_url field on an experimental basis. This field has been removed.

Example usage:

curl -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    -d '{"extension": {"extension_name": "my-extension", "extension_title": "My Extension",  "extension_workspace": "production"}}' \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/extension'

Responses:

Delete a selected extension

DELETE /V1/adminuisdk/extension/<workspace_name>/<extension_name>

Deletes the specified extension from the database by workspace name and extension name.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Path parameters:

Parameter
Type
Required
Description
workspace_name
string
Yes
The workspace name
extension_name
string
Yes
The extension name

Example usage:

curl -X DELETE \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/extension/<WORKSPACE_NAME>/<EXTENSION_NAME>'

Responses:

Enable or disable the Admin UI SDK

PUT /V1/adminuisdk/config

This endpoint manages whether the Admin UI SDK is enabled. It is available for Admin UI SDK V2 only.

Headers:

Header
Value
Authorization
Bearer <Token>
Content-Type
application/json

Request body:

Field
Type
Required
Description
enableAdminUiSdk
boolean
Yes
Set to true to enable the Admin UI SDK, or false to disable it

Example usage:

curl -X PUT \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <TOKEN>" \
    -d '{"enableAdminUiSdk": true}' \
    '<ADOBE_COMMERCE_URL>/rest/V1/adminuisdk/config'

Responses: