In This Help TopicBlueStep APIThis document provides details on connecting to and using the BlueStep System API endpoints. IntroductionThe BlueStep System operates on an Event Driven Architecture. All API calls are synchronous HTTPS transactions between the BlueStep System and the entity making the call. The system provides data based on the specified packs. The "pack" is a required element when making the request. The system can also create new records or entries if a “-1” is passed as the ID of the record. Example:
Entry pointAll calls to our API must be done to the following URL:
AuthenticationThe BlueStep System API uses an access token for authentication given for security purposes, therefore, keep it as safe as possible. Include the access token in the Authorization header for all your requests.
Warning: The access token grants permission to any holder to update sensitive information, including your own credentials. Be cautious about entrusting it to a third party. Request ContentAll requests to BlueStep System endpoints must be made via HTTPS. Include the required headers and parameters in your request.
Headers:
Body: The request body must be a JSON stringified object. These are the possible properties to attach to it:
Body properties explanation: `pack`: The pack property is a string that determines the type of data to be retrieved. Examples of values include:
Example of the "pack”property: "pack": "ADT" `queryFid`: The queryFid is a string that determines the main report being used to get the required data. It will impact the forms being available to get data and to filter data from. Example of the "queryFid” property:
"queryFid": "allRes" `filters`: POST requests can be filtered based on a “recordId” and/or a list of “formFields”. To achieve this, add a filters property to your request body following this structure: Example: “filters”: { “recordId”: “{recordId}”, “formFids”: [ “{formFid1}”, “{formFid2}”, ] } Explanation:
Request FormatPOST - Read RecordsExample #1 - Get All Records within a “pack”:POST /b/APIData HTTP/1.1 Warning: requesting large amounts of data such as the package "ORM" for all or multiple residents might result in a timeout. Example #2 – Get a specific record within a “pack” by “recordId”:POST /b/APIData HTTP/1.1 Example #3 - Get a specific record and data within a “pack” by “recordId” and “formFids”:POST /b/APIData HTTP/1.1 PUT - Update Existing RecordExample #1PUT /b/APIData HTTP/1.1
Example #2PUT /b/APIData HTTP/1.1 PUT - Create New RecordExample #1PUT /b/APIData HTTP/1.1 Response FormatGetting files from a requestDocuments retrieved in a request will be sent by their URLs with the following structure: To access the file in question, you must build the complete URL by attaching the Example:
Document received:
{
"fileName": "Test Document",
"url": "/files/xxx/Documents/Test_document.pdf",
"id": "123456"
}
Unit base domain:
Response StatusIn the BlueStep System API, various errors may occur during the processing of requests. Errors are communicated through appropriate HTTPS status codes and error response bodies. Below are some common error scenarios and how they are handled:Common HTTP Status Codes:
Rate LimitingThe API enforces a rate limit with a timeout of 5 seconds between requests. This means that any subsequent request made within 5 seconds of the previous one will not be processed and a 429-response error will be thrown.Contact informationFor further assistance or inquiries, please contact:
BlueStep 2024, System API Documentation © All rights reserved. |
||||||||||||||||||||