Standalone solutions only
Seamless authorization is available only for standalone B2COPY solutions.
Seamless authorization lets a client move from your CRM into the B2COPY Web UI without re-entering credentials, by returning a Web UI URL that embeds an authorization token.
Step 1 — Get the Secret Key and Redirect URL
- In the Back Office, go to System → Settings.
- Open the Side Auth section and copy the Secret Key and Redirect URL values.
Keep the Secret Key set
If the Secret Key field is empty, set a value and save it. Editing and saving other fields on the Settings page can reset it — re-enter it if that happens.
Step 2 — Get the authorization URL
POST [host]/api/v1/standalone/auth/getAuthUrl| Name | Type | Required | Description |
|---|---|---|---|
| account_id | string | Yes | MT login of the client account. |
| secret_key | string | Yes | The Secret Key copied from the Back Office. |
| investment_platform_id | string | Yes | The investment platform instance (1 for a single MT server). |
curl --location --request POST 'https://host.name/api/v1/standalone/auth/getAuthUrl' \
--data-raw '{
"account_id": "77632289",
"secret_key": "Password1234!",
"investment_platform_id": "1"
}'Response
The Web UI URL with an embedded token, in the form https://{domain_name}/{token}.
{
"status": 200,
"data": {
"url": "https://my4.b2copy-demo.com/f5f9470def7b9b9b96b2427a6ebbd8c2"
}
}