Gen-Endpoint
Back to API List
Echo API
Echoes back the data sent to it. Supports GET (query parameters) and POST (JSON or Text body). Useful for request inspection.
Utilities
Internal API - Hosted by this App
API Endpoints & Usage
Explore and interact with the available endpoints for the Echo API. These API routes are live! The paths shown below are relative to your application's base URL. For example, if this application is hosted at https://gen-endpoint.com, an endpoint path for this API, such as /api/echo?text=Hello%20World&count=5&active=true, would be accessible at https://gen-endpoint.com/api/echo?text=Hello%20World&count=5&active=true. You can use the "Try it out" section for each endpoint or use tools like curl, Postman, or your browser's address bar (for GET requests) to interact with them.
GET

/api/echo?text=Hello%20World&count=5&active=true

Echoes the query parameters provided in the request URL.

Show Static Examples

Example Request Parameters:

?text=Hello%20World&count=5&active=true

Example Response:

{
  "type": "GET",
  "queryParams": {
    "text": "Hello World",
    "count": "5",
    "active": "true"
  },
  "message": "Query parameters echoed successfully.",
  "headers": {
    "example-header": "example-value"
  },
  "timestamp": "2024-08-15T12:00:00.000Z"
}
Try it out

You can add or change query parameters in the path above (e.g., ?name=User).

POST

/api/echo

Echoes the JSON or Text body sent in the request. Try sending non-JSON text too!

Show Static Examples

Example Request Body:

{
  "user": {
    "id": "user-789",
    "role": "admin"
  },
  "operation": "echo_test"
}

Example Response:

{
  "type": "POST",
  "receivedBody": {
    "user": {
      "id": "user-789",
      "role": "admin"
    },
    "operation": "echo_test"
  },
  "message": "JSON body echoed successfully.",
  "headers": {
    "example-header": "example-value"
  },
  "timestamp": "2024-08-15T12:05:00.000Z"
}
Try it out