How to Use the Brim API

Brim offers a powerful REST API that allows you to automate chart abstraction tasks, streamline your research workflows, and integrate Brim into your existing data infrastructure.

This guide provides an overview of how to get started, what you can do with the API, and how to authenticate securely.


Why Use the Brim API?

You might use the API to:

  • Create and update patients in bulk
  • Run automated abstraction workflows
  • Retrieve structured data outputs
  • Integrate Brim with systems like REDCap or clinical databases
  • Monitor abstraction progress programmatically

Getting Access

To use the API, you need an API Token. You'll find instructions for creating one here.


Brim uses bearer token authentication. Include your token in the header of each API request like this:

Authorization: Bearer YOUR_TOKEN_HERE


What You Can Do With the API


Upload Data & Resources

  • Upload new or updated patient notes as a CSV.
  • Upload new or updated resource or reference documents that can be used to create or optimize variables.

Run Generation Automatically

  • Generate labels for some or all patients and variables

Export Generated Labels

  • Download generated labels.

Example Script

You can find an example script for how to upload data, generate, and download results here, with supporting python scripts here and here.



Try It Out

You can explore and test all available endpoints at:

👉 https://demo.brimanalytics.com/api/docs#/

This interactive interface lets you try the API with your token and see example responses.


Need Help?

If you run into issues or have a question about what’s possible via the API, reach out to our team any time by emailing support@brimanalytics.com.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.