Authentication
This page contains the authentication and authorization method for The Furniutre Bros API.
Last updated
This page contains the authentication and authorization method for The Furniutre Bros API.
Last updated
The Furniture Bros API uses an API key, sometimes referred to as an API Token, for authentication. The API key allows you to access protected endpoints and interact with the endpoints securely. Below is a guide on how to authenticate your requests.
To authenticate with The Furniture Bros API, you need to include an API key in your requests. This key is provided when you sign up and can be used to access the endpoints.
You can pass the API key in the request headers as follows:
Authorization
:<API_TOKEN>
Where <API_TOKEN>
is your unique API key provided by The Furniture Bros. Use the endpoint to get an API key.
There are two types of users within The Furniture Bros API:
Regular Users: These users can access basic endpoints that do not require administrative privileges.
Admin Users: Admin users have additional permissions and can access endpoints that require higher privileges.
There are 3 levels of access (Authorization) to the endpoints:
Endpoints Requiring Admin Access: Some endpoints are restricted to admin users only. These endpoints will return an error if a regular user attempts to access them. Note that some endpoints can't be accessed if you are an admin.
Endpoints Requiring Regular User Access: Some endpoints require an authenticated regular user, and requests without an API key or with an invalid key will be rejected.
Public Endpoints: Certain endpoints do not require any authentication. These endpoints are publicly accessible without the need for an API key.
For an endpoint that requires admin access, include the API key in the header as shown below:
For an endpoint that requires a regular user to be authenticated, the request would look like this:
For a public endpoint that does not require authentication, simply omit the Authorization
header:
If the API key is missing, invalid, or does not have the appropriate permissions, the server will respond with an error message, such as:
For endpoints requiring admin access, regular users will receive a 403 Forbidden
error:
Your API key contains the information on what type of access you have. To change your level of access, you can modify your account admin
status using the endpoint.
Each key is valid for 36,000 seconds (10 hours). Once it expires, you'll need to request a new one.If you need to regenerate or revoke your API key, please use the endpoint to get a new API key.