Our Public API is a set of HTTP REST endpoints that allows you to interact with our platform. It also provides webhooks for booking lifecycle updates. All API payloads are in JSON, and responses are in JSON only. For all the endpoints you need to be authenticated to perform the operation.
During development and testing phase of the integration a sandbox environment can be made available for you. Sandbox accounts do not carry over to Production. Please reach out to our Support team.
If you have any questions about integrating our Public API, please contact us. We are happy to help!
How to use
Server: https://api.briqbookings.com/public/
Authentication: Requiredx-api-keyheader
Swagger: See attached file
Authentication
Briq uses API token-based authentication on the Public API. We accept the API-token as a request header x-api-key. Please contact our team to provide you an API key.
To test your API key, we suggest using the WhoAmI endpoint. When supplied with a correct API key, this endpoint will return the name and the domain ({domain}.briqbookings.com) of the merchant. If the API key is not valid, you will receive HTTP 401 - Unauthorized. Example response:
{
"name": "your company name",
"domain": "your-company-domain"
}
Error handling
An HTTP response containing a status code in the 2XX range, typically 200 OK, indicates that the API call was made successfully. In case of failed API call the response body will contain an error in the following format:
{
"code": "InvalidInput",
"FriendlyDescription": "Invalid input provided.",
"TechnicalDescription": "InvalidData",
"AdditionalInformation": {
"Name": [
"Product name is not provided"
]
}
}
| Field | DataType | Description |
|---|---|---|
| code | string | The main error code. Gives the generic error that happened. Possible values: - InvalidInput - NotFound - ProcessingError |
| FriendlyDescription | string | A friendly (localized) error description, which could be shown to the user. |
| TechnicalDescription | string | A technical error description (always in English). |
| AdditionalInformation | Record<string, object> | Contains additional information about the error. Example: which fields in the model are not correct and why. |
Troubleshooting
In general, 2xx-range codes suggest a successful request, while 4xx and 5xx range codes suggest errors in either authorization or input.
Error codes
| Code | Semantic | Meaning |
|---|---|---|
| 200 | OK | Request was succesful. |
| 400 | Bad request | Parameters for the request are missing or malformed. |
| 401 | Unauthorized | Your API Key is not accepted. |
| 403 | Forbidden | Your IP is blacklisted for API usage. |
| 404 | Not found | Entity not found. |
| 5XX | Server Errors | Something went wrong on our end. |
Logging
Currently, Briq does not provide an event logging and/or debugging solution for our API. Please roll your own logging solution.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article