# Create a metadata key `POST /api/v1/metadata-keys` Adds a metadata key to the catalog. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Settings → Write**. ## Body parameters - `key` (string, required) — Unique name, up to 255 characters. Leading and trailing whitespace is removed, and the key is lowercased. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/metadata-keys" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"key":"preferred_language"}' ``` ## Response **201 Created** Returns the new catalog entry. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 8, "key": "preferred_language", "sort_order": 0 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation.