Authenticate with the Testlify API

Before you begin

Ensure API access is enabled on your Testlify account and that you have a registered email address. If API access is not yet enabled, contact support@testlify.com.

Step 1: Request a one-time password (OTP)

Send a POST request to generate an OTP, which Testlify sends to your registered email address.

Request body:

{
  "provider": "email",
  "email": "xyz@example.com",
  "action": "login",
  "language": "",
  "domainName": ""
}

Expected response: HTTP 204 No Content — the OTP has been sent to your inbox.

Step 2: Verify the OTP

Enter the OTP from your email to receive your access key.

Request body:

{
  "provider": "email",
  "email": "xyz@example.com",
  "otp": "555444"
}

Response (200 OK):

{
  "accessKey": "af9621a4-2cf4-4b82-8714-0a195ce61497-ak"
}

Tip: Copy and store your accessKey — you will need it in the next step.

Step 3: Log in

Use your email address and access key to complete authentication and start making API requests.

Request body:

{
  "provider": "email",
  "email": "xyz@example.com",
  "accesskey": "734e6d27-686e-46da-a8a8-566993bb6604-ak"
}

Need help? Contact support.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us