---
title: "Validate a license key (public)"
method: POST
path: "/license/validate"
tags: ["Licensing"]
---

# Validate a license key (public)

`POST /license/validate`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/license/validate`
- Auth: none required

## Request body

- object
  - `license` string, required: License JWT token
  - `instance_id` string, required: Unique instance identifier
  - `instance_metadata` object: Optional: instance metadata (hostname, region, version only). No PII, API keys, or secrets allowed. Unknown fields are rejected.
    - `hostname` string: Instance hostname (e.g. server-prod-01)
    - `region` string: Deployment region (e.g. us-1, eu-west, ap-southeast)
    - `version` string: Instance software version (e.g. 1.2.3)

## Response `200`

License valid

- object
  - `valid` boolean
  - `license_id` string
  - `plan_id` string
  - `feature_flags` object
  - `limits` object
  - `expires_at` string, date-time
  - `next_check_seconds` integer
  - `warning` string, nullable

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `409`: Resource conflict — the request cannot proceed because of a current state conflict (e.g., resource already exists, version mismatch, in-flight idempotency key with a different body).
- `410`: License expired
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.
- `503`: An upstream dependency is currently unavailable. The request was not processed; retry after the cooldown window.

---

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