---
title: "Test endpoint with authentication check"
method: POST
path: "/v1/test-endpoint/auth"
tags: ["Test"]
---

# Test endpoint with authentication check

`POST /v1/test-endpoint/auth`

## Request

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

A test endpoint that validates authentication headers

## Request body

- object

## Response `200`

Successful response with authentication info

## Other responses

- `401`: Unauthorized - missing or invalid authentication

---

[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)
