---
agentTools:
  projectIndex: https://asset-management-for-jira.readme.io/llms.txt
---

# /v1/accessories

Get a list of all accessories

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v1/accessories": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccessoryExternalSerializer"
                  }
                }
              }
            }
          },
          "401": {
            "description": "",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Get a list of all accessories",
        "tags": [
          "accessory"
        ]
      }
    }
  },
  "info": {
    "title": "Asset Management for Jira API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "//api.assetmanagementforjira.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          }
        }
      },
      "LocationSerializer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          }
        }
      },
      "UserExternalSerializer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          },
          "jira_id": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          }
        }
      },
      "AccessoryCheckoutSerializer": {
        "type": "object",
        "properties": {
          "loanee": {
            "$ref": "#/components/schemas/UserExternalSerializer"
          },
          "checkout_status": {},
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id": {
            "type": "integer"
          },
          "authentication_id": {
            "type": "integer"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loanee_text": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          },
          "loanee_id": {
            "type": "integer",
            "nullable": true
          },
          "accessory_id": {
            "type": "integer"
          }
        },
        "required": [
          "accessory_id",
          "authentication_id"
        ]
      },
      "AccessoryExternalSerializer": {
        "type": "object",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/LocationSerializer"
          },
          "checkouts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccessoryCheckoutSerializer"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string",
            "maxLength": 256,
            "nullable": true
          },
          "total_quantity": {
            "type": "integer",
            "nullable": true
          },
          "order_number": {
            "type": "string",
            "nullable": true
          },
          "purchase_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "purchase_cost": {
            "type": "string",
            "nullable": true
          },
          "vendor": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 146,
      "2": 213,
      "3": 62,
      "4": 71,
      "5": 81,
      "6": 87,
      "7": 0,
      "8": 170,
      "9": 87,
      "10": 91,
      "11": 222
    }
  }
}
```