---
title: "Increment a numeric value"
method: POST
path: "/kv/incr"
tags: ["KV Store"]
---

# Increment a numeric value

`POST /kv/incr`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/kv/incr`
- Auth: HTTP bearer

## Request body

- IncrRequest: Request to increment a value
  - `amount` integer, nullable: Amount to increment by (default: 1)
  - `key` string, required: The key to increment
  - `project_id` integer, nullable: Project ID (required for API key/session auth, optional for deployment tokens)

## Response `200`

Value incremented

- IncrResponse: Response for increment operation
  - `value` integer, required: New value after increment

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/kv/incr/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
