---
updatedAt: 2026-06-12T14:47:10.000Z
agentTools:
  projectIndex: https://docs.formant.io/llms.txt
---

# Store item

Create a new key-value pair.
Resource: keyValueStorage
Authorized roles: operator

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "KeyValue": {
        "properties": {
          "organizationId": {
            "format": "uuid",
            "type": "string",
            "description": "ID of the organization in which you want to create a new key-value pair."
          },
          "key": {
            "description": "Key you want to create."
          },
          "value": {
            "minLength": 0,
            "maxLength": 50000,
            "type": "string",
            "description": "Value corresponding to the key you want to create."
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "deletedAt": {
            "format": "date-time",
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "required": [
          "key",
          "value"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "info": {
    "title": "Formant admin-api",
    "version": "1.357.8"
  },
  "openapi": "3.0.0",
  "paths": {
    "/key-value/": {
      "post": {
        "operationId": "KeyValueController.storeItem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyValue"
              }
            }
          },
          "description": "KeyValue",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyValue"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Store item",
        "tags": [
          "Key Value"
        ],
        "description": "Create a new key-value pair.\nResource: keyValueStorage\nAuthorized roles: operator",
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.formant.io/v1/admin"
    }
  ]
}
```