> ## Documentation Index
> Fetch the complete documentation index at: https://kv-server.techygrrrl.stream/llms.txt
> Use this file to discover all available pages before exploring further.

# Post get

> Gets the value of a key



## OpenAPI

````yaml post /get
openapi: 3.0.3
info:
  title: kv-server
  version: 0.0.0
servers:
  - url: https://{api_host}/api
    variables:
      api_host:
        default: YOUR-kv-server.vercel.app
security:
  - bearerAuth: []
paths:
  /get:
    post:
      description: Gets the value of a key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KvKey'
            example:
              key: my-data
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KvKeyValuePair'
              example:
                value:
                  key: my-data
                  value: some stored value
        '400':
          description: Request failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: unauthorized
components:
  schemas:
    KvKey:
      properties:
        key:
          type: string
      required:
        - key
    KvKeyValuePair:
      properties:
        key:
          type: string
        value:
          type: string
      required:
        - key
        - value
    Error:
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````