NativeRest Echo API

What is the Echo API?

The NativeRest Echo API is a free, publicly available testing service designed to help developers verify and debug their API requests. Just like a mirror, the Echo API reflects exactly what you send to it, allowing you to easily inspect the headers, query parameters, and data payloads that NativeRest is transmitting.

Why use the Echo API?

  • Debugging Requests: Ensure your authentication headers, query strings, and complex JSON/XML bodies are formatted correctly before sending them to a real production server.
  • Learning & Onboarding: A safe sandbox for beginners to practice different HTTP methods without worrying about modifying live databases.
  • Testing Automated Scripts: The perfect environment to safely practice NativeRest's built-in testing features (like response.body) and conditional logic using predictable responses.

Base URL

All API requests should be directed to the following base URL:

https://nativerest.net/echo/get

NativeRest – Rest API Client | Windows

Supported Endpoints & Examples

1. GET Request

Use this endpoint to test URL query parameters.

  • Method: GET
  • URL: https://nativerest.net/echo/get?foo1=bar1&foo2=bar2
  • Response behavior: The API will return a JSON object. Inside the args property, you will see your exact query parameters (foo1 and foo2). It will also echo back your User-Agent and any custom headers you included.

2. POST Request

Perfect for testing data payloads, including raw JSON, XML, or x-www-form-urlencoded forms.

  • Method: POST
  • URL: https://nativerest.net/echo/post
  • Response behavior: The API will parse your request body and return it under the data or form property, confirming exactly what the server received.

3. PUT Request

Ideal for simulating resource updates.

  • Method: PUT
  • URL: https://nativerest.net/echo/post
  • Response behavior: Similar to POST, it echoes back the modified payload you sent.

4. DELETE Request

Use this to test your resource removal logic.

  • Method: DELETE
  • URL: https://nativerest.net/echo/delete

Writing Your First Test with Echo API

Since the Echo API provides highly predictable responses, it is the best place to learn NativeRest's testing capabilities.

Try sending a GET request to https://nativerest.net/echo/get?status=active and paste the following snippet into the Tests tab in NativeRest:

# Response status code is 200
response.status == 200

# Response time is less than 1000 ms
response.time < 1000

When you click Send, NativeRest will execute the script and display green checkmarks in the Test Results panel, confirming your logic works!