Herald
OpenapiPoints

Grant points to a user (admin)

POST
/api/points/grant

Request Body

application/json
  1. body

Grant points request (admin)

amount*integer
Formatint64
bucketId?|

Target Credit Bucket. REQUIRED — every grant must name an explicit bucket; missing → 400 grant_bucket_required.

reason*string
userId*string
validityDays?|
Formatint64

Response Body

Points granted successfully

application/json
  1. response

Grant points response (admin)

amount*integer
Formatint64
bucketId*string

Credit Bucket the grant landed in. Mirrors the api-ext ExtGrantPointsResponse.bucketId and SDK GrantPointsResponse contract so consumers see one shape.

Formatuuid
expiresAt?string|null
grantedBalance*integer
Formatint64
totalBalance*integer
Formatint64
transactionId*string
Formatuuid
userId*string
Formatuuid
Example Request
curl -X POST 'https://example.com/api/points/grant' \
  -H 'Content-Type: application/json' \
  -d '{
  "amount": 0,
  "reason": "string",
  "userId": "string"
}'
Example Response
{
  "amount": 0,
  "bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
  "expiresAt": "string",
  "grantedBalance": 0,
  "totalBalance": 0,
  "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
  "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}