---
title: "Store a license key"
method: POST
path: "/api/license"
tags: ["License"]
---

# Store a license key

`POST /api/license`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/license`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/license/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `dry_run` boolean

## Request body

- object
  - `key` string, required: The signed license key.

## Response `201`

Stored; the body is an empty JSON string

- string

## Other responses

- `409`: A newer or conflicting key is already applied

---

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