---
title: "Test endpoint for playground API testing"
method: POST
path: "/v1/test-endpoint"
tags: ["Test"]
---

# Test endpoint for playground API testing

`POST /v1/test-endpoint`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/test-endpoint`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/test-endpoint/post.ts> (a function with typed inputs; its response is checked against the schema)

A public endpoint that echoes back the request data for testing the playground custom API feature

## Request body

- object

## Response `200`

Successful response with echoed data

- object
  - `message` string: Success message
  - `receivedAt` string, date-time: When the request was received
  - `echo` object: The request data echoed back
  - `headers` object: Request headers received
  - `method` string: HTTP method used

---

[API](https://skmtc.dev/lunary/apis/lunary-api.md) - [All operations](https://skmtc.dev/lunary/apis/lunary-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lunary/apis/lunary-api/revisions/a38233713bdc?raw)
