No Active Session
AUTH TEST-AUTH-006 UC: UC-AUTH-005

API Key Authentication

Userback Reference: Loading...

Prerequisites

  • API key is configured in system settings
  • Access to a tool that can make API requests (curl, Postman, etc.)

Test Steps

# Action Expected Result Screenshot Result
1
Prepare API request to /api/companies
Request ready
-
2
Add header: Authorization: API {valid-api-key}
Header added
-
3
Send the request
Request sent
-
4
Verify response status: 200 OK
Authentication successful
-
5
Verify response body contains company data
Data returned
-
6
Send same request with invalid API key
Request sent
-
7
Verify response status: 401 Unauthorized
Authentication failed
-
8
Verify error message: Invalid API key
Error message correct
-

Acceptance Criteria