---
title: "Validate Trial Code"
method: POST
path: "/api/v1/billing/trial-codes/validate"
tags: ["trial-codes"]
---

# Validate Trial Code

`POST /api/v1/billing/trial-codes/validate`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/billing/trial-codes/validate`
- Auth: none declared

Validate a trial code without redeeming it.

This endpoint is PUBLIC (no authentication required) to allow
users to check code validity before signing up or signing in.

Security note: Only returns whether code is valid and trial duration.
Does not expose sensitive code details.

## Request body

- ValidateTrialCodeRequest: Request to validate a trial code.
  - `code` string, required: Trial code to validate

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

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