---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/concepts/authorization.md
  - https://yandex.com/dev/market/partner-api/doc/ru/concepts/authorization.md
  - https://yandex.com/dev/market/partner-api/doc/zh/concepts/authorization.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/market/partner-api/doc/en/llms.txt

# Authorization

To work with Yandex.Market via the API, you need to get API-Key- a token. We do not recommend using an OAuth token, as this authorization method is outdated.

{% note info "Do I need to switch to immediately Api-Key- a token?" %}

You can use the already generated OAuth token until the end of its validity period or immediately switch to working with API-Key- a token. 

[How to do it](https://yandex.com/dev/market/partner-api/doc/en/concepts/api-key.md)

During the transition period from one token to another, you can transfer both:
   * [How to transmit API-Key-token](https://yandex.com/dev/market/partner-api/doc/en/concepts/api-key.md#use)
   * [How to transfer an OAuth token](https://yandex.com/dev/market/partner-api/doc/en/concepts/oauth-2.0.md#use)

{% endnote %}

## Tokens Yandex Market API {#token-types}

#|
||  | [**Api-Key**](https://yandex.com/dev/market/partner-api/doc/en/concepts/api-key.md) | [**OAuth**](https://yandex.com/dev/market/partner-api/doc/en/concepts/oauth-2.0.md) (outdated) ||

|| **Binding** | To the account where the token was created. | To the user who created the token. ||

|| **Method of receipt** | In the seller's office on the Market. [Instruction manual](https://yandex.com/dev/market/partner-api/doc/en/concepts/api-key.md)

| By creating an OAuth application. [Instruction manual](https://yandex.com/dev/market/partner-api/doc/en/concepts/oauth-2.0.md)||

|| **Access to stores** | All shops are in the cabinet. | Only those that the user has access to. ||

|| **Is it possible to configure access to certain groups of methods** | Yes. [Instruction manual](https://yandex.com/dev/market/partner-api/doc/en/concepts/api-key.md)| No. ||

|| **Transmission header** | `Api-Key`. [How to transfer a token](https://yandex.com/dev/market/partner-api/doc/en/concepts/api-key.md#use)

| `Authorization`. [How to transfer a token](https://yandex.com/dev/market/partner-api/doc/en/concepts/oauth-2.0.md#use)||

|| **The validity period of the token** | Unlimited. | 1 year. ||

|#


