Auth RequiredExplorer+
client.favorites.add()
Favourite a firearm. Idempotent: favouriting twice is one favourite.
add(firearmId: string): Promise<APIResponse<FavoriteToggle>>- stringheaderrequired
Your API key.
Authorization: Bearer <key>is accepted in its place.
- stringrequired
Firearm slug
- Example
- object
The response payload.
- boolean
Always true: the firearm is in your favorites once this returns.
- string
Slug of the firearm this row belongs to.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 404
NOT_FOUND - 429
RATE_LIMITED - 500
INTERNAL_ERROR
- Minimum tier
- Explorer+
- Monthly quota
- 200/mo
- Rate limit
- 10/min
- Daily cap
- 50
Figures shown are for this endpoint's minimum tier. Higher tiers raise every limit.