---
search:
  tags:
    - Counters
    - POST
seo:
  description: >-
    Adds by (default 1, may be negative), creating the counter at by on…
    Reference for the POST /counters/{name}/increment endpoint in the TipPage
    Developer API.
sidebar:
  label: Increment a counter
  badge: POST
title: Increment a counter
type: openapi-operation
---
Adds `by` (default 1, may be negative), creating the counter at `by` on first use - the same semantics as `{count}` in a chat command. Requires `counters:manage`.

`POST /counters/{name}/increment`

**Request body** (`application/json`)

- `by` (integer) — Non-zero; negative decrements.

Request body example:

```json
{
  "by": 1
}
```

**Responses**

- `200` — The counter after the increment.
- `400` — Invalid name or value.
- `401` — Missing or invalid credential (\`missing\_api\_key\` / \`invalid\_api\_key\`, or \`invalid\_token\` for an expired/revoked OAuth access token).
- `403` — The key lacks the required scope (\`missing\_scope\`).
- `429` — Rate limit exceeded - check the \`RateLimit-\*\` headers.

Response example, 200:

```json
{
  "counter": {
    "name": "deaths",
    "value": 0,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
```
