API testing

Send custom request headers

Medium70 pts~25 min
  • Request headers
  • Correlation IDs
Practice app · Acme REST API

A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.

BASE_URL
/api/practice
Console app
/lab/qa-automation-send-custom-request-headers

Your starter code already declares BASE_URL — call the API relative to it.

Objective

Send custom headers and prove the server received them using the header echo endpoint.

Your task

  1. 1GET BASE_URL + "/headers" with X-Correlation-Id: tqa-corr-001 and Accept-Language: en-GB.
  2. 2Assert 200.
  3. 3Assert body.headers["x-correlation-id"] === "tqa-corr-001" and accept-language === "en-GB".

Acceptance criteria

  • GET /headers returns 200
  • At least 3 assertions pass

Fixtures

apiKey
tqa_live_key_123
basicUser
admin
basicPassword
secret
username
qa@target.dev
password
Test@123

API testing · QA Automation · Requests & methods