Securitize Connect API
  • Securitize iD
  • General information
  • Scope of Access
  • User Interface & Landing page
  • Accessing the APIs
  • OAuth 2.0
    • Authentication
    • Access Token
    • Refresh Access Token
    • Application Configuration
  • Verification Information
  • Investor Information
    • New Investor Example
    • Individual Investor Example
    • Entity Investor Example
  • Investor Documents
  • Legal Signers
  • Verification Details
  • Wallets
  • Whitelisting
    • Whitelisting redirected URLs
Powered by GitBook
On this page

Was this helpful?

  1. Whitelisting

Whitelisting redirected URLs

In order for redirection to work, it's necessary to whitelist the URL to be redirected.

To do that, you have to add your URL into this PATCH:

curl -X PATCH "https://sec-id-api.securitize.io/v1/{domainID}" -H "accept: application/json" -H "Authorization: {secret}" -H "Content-Type: application/json" -d "{body}"P

Parameter

Description

{domainID}

Your application client id provided by Securitize

Authorization

Your application secret provided by Securitize

body

looks like below

{
"appIcon": "Icon url",
"appName": "The Name of your App or [yourdomain]",
"redirectUrls": [
"https://[yourdomain]/*"
}

Example

curl -X PATCH "https://sec-id-api.securitize.io/v1/{domainID}" -H "accept: application/json" -H "Authorization: {secret}" -H "Content-Type: application/json" -d "{body}"

where the body looks like below:

{
"appIcon": "Icon url",
"appName": "The Name of your App or [yourdomain]",
"redirectUrls": [
"https://[yourdomain]/*"
}

Python snippet to Whitelist a specific domain [yourdomain]

serviceUrl = 'https://sec-id-api.sandbox.securitize.io/v1/'
ClientID   ="STRING"
Secret     ="STRING"

body = {'appIcon':'TheIcon',
       'appName':'TheAppName',
       'redirectUrls':['yourdomain']}

response = requests.patch(
   serviceUrl + ClientID ,
   headers={'Authorization': Secret},
   data= body
)

print(response.headers)

if (response.status_code == 200):
 print("Correctly updated")
else:
 print('Error: ', response.content)

PreviousWallets

Last updated 3 years ago

Was this helpful?