No Active Session
AUTH TEST-AUTH-004 UC: UC-1.4

API Key Authentication

Userback Reference: Loading...

Prerequisites

  • API key is configured in system environment (CIRCLE_API_KEY)
  • API user is configured in system environment (CIRCLE_API_USER)
  • Access to a tool for making HTTP requests (e.g., curl, Postman)

Test Credentials

Role: Admin
Email: h.nguyen.test@circlemsp.com
Password: MyPassw0rd123!

Test Steps

# Action Expected Result Screenshot Result
1
Open a REST client (e.g., Postman) or terminal with curl
REST client or terminal is ready to send HTTP requests
-
2
Construct a GET request to https://unified.avnc.net/api/companies with the header Authorization: API {your-api-key}
Request is prepared with the correct Authorization header format
-
3
Send the request
System validates the API key against the configured CIRCLE_API_KEY and authenticates as the CIRCLE_API_USER
-
4
Verify the response returns a 200 OK status with JSON data
Response contains a 200 status code and valid JSON payload with companies data
-
5
Send a request with an invalid API key and verify the response
System returns a 401 Unauthorized response with an error message
-

Acceptance Criteria