# Generate Barcode **GET /barcode/gen/:codec** Generates a barcode with the given codec and data. Returns the barcode if successful, otherwise returns an error. Permissions Required: `Barcode::Generate` ## Servers - Production Server: https://thefemdevs.com/api (Production Server) ## Parameters ### Headers - **x-format** (string) The format to return the barcode in ### Path parameters - **codec** (string) The codec to use for the barcode ### Query parameters - **content** (string) The data to encode in the barcode ## Responses ### 200 The barcode for the given data #### Body: image/png (string(binary)) string(binary) ### 400 Missing barcode information #### Body: application/json (object) - **code** (integer) The error code - **message** (string) The error message ### 401 Invalid/Missing API Token #### Body: application/json (object) - **code** (integer) The error code - **message** (string) The error message ### 403 Missing Permissions #### Body: application/json (object) - **code** (integer) The error code - **message** (string) The error message ### 500 Unable to generate barcode #### Body: application/json (object) - **code** (integer) The error code - **message** (string) The error message [Powered by Bump.sh](https://bump.sh)