Query Parameter | Description |
ak | This is your Public-API-Key, which Mettl uses to identify your account. |
ts | This is the current UNIX or Epoch Timestamp (the number of seconds between 1970-01-01 00:00:00 and current UTC Time). Any current generated Timestamp will be valid for 24 hours only. |
asgn | This is a unique Signature which has to be generated for each API request . The Signature is generated by creating a String-to-Sign and hashing it with your Private-API-Key using the HMAC-SHA256 (for version v2 and v3) or HMAC-SHA1 (for v1) hashing algorithm with Base-64 and URL encoding. Read more about the above Signature Generation Process in API Authentication and Signature Generation. |
wl | This is a JSON string containing the details the colors to be used for white labeling along with custom test URL of your account. The format for the JSON can found below. |
Query Parameter | Description |
sn | The list of support numbers you want to update to your account. You can add up to 2 support numbers in the given JSON format. eg. ["+1-650-924-9221" , "+91-82878-0340"] |
Query Parameter | Description |
fav | This is the favicon icon or logo which appears in the browser tab. You can add an image file with the following properties-
|
cov | This is the cover image which appears in the background before the test starts. You can add an image file with the following properties-
|
Property | Description |
headerBackgroundColor | Background color of the header in your tests. This value is a string and accepts a valid Hex color code without the # symbol. |
headerFontColor | Font color of the header in your tests. This value is a string and accepts a valid Hex color code without the # symbol. |
buttonColor | Background color of the buttons in your tests. This value is a string and accepts a valid Hex color code without the # symbol. |
buttonFontColor | Font color of the buttons in your tests. This value is a string and accepts a valid Hex color code without the # symbol. |
customTestUrl | Custom string following the URL "https://tests.mettl.com/" for accessing the tests in your account. This value is a string. |