# Quick Authentication Set up the authentication for your API to help users manage their credentials. # OpenAPI definition ```json { "openapi": "3.0.0", "info": { "description": "This file contains the OpenAPI specifications for the Acocunt APIs of **The Furniture Bros**.", "title": "The Furniture Bros Account OpenAPI Specifications", "version": "1.0.0" }, "servers": [ { "url": "https://thefurniturebros.com", "description": "Production server" }, { "url": "https://localhost:5000", "description": "Local server" } ], "paths": { "/auth/register": { "post": { "summary": "Register an Account", "description": "This endpoint allows you to register a user. Once registered, it will return an API key.", "tags": [ "Auth" ], "requestBody": { "description": "An object containing the parameters to create and register an account.\n", "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "name", "email", "password" ], "properties": { "name": { "type": "string", "description": "The name of the user.\n" }, "email": { "type": "string", "format": "email", "description": "The email address of the user.\n" }, "password": { "type": "string", "description": "The password for the account.\n" }, "admin": { "type": "boolean", "default": false, "description": "Specifies whether the user has administrative privileges.\n" } }, "example": { "name": "john doe", "email": "john_doe12@gmail.com", "password": "123456" } } } } }, "responses": { "200": { "description": "Successful response. Returns an object containing the API key.", "content": { "application/json": { "schema": { "type": "object", "properties": { "token": { "type": "string", "description": "The API key used to authenticate and authorize the account.\n" } }, "example": { "token": "eyJhbGciOiJIUzI1NiIsInR5cBGlR1fkzXQKgxLshzVL2lcajQNXEUTH09N-csr98" } } } } }, "400": { "description": "See message description." }, "500": { "description": "see message description." } }, "externalDocs": { "description": "The API key uses JSON Web Token (JWT) to authenticate. Learn more about it here.", "url": "https://auth0.com/docs/secure/tokens/json-web-tokens" } } } } } ```