# Discontinued tokens passing in query params of API calls

{% hint style="danger" %}
**Breaking changes!**\
Сhanges listed below may break some apps' logic.
{% endhint %}

#### What's new

The old way of passing access tokens in API calls is now completely disabled for all applications.

{% content-ref url="<https://app.gitbook.com/s/uOzT5egoVTAjMJwRuMQT/get-started/make-your-first-api-request>" %}
[Make your first API request](https://app.gitbook.com/s/uOzT5egoVTAjMJwRuMQT/get-started/make-your-first-api-request)
{% endcontent-ref %}

#### Changes in API

From now on, access tokens for API calls work only if passed as a Bearer token through the Authorization header.

{% tabs %}
{% tab title="API call works" %}

```http
GET /api/v3/1003/profile HTTP/1.1
Host: app.ecwid.com
Authorization: Bearer secret_token
```

where:

* `1003` - Ecwid store ID
* `secret_token` - access token of the app
  {% endtab %}

{% tab title="API call doesn't work" %}

```http
GET /api/v3/1003/profile?token=secret_token HTTP/1.1
Host: app.ecwid.com
```

where:

* `1003` - Ecwid store ID
* `secret_token` - access token of the app
  {% endtab %}
  {% endtabs %}

#### Why the changes are breaking

Making successful API calls with a token passed as a query param is now impossible. If an app still uses this approach, it can't use REST API.

#### How to update the app

1. Check if your app makes API calls.
2. If calls add an access token to the URL, remove the token from URL and add it as a `Bearer token` in the `Authorization` header instead.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ecwid.com/changelog/march-2025/march-20/discontinued-tokens-passing-in-query-params-of-api-calls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
