1
Starting from a clean slate
Install the SDK
Install the SDK
To install the Corti SDK you can use Node Package Manager (npm) in a terminal of your choosing:
- Install Node.js and npm (detailed instructions available here)
- Open a terminal and run
npm install @corti/sdk - Start using the JavaScript SDK!
View the package details and latest version on npm.
To check if you have npm installed, run
npm -v and a version number should be returned. If it fails, then reinstall npm from the link above or try restarting your computer.Create an SDK client
Create an SDK client
Before making requests, you’ll need to set up a CortiClient. This handles authentication with the Corti API.If you already have client credentials for your API project, you can initialize the client like this:
2
Authentication
OAuth 2.0
OAuth 2.0
Authentication is governed by OAuth 2.0 using
client credentials grant type. This authentication protocol offers enhanced security measures, ensuring that access to patient data and medical documentation is securely managed and compliant with healthcare regulations.- Obtain your API client credentials from the Corti API Console.
- Add the client_id and client_secret to your project.
- Start making API calls and requests from this client!
For comprehensive authentication examples and advanced configuration options, see the Authentication Guide in the SDK repository.
3
Testing your client
Interaction Example
Interaction Example
JavaScript code example of using the client to authenticate and create an interaction:
Creating an interaction
4
Resources
- npm Package - Package details, version history, and installation information
- SDK Source Code - View the complete JavaScript SDK implementation
- Authentication Guide - Comprehensive authentication documentation and examples
- SDK Examples Repository - Working examples for various use cases and authentication patterns
- API Reference - Complete API endpoint specifications
To get access to Corti API click here to start building
For support or questions, please reach out through help.corti.app