requestIdentity
requestIdentity(
path,fingerprint):RequestIdentity
Defined in: packages/rest/src/identity.ts:37
Classifies a request.
- Interaction callbacks (
/interactions/:id/:token/…) and token webhooks (/webhooks/:id/:token…, which includes interaction follow-ups) are limited per webhook, whoever sends them: their buckets are shared ("shared"), so every bot and process agrees on one counter. Interaction callbacks are not bound to any global limit; a token webhook still counts against the sender’s, conservatively, because a follow-up cannot be told from a plain webhook by its path. - A request sent without a bot token is limited per caller (
"anon"). - Everything else belongs to the bot that sends it.
Parameters
Section titled “Parameters”string
fingerprint
Section titled “fingerprint”string | undefined