Upload custom UI assets

POST /api/sign-in-exp/default/custom-ui-assets

Upload a zip file containing custom web assets such as HTML, CSS, and JavaScript files, then replace the default sign-in experience with the custom UI assets.

multipart/form-data

Body

  • The zip file containing custom web assets such as HTML, CSS, and JavaScript files.

Responses

  • 200 application/json

    An JSON object containing the custom UI assets ID.

    Hide response attribute Show response attribute object
  • Bad request. The request body is invalid.

  • Unauthorized

  • Forbidden

  • Failed to unzip or upload the custom UI assets to storage provider.

POST /api/sign-in-exp/default/custom-ui-assets
curl \
 -X POST https://[tenant_id].logto.app/api/sign-in-exp/default/custom-ui-assets \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: multipart/form-data"
Response examples (200)
{
  "customUiAssetId": "string"
}