Skip to main content
Get the public configuration for a widget.
GET /api/v1/widgets/:widgetId/config Returns the public configuration of a widget — the currencies it accepts, min/max amounts, and display settings. Used by the embedded widget to render the customer-facing payment form. This endpoint accepts either a JWT bearer token or the widget’s client secret via X-Client-Secret header.

Parameters

Path

NameTypeRequiredDescription
widgetIdstringYesThe widget ID

Request example

curl --request GET 'https://payments.bleepay.com/api/v1/widgets/wdgt_abc/config' \
  --header 'X-Client-Secret: wdgt_secret_abc123...'

Response

Response schema

FieldTypeDescription
configobject or nullWidget configuration, or null if the widget is inactive or domain-restricted
reasonstringReason why config is null (if applicable)
Config object:
FieldTypeDescription
namestringWidget display name
modestringFIXED_AMOUNT or CUSTOMER_AMOUNT
minAmountstringMinimum deposit amount
maxAmountstringMaximum deposit amount
allowedNetworksarrayAccepted blockchain networks
allowedCurrenciesarrayAccepted currencies
allowedDepositAddressesarrayAllowed destination addresses
allowedMethodsarrayAccepted payment methods
renderModestringIFRAME or POPUP
iconUrlstring or nullWidget icon URL
colorstring or nullWidget accent color
emojistring or nullWidget emoji
defaultCurrencystring or nullDefault currency
defaultCurrencyAddressstring or nullDefault currency contract address
defaultNetworkstring or nullDefault blockchain network
defaultDepositAddressstring or nullDefault deposit destination
metadataSchemaobject or nullJSON schema for custom metadata
allowAllOriginsbooleanWhether all origins are allowed
allowAllMethodsbooleanWhether all payment methods are allowed

Example response

{
  "config": {
    "name": "Checkout Widget",
    "mode": "CUSTOMER_AMOUNT",
    "minAmount": "1",
    "maxAmount": "1000",
    "allowedNetworks": ["polygon", "ethereum"],
    "allowedCurrencies": ["USDC", "EURC"],
    "allowedMethods": [],
    "renderMode": "IFRAME",
    "iconUrl": null,
    "color": null,
    "emoji": null
  }
}

Error responses

StatusCodeDescription
401unauthorizedMissing or invalid authentication
404not_foundWidget not found