---
title: "Validate License Key"
method: POST
path: "/v1/license-keys/validate"
tags: ["license_keys", "public"]
---

# Validate License Key

`POST /v1/license-keys/validate`

Validate a license key.

**Scopes**: `license_keys:write`

## Request body

- LicenseKeyValidate
  - `key` string, required
  - `organization_id` string, uuid4, required
  - `activation_id` string, uuid4, nullable
  - `benefit_id` string, uuid4, nullable — The benefit ID.
  - `customer_id` string, uuid4, nullable
  - `increment_usage` integer, nullable
  - `conditions` object — Key-value object allowing you to set conditions that must match when validating the license key. The key must be a string with a maximum length of **40 characters**. The value must be either: * A string with a maximum length of **500 characters** * An integer * A floating-point number * A boolean You can store up to **50 key-value pairs**.

## Response `200`

Successful Response

- ValidatedLicenseKey — unresolved $ref

## Other responses

- `404` — License key not found.
- `422` — Validation Error

---

[API](https://skmtc.net/polar/apis/polar-api.md) · [All operations](https://skmtc.net/polar/apis/polar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polar/polar-api/revisions/77e4ef94fcc3/schema)
