# Installation, authorization

This page covers the installation and authorization process for Linked API SDKs.

## Installation

To install the SDK, run following command for your package manager:

```bash lang=ts
npm install -S @linkedapi/node
```

```bash lang=python
pip install linkedapi
```

## Authorization

To authorize your requests, you need to initialize the SDK with 2 tokens:

```typescript
const linkedApi = new LinkedApi({
  linkedApiToken: "your-linked-api-token",
  identificationToken: "your-identifiaction-token",
});
```

```python
from linkedapi import LinkedApi, LinkedApiConfig

linkedapi = LinkedApi(
    LinkedApiConfig(
        linked_api_token="your-linked-api-token",
        identification_token="your-identification-token",
    )
)
```

- `linkedApiToken` – your main token that enables overall Linked API access.
- `identificationToken` – unique token specific to each managed LinkedIn account.

You can obtain these tokens through [our platform](https://app.linkedapi.io/), as demonstrated below:

![](/images/docs/tokens-3.webp)

### Admin API

To manage your subscription, accounts, and limits programmatically, use the separate `LinkedApiAdmin` class. It requires only the `linkedApiToken`:

```typescript
import { LinkedApiAdmin } from '@linkedapi/node';

const admin = new LinkedApiAdmin({
  linkedApiToken: 'your-linked-api-token',
});

const status = await admin.subscription.getStatus();
const { accounts } = await admin.accounts.getAll();
```

```python
from linkedapi import LinkedApiAdmin, AdminConfig

admin = LinkedApiAdmin(
    AdminConfig(linked_api_token="your-linked-api-token")
)

status = admin.subscription.get_status()
accounts = admin.accounts.get_all().accounts
```

See the [Admin overview](/sdks/admin-overview) for details.

### Multiple LinkedIn accounts

If you need to manage **multiple LinkedIn accounts**, simply initialize a separate SDK instance for each account's identification token.

```typescript
const firstLinkedInAccount = new LinkedApi({
  linkedApiToken: "your-linked-api-token",
  identificationToken: "your-first-identifiaction-token",
});

const secondLinkedInAccount = new LinkedApi({
  linkedApiToken: "your-linked-api-token",
  identificationToken: "your-second-identifiaction-token",
})
```

```python
from linkedapi import LinkedApi, LinkedApiConfig

first_linkedin_account = LinkedApi(
    LinkedApiConfig(
        linked_api_token="your-linked-api-token",
        identification_token="your-first-identification-token",
    )
)

second_linkedin_account = LinkedApi(
    LinkedApiConfig(
        linked_api_token="your-linked-api-token",
        identification_token="your-second-identification-token",
    )
)
```
