> For the complete documentation index, see [llms.txt](https://docs.codapi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codapi.dev/getting-started.md).

# Getting Started

## Migrating from 2.x.x to 3.x.x

{% embed url="<https://migration.codapi.dev>" %}
Migration guide for 2.x.x. to 3.x.x
{% endembed %}

## Installation

```bash
npm install call-of-duty-api@latest
```

## Initialize

```javascript
import { login } from "call-of-duty-api";
login(ssoToken: string);
// or alternatively
import API from "call-of-duty-api";
API.login(ssoToken: string);
```

## Platforms

```typescript
import { platforms } from "call-of-duty-api";
```
