You can get your domain license information using this API.
| URL | {{BASE_URL}}/auth/v1/get_domain_infos |
| Method | GET |
| Parameters | |
| Sample Request JSON | |
| Sample Response JSON |
{ "status": "ok", "domain": { "id": "d7e19951-6990-402e-a1f3-357bd375ee61", "country": "BELGIUM", "city": "BRAINE-LE-COMTE", "factory": "SOFTWARE", "department": "ENGINEERING", "license_email": "guy@itraceit.io", "idsubscription": 0, "domain_type_id": 1, "domain_type": "Diamond sector", "sector": "SOFTWARE", "themeid": "669680ab-8999-42d4-a202-79daa8faa931", "themecode": "WORKFLOW-CLASSIC" } } |
| Response Codes | 200: ok |
You can use the API to set additional parameters to your domain as key-value pairs.
| URL | {{BASE_URL}}/domain/v1/set_domain_parameter/{parameterkey}/{parametervalue} |
| Method | GET |
| Parameters |
parameterkey, string parametervalue, string |
| Sample Request JSON | |
| Sample Response JSON |
{ "status": "ok", "isvalid": true, "parameter": "KNOWN_ORIGIN_ENABLED", "parameter_value": "true" } |
| Response Codes | 200: ok |
You can use the API to set additional parameters to your domain as a POST request.
| URL | {{BASE_URL}}/domain/v2/set_domain_parameter |
| Method | POST |
| Parameters |
sparameter, string sparameter_value, string |
| Sample Request JSON |
{ "sparameter":"KNOWN_ORIGIN_ENABLED", "sparameter_value":"true" } |
| Sample Response JSON |
{ "status": "ok", "isvalid": true, "parameter": "KNOWN_ORIGIN_ENABLED", "parameter_value": "true" } |
| Response Codes | 200: ok |
You can retrieve the value of a domain parameter using its key through this API.
| URL | {{BASE_URL}}/domain/v1/get_domain_parameter/{parameterkey} |
| Method | GET |
| Parameters | parameterkey, string |
| Sample Request JSON | |
| Sample Response JSON |
{ "status": "ok", "isvalid": true, "parameter_value": "default" } |
| Response Codes | 200: ok |
If you have access to multiple domains, you can use this API to switch between them.
| URL | {{BASE_URL}}/auth/v1/switch_domain |
| Method | POST |
| Parameters |
sdomainid, string refresh_token, string |
| Sample Request JSON |
{ "sdomainid":"f5f528ef-4a3f-4f5b-9429-774d8133bac1', "refresh_token": “refresh_token” } |
| Sample Response JSON |
{ "status": "ok", "isvalid": true, "validity": "2023-02-24T07:35:21.050", "refresh_token": "6989330f-b441-46f2-af39-19f8c1fe0656", "access_token": "access_token" } |
| Response Codes |
200: ok E153: Rejected (Wrong sdomainid) |