Links
Comment on page

Getting Started with the SDK

Installation

Typescript
Python
npm install cortex-ts
pip install trycortex

Create a CortexAPI

Create environment variables for your cortex API key.
Use the API key to create a CortexAPI.
Typescript
Python
import { CortexAPI } from 'cortex-ts';
const {CORTEX_API_KEY} = process.env;
const cortex = new CortexAPI(CORTEX_API_KEY);
import cortex
CortexAPI = cortex.CortexAPI(API_KEY)