API Reference
A simple API to manage access to a white-label study bundle
This API is only available for API key holders. An API key will be shared as part of the white-label deal. This API is documented here as well.

Endpoint

The exact white-label API endpoint from api.simplesystemtrading.com will be shared with the client when an agreement is made.

Authorization

ApiKeyAuth (apiKey)
An API key is needed to authorize requests. An API key will be shared as part of the white-label deal. The API key will need to be placed in the header to authenticate all the requests.
Name: x-api-key
In: header
Value: somerandomapikeythatfrederikwillprovide

Available white-label API Calls

get
/name
get the study bundle name under management for this api key
Getting the study bundle name that is under management for the api key that is used. This bundle name is also visible for SC accounts with access inside the SC custom study list. This name can be used to provide instructions to SC users on where they can find the study bundle after they are in the access list.
get
/licenses
get the total number of licenses under management
Getting the total number of licenses under management. This is the number of licenses that can be managed within the white-label deal. If you want to raise this number get in touch with Frederik.
get
/usage
get the number of licenses used
Getting the number of licenses used. This is the number of SC accounts that are currently assigned access to the white-label study bundle.
get
/available
get the number of licenses available
Getting the number of licenses that are currently available within the agreed white-label deal. This is the number of SC accounts that still can be added to the access list.
get
/scaccounts
get all current SC accounts on access list
Get a full list of SC accounts that are currently on the access list for the white-label study bundle. The output will be a JSON array filled with the current SC accounts on the access list and a count value of the total number of SC accounts on the list.
post
/add
Add a SC user to the access list
Add a SC user to the access list of the white-label study bundle. The SC account provided in the POST body will be used in an attempt to add it to the access list. The POST body needs to be JSON.
1
{
2
"sc_account": "ac12345"
3
}
Copied!
If this call was successful the SC user will need to restart SC to automatically download the study bundle file. The SC user can make use of the study for as long as the user is on the access list. If this attempt was unsuccessful the reason will be displayed in the error message.
The SC user can find their SC account name by going to SC menu: Help >> About. The name will be displayed in the pop-up window. The full displayed name should be used, the name is not case-sensitive.
post
/update
Update a SC user on the access list
Update a SC user on the access list of the white-label study bundle that is under management for the used api-key. This call can only be used when an user is already present on the access list. The POST body needs to be JSON.
1
{
2
"sc_account": "ac12345",
3
"old_sc_account": "ac12345"
4
}
Copied!
A normal use case would be when a user has changed SC account and needs access the the study bundle updated. In that case the update call can be used. Alternatively one could also call remove for the old SC account and add for the new account. The result of this update call (success or error) will be displayed in the output message.
post
/remove
Remove a SC user from the access list
Remove a SC user from the access list of the white-label study bundle that is under management for the used api key. The POST body needs to be JSON.
1
{
2
"sc_account": "ac12345"
3
}
Copied!
Removing a SC account from the access list will result in no longer having access to the custom study bundle. The study file will still be present for the SC user, but can no longer be used. If the study is used there will be an error message in the SC message log to explain the procedure to get access. The result of this remove call (success or error) will be displayed in the output message. This api does not keep track of SC accounts that were previously on the access list.