For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Authentication

To start using the API, you first need to get an API token from Settings in the RiskBase app. This token should be sent with all requests as a Bearer token in the Authorization HTTP header.

Organisation-scoped requests normally use the API user's organisation. RiskBase Support can make an existing API key multi-organisation. If the API user can access multiple organisations, every organisation-scoped request must instead include the public organisation ID in the organisation query parameter. API users that can access only one organisation retain their existing behaviour and do not need to provide this parameter.

Use the GET /organisations endpoint to retrieve the public IDs of organisations accessible to the API user.

GET /properties?organisation=clfawx3zc00028psqf9830q5x
Host: api3.riskbase.uk
Authorization: Bearer 5d2e9eff0e253e3ef4544...

If the organisation query parameter is omitted for a multi-organisation API user, the API returns:

{
  "code": "OrganisationRequired",
  "error": "Organisation is required with multi organisation API users"
}

Last updated

Was this helpful?