Quick start.#
The Bric API returns JSON over HTTPS, and every request is made on behalf of one agency. The listings API is live today. Version 1 adds properties, tenancies, balances and contacts, read-only first.
// Run this on your server, never in the browser const res = await fetch("https://app.bric.co.uk/api/v0/properties?format=full", { headers: { "X-API-KEY": process.env.BRIC_API_KEY }, }); const data = await res.json();
Authentication.#
Bric issues each agency an API key. Send it in the X-API-KEY header on every request.
| Do | Why |
|---|---|
| Keep the key on a server | Why:Anyone with the key can read your data as your agency. |
| Store it as a secret | Why:Use environment variables or your platform’s secrets, never page code or a repository. |
| Send it as a header | Why:Keys in a web address end up in logs and browser history. |
| Ask us to replace a leaked key | Why:We issue a new one and the old one stops working. |
Permissions.#
From version 1, each key carries only the permissions you choose. A website key that shows listings never sees your accounts.
| Permission | What it reads |
|---|---|
| properties:read | What it reads:Properties, rooms and property details |
| tenancies:read | What it reads:Tenancies and rent schedules |
| ledgers:read | What it reads:Tenant, landlord and property balances and ledgers |
| contacts:read | What it reads:Names, email addresses and companies |
| contacts:personal | What it reads:Phone numbers, dates of birth and addresses |
| maintenance:read | What it reads:Maintenance tickets |
| compliance:read | What it reads:Certificates |
| deposits:read | What it reads:Deposits |
| enquiries:write | What it reads:Creating enquiries |
Requests and errors.#
Errors come back as JSON with a message. When a request is not valid, the response also lists the problem with each field.
| Status | Meaning | What to do |
|---|---|---|
| 200 · 201 | Meaning:It worked. | What to do:– |
| 401 | Meaning:The key is missing or not recognised. | What to do:Check the header name and the key. |
| 403 | Meaning:The key lacks permission for this data. | What to do:Ask us to add the permission. |
| 404 | Meaning:Nothing with that ID belongs to your agency. | What to do:Check the ID came from your own data. |
| 422 | Meaning:A parameter is missing or not valid. | What to do:Read the field errors in the response. |
{
"message": "The request is not valid.",
"errors": {
"updated_since": [
"Use an ISO 8601 date-time, such as 2026-11-01T00:00:00Z."
]
}
}Paging and syncing.#
Every version 1 list is paged. Ask for up to 100 records with limit, then pass the next_cursor from each response to get the next page. When next_cursor is null you have everything. Add updated_since to fetch only what changed since your last sync.
Money and dates.#
Amounts are never sent as rounded numbers. Each one is an object with the value in pence and in pounds, ready to show. Dates are YYYY-MM-DD; times are ISO 8601 in UTC.
{
"minor_value": 95000,
"major_value": "950.00",
"formatted_value": "£950.00",
"symbol": "£",
"negative": false
}Versions.#
The version is part of the path: /api/v0 for listings today, /api/v1 for everything new. We add fields without notice, so ignore ones you don’t use. Anything that would break your code comes in a new version, announced on the What’s new page first.