POST
/
v1
/
keys.updateRemaining
curl --request POST \
  --url https://api.unkey.dev/v1/keys.updateRemaining \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "keyId": "key_123",
  "op": "increment",
  "value": 1
}'
{
  "remaining": 100
}

Changelog

DateChanges
Dec 06 2023Introduced endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

The configuration for an api

The response is of type object.