BioStar X API
281 endpoints — Select an endpoint from the sidebar.
Overview
Suprema BioStar X API is a JSON-based API. All requests are made to endpoints beginning with https://server_ip|domain_name[:port]/api
The API can be used to perform almost any operation. Following are a few examples of what can be done with Suprema BioStar X API:
-
Manage User data
-
Manage Access Group data
-
Manage Doors data
-
Assign an Access Group to one or multiple User
-
Assign a User with one or multiple Access Group
-
Manage Devices
-
And many more...
All requests must be secure (https).
General Information
To call the API, BioStar X is mainly using HTTP Methods GET, POST, PUT, and DELETE.
-
GETis used to retrieve data from the server at the specified resource. For example, if you want to retrieve the User data with /users endpoint, then by making aGETrequest to the endpoint should result with the list of all available users. -
POSTrequest is used to send data to the server to create or update a resource. The data sent to the server is stored on the body of the HTTP request. -
PUTis similar toPOSTin that it creates or updates a resource. The difference between them is that when calling the samePUTrequests multiple times it will have the same result. While calling aPOSTrequest repeatedly will create the same resource multiple times. -
DELETEis used to delete resources at the specified endpoint.
There are four parameter location that’s being used on Suprema BioStar X API:
-
PATH parameter is located on the URL, usually on the end of an endpoint. For example in /items/{ItemID}, the PATH parameter is ItemID.
-
BODY. An array of string values will be located on the BODY of the HTTP request. The request body needs to be in JSON format.
-
QUERY. Similar to the PATH parameter, QUERY parameter is also located on the URL, the difference is QUERY parameter will be located after a question mark. Example: /items?id=###, the QUERY parameter is id.
-
HEADER. Custom headers that are expected as part of the request.
Path templating refers to the usage of template expressions, delimited by curly braces ({}), to mark a section of a URL path as replaceable using path parameters. Example: https://127.0.0.1:4433/api/some_api/{id}
Above example shows that the required value will be placed on {id}
For AUTHORIZATION details please check POST Login documentation.
Import the Postman collection
To import the Postman collection online, follow these steps:
-
Download the Postman collection file(bsxapi-postman-collection.json).
-
Go to Postman and sign in.
-
Select your workspace from the workspace selector in the top left. Or create a workspace if you don't have one.
-
Click Import in the sidebar.
-
Select downloaded file, or drag the file into the import window.
-
Click Import to complete the process.