Account

List your favorite ids

Returns just the firearm ids you have favorited. Cheaper than the full list when you only need to render a filled/unfilled state.

Requires an API key belonging to a user account. Acts on the calling account's own data.

get/v1/me/favorites/ids

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/me/favorites/ids
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Response

List your favorite ids

successboolean required

Always true on a successful response. Every error carries false and an error object instead.

Example response

{
  "success": true,
  "data": {
    "ids": [
      "glock-g17-gen5"
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.