API Testing Interface for Tier 1 Specialists

Current Users in System

IDNameEmailStatusCreated
0 CS Hostinger cs@hostinger.com active 2025-10-23 04:01:59
4 Karin karin-test@hostinger.com active 2025-10-23 05:47:54
5 Agum test-agum@hostinger.com active 2025-10-23 06:25:47
8 Test User naomi.sinaga@hostinger.com active 2025-10-26 07:08:45
9 Mayas mayas.test@hostinger.com active 2025-10-26 13:29:11
10 Test User test.user@hostinger.com active 2025-10-26 18:26:17
11 Fabi B. fabi-is-the-best@hostinger.com active 2025-10-26 18:54:35
12 Test User test.user@hostinger.com active 2025-10-27 06:04:25
13 Header Test header.test@hostinger.com active 2025-10-27 07:27:47
15 res res.user@hostinger.com active 2025-10-29 05:17:03
16 Header Test header.test@hostinger.com active 2025-10-30 01:39:09
17 Karin ga pake aw karin-testhostinger.com active 2025-10-30 02:09:10
18 Winny winny.tesalonika@hostinger.com active 2025-10-30 02:48:41
19 aishaa aisha.putri@hostinger.com active 2025-11-02 00:44:03
20 Header Test header.test@hostinger.com active 2025-11-09 09:07:20
21 Header Test header.test@hostinger.com active 2025-11-09 09:07:58
22 Test User test.user@hostinger.com active 2025-12-22 20:05:09
24 Natalia natalia.ramirez@hostinger.com active 2026-01-11 01:47:30
25 misyel misyel.bagtas@hostinger.com active 2026-01-22 05:46:10
27 Usertester karolina@hostinger.com active 2026-01-24 12:56:34
28 TestUserKaro karolina@hostinger.com active 2026-01-24 14:15:10

Available API Endpoints

GET?api=users

Purpose: Retrieve all users

curl -X GET "www.learningweb.site/index.php?api=users"

POST?api=users

Purpose: Create a new user and get API key

curl -X POST "www.learningweb.site/index.php?api=users" \
-H "Content-Type: application/json" \
-d '{"name": "Jane Surname", "email": "jane.surname@hostinger.com"}'

Note: Save the returned API key - you'll need it for protected endpoints!

GET?api=users/{id}

Purpose: Get specific user details

curl -X GET "www.learningweb.site/index.php?api=users/1"

PUT?api=users/{id}

Purpose: Update user information

curl -X PUT "www.learningweb.site/index.php?api=users/1" \
-H "Content-Type: application/json" \
-d '{"name": "Customer Success Updated", "status": "inactive"}'

GET?api=generate-key

Purpose: Generate API key for testing

curl -X GET "www.learningweb.site/index.php?api=generate-key"

DELETE?api=users/{id}

Purpose: Delete a user

curl -X DELETE "www.learningweb.site/index.php?api=users/1"

GET?api=protected

Purpose: Access protected resource (requires API key)

curl -X GET "www.learningweb.site/index.php?api=protected" \
-H "Authorization: Bearer YOUR_API_KEY_HERE"

GET?api=rate-limited

Purpose: Test rate limiting (3 requests per minute)

curl -X GET "www.learningweb.site/index.php?api=rate-limited"

Try: Make 4 requests quickly to see 429 error

GET?api=error-demo

Purpose: Generate specific HTTP error codes for testing

curl -X GET "www.learningweb.site/index.php?api=error-demo&error=404"
curl -X GET "www.learningweb.site/index.php?api=error-demo&error=500"

Available errors: 400, 401, 403, 404, 429, 500, 503

Testing Workflow

  1. Create a user: POST to /api/users with name and email
  2. Save the API key: Copy the api_key from the response
  3. Test protected endpoint: Use the API key with /api/protected
  4. Update the user: PUT to /api/users/{id} with new data
  5. Verify changes: Refresh this page to see updated user table
  6. Test error scenarios: Try invalid API keys, missing headers, rate limits

Browser Testing URLs

You can test some endpoints directly in your browser by clicking these links: