Get started quickly with the JavaScript SDK
Install the SDK
npm install @corti/sdk
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
OAuth 2.0
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.Interaction Example
Workflow design and planning
interaction ID
.interactionId
as well as the recordingId
returned from the upload response.transcript
) from the previous step.create
call already returns the document), you can do so using the interactionId
and documentId
from the previous step.Full working example
dotenv
import loads environment variables from a .env
file. This keeps sensitive values like your client ID and client secret out of your source code, which is considered best practice.