Skip to content

API

The TestCLIX API allows you to integrate external systems with your workspace. Access to the API requires a valid API Key.

All API requests must include your API key in the request header:

x-api-key: YOUR_API_KEY
Terminal window
curl https://api.testclix.com/v1/api/status -H "x-api-key: {YOUR_API_KEY}"

If the key is missing the API returns:

{
"message": "Unauthorized"
}

If the key is invalid the API returns:

{
"message": "User is not authorized to access this resource with an explicit deny in an identity-based policy"
}

To manage your API key:

  1. Open Settings from the left sidebar.

  2. Navigate to Your API Key.

When accessing the API section for the first time, no key is available.

  • Message: “No API Key has been generated”
  • Button: Generate API Key
  1. Click the Generate API Key button.

  2. The system automatically creates a unique API key for your workspace.

  3. The API key and API URL are displayed.

  4. Copy and securely store the API key. Generate API key view

Available endpoints.

MethodEndpointDescriptionParamsCodes
GET/v1/api/statusGet test statusNone200
GET/v1/api/status/detailsGet test detailsNone200
GET/v1/api/status/{test_id}Get test status by IDtest_id(string)200, 404
POST/v1/api/execute/{test_id}Execute test by IDtest_id(string)200, 403, 404

GET /v1/api/status

Returns overall test status.

Terminal window
curl https://api.testclix.com/v1/api/status -H "x-api-key: {YOUR_API_KEY}"
{
"status": "pass"
}

GET /v1/api/status/details

Returns detailed test results.

Terminal window
curl https://api.testclix.com/v1/api/status/details -H "x-api-key: {YOUR_API_KEY}"
{
"status": "pass",
"tests": {
"error": {
"count": 0,
"items": []
}
}
}

GET /v1/api/status/{test_id}

Returns status of a specific test.

NameTypeDescription
test_idstringTest ID
Terminal window
curl https://api.testclix.com/v1/api/status/{test_id} -H "x-api-key: {YOUR_API_KEY"}
{
"test_id": "01GDZYY7EMI1&07GD8QUVVINJDI",
"status": "not recorded"
}
{
"message": "Scenario doesn't exists"
}

POST /v1/api/execute/{test_id}

Triggers execution of a Website Scenario, Website Availability, or Website Vitals test. The limit of executions is defined by your Test Execution package.

NameTypeDescription
test_idstringTest ID
Terminal window
curl -X POST https://api.testclix.com/v1/api/execute/{test_id} -H "x-api-key: {YOUR_API_KEY"}
{
"test_id": "01GDZYY7EMI1&07GD8QUVVINJDI",
"status": "queued"
}
{
"message": "Execution limit exceeded"
}
{
"message": "Scenario doesn't exists"
}
CodeMeaning
200Success
403Execution limit exceeded
404Test doesn’t exist