> For the complete documentation index, see [llms.txt](https://help.citrusad.com/retail-media-interface/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.citrusad.com/retail-media-interface/partner/hu/partner-api-authentication/user-key-authentication.md).

# Felhasználói kulcs token

## Tokenek igénylése

A szükséges hozzáférési token megszerzéséhez küldjön egy kérést a(z) `/user-key-token` végponthoz, hozzáadva a következő paramétereket a(z) `application/x-www-form-urlencoded` formátum használatával, UTF-8 karakterkódolással a HTTP-kérés törzsében.

```http
POST https://auth.<env>.citrusad.com/v2/user-key-token
Content-Type: application/x-www-form-urlencoded
user_key=<USER_KEY>
```

Egy választ fog kapni, amely tartalmaz egy `accessToken`,`expiresIn`és `tokenType`.

```json
{
    "accessToken": "ACCESS_TOKEN",
    "expiresIn": 84000,
    "tokenType": "Bearer"
}
```

{% hint style="info" %}
A **hozzáférési** tokenje a(z) Epsilon Retail Media API elérésére szolgál.
{% endhint %}

## Frissítési token

Amikor a hozzáférési tokenje lejár, érvénytelen token hibát fog kapni a kampány API-tól. Ebben az esetben küldjön egy kérést a(z) `/token` végponthoz a frissítési tokenjével, az alábbi ábrán látható módon:

<figure><img src="/files/3i8MoTqp7WmxiHHeuzSr" alt="Authentication refresh flow.png" width="100%"><figcaption></figcaption></figure>

Általában a felhasználónak csak akkor van szüksége új hozzáférési tokenre, ha az előző lejár, vagy ha hozzáférést kap vagy veszít a követeléseihez csatolt erőforrásokhoz. Rossz gyakorlatnak számít a végpont meghívása új hozzáférési token megszerzéséhez az API-nk felé indított minden egyes kérésnél.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.citrusad.com/retail-media-interface/partner/hu/partner-api-authentication/user-key-authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
