Testiny CLI – "Invalid API key" Error

Hi everyone,

I’m trying to import automated test results into Testiny using the testiny-importer-win.exe (version 1.26.0), but I consistently receive the following error:
Import error: The provided API key or URL is not valid: Invalid API key

What I’ve Tried:

I copied the API key directly from the Testiny web interface (under my user profile).
I confirmed the API key is correct by successfully making a request in Postman (e.g., POST /api/v1/automation works fine).

  • I tried both ways of providing credentials:
    • via command-line arguments:
      `–apikey
    • and via Windows environment variables:

set TESTINY_API_KEY=

  • I verified I’m using the latest version of the importer (1.26.0).
  • My network is not blocking the connection, and I’m not behind a proxy.

Despite all this, I still get the “Invalid API key” error.

Additional Info:

  • The API key works in Postman.
  • The importer appears to reject the same key.
  • Tried regenerating the key — no change.
  • No debug flag available to get more detailed output.

Hello Carmen,

Assuming you are using Testiny Cloud, could you please send an email from your account email to [email protected] with your organization name?

If you are using Testiny Server you need to specify TESTINY_APP_URL as well (otherwise the Testiny Cloud API will be used)

Regards,
Michael

Tank you I have to set the TESTINY_APP_URL now it works!