Skip to main content
POST
/
v1
/
usage
/
record
Record usage event
curl --request POST \
  --url https://revstack.dev/v1/usage/record \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerId": "<string>",
  "featureId": "<string>",
  "amount": 1
}
'
{
  "id": "<string>",
  "success": true
}

Body

application/json
customerId
string
required
Minimum string length: 1
featureId
string
required
Minimum string length: 1
amount
number
required
Required range: x > 0

Response

200 - application/json

Usage recorded

id
string
required
success
boolean
required