API Key Authentication Using Basic Auth
To use BlazeMeter API without any dependence in a cookie or a token, be sure to pass your API Key as Basic Auth credentials. Our API key contains an ID and a Secret, e.g.:
id:secret
f817e22f1526b048799f75da:7641251982b983cfd92b5a25fa97cd3ee9e21920f21d8b14cd705831826935723f3033f0
use them as it was Basic Auth as seen below:
id->username
secret->password.
Here's is what it will look like in Postman
Here is how you will find your API key. Examples of using the API Key can be seen in any API request example in Curl and Python;
See cURL example below:
curl -X POST https://a.blazemeter.com:443/api/v4/tests/testID/start -H "Content-Type: application/json" --user 'f817e22f1526b048799f75da:7641251982b983cfd92b5a25fa97cd3ee9e21920f21d8b14cd705831826935723f3033f0'
Cookie Authentication
Cookie authentication is the basic authentication method with Blazemeter. Authentication cookies are commonly used by web servers to know whether the user is logged in or not, and which account they are logged in with. When you log in to your Blazemeter account, a cookie will be generated exclusively for your session. When Blazemeter recognizes a valid session key in a subsequent request, it will authorize the user according to this session key without requesting the password again.
0 Comments