Token
Rotate App Key
Changed onMint a new hashed public-key secret for the same AccessToken id.
Dashboard getTempApiToken (iss loyalty.dog, token_use=session) is the merchant store-owner caller — the same contract as POST /appkeys. User.admin is the staff flag and is not required for that dashboard token. Dashboard / admin session JWT only — not the public key itself. Optional overlapSeconds keeps the previous hash valid until that window ends. JWT app keys: create a new key via POST /appkeys and delete the old one (dashboard). The new secret is returned once.
post/v2/appkeys/{key_id}/rotate
Request
- Base URLhttps://api.loyalty.dog
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
key_idstring required
Example:5eb7cf5a86d9755df3a6c593
Headers
authorizationstring nullable
Request body
Response
Successful Response
Example response
{
"id": "5eb7cf5a86d9755df3a6c593"
}Changes
- info
endpoint added
- info