Get current domains list

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Use this method to retrieve the current list of domains allowed to host the WebSDK for your account, as an API alternative to viewing the Domains to host WebSDK editor in the Dashboard.

See WebSDK settings for background on this allowlist and what it is used for.

Required permissions

To use this method, your app token must have the Manage client's settings permission.

Use case

Use this method to check which domains are currently allowed to host the WebSDK before deciding what to add, remove, or replace — for example, as a pre-check step in an automated deployment pipeline.

📘

Notes

  • This method is available to Enterprise clients only. Self-service (SS) clients receive a 403 upon this call.
  • The domains list can never be emptied entirely, so this method always returns at least one domain.
  • Entries can be exact domains or third-level-and-deeper wildcards (for example, *.shop.acme.com).
  • All four WebSDK domains methods share a combined rate limit of 60 requests per 60 seconds.

Request example

curl -X GET
     'https://api.sumsub.com/resources/api/websdkDomains' \
     -H 'X-App-Token: <your-app-token>' \
     -H 'X-App-Access-Sig: <your-signature>' \
     -H 'X-App-Access-Ts: <unix-timestamp>'

Response explained

The response is a JSON object with the current list of domains allowed to host the WebSDK.

FieldTypeDescription
domainsArray of stringsCurrent list of domains (and/or wildcards) allowed to host the WebSDK.

Response examples

If the request is successfully sent and processed, you will get a response like the one below.

{
  "domains": [
    "example.com",
    "app.example.com"
  ]
}

If the request fails, you will receive an HTTP response containing an error code along with a message explaining the error. For example, when called by a self-service client:

{
  "description": "This method is not available for self-service clients",
  "code": 403,
  "correlationId": "b628a7fbdf4fa487b26406e79e76f3f7"
}

Response codes

StatusDescription
200Returns the current domains list — see Response examples.
403Caller is a self-service client, or the app token lacks the Manage client's settings permission.
Response
200
Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!