Give the perk
POST
/counter/give
The code checked as valid, sent back with its key and step: it is checked again, and the use is recorded by the database, which applies the perk's rule once more. Can be undone for 15 minutes. Give tapped again for a code already given here answers 200 with the same use (again: true).
Authorizations
or
BearerAuth
In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.
Type
HTTP (bearer)
Parameters
Header Parameters
X-Counter-Location
Type
string
Format
"uuid"Request Body
application/json
JSON
{
"keyId": "string",
"step": 0,
"code": "string"
}
Responses
Already given with this code (a second tap)
application/json
JSON
{
"data": "string"
}