> For the complete documentation index, see [llms.txt](https://docs.kibotu.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kibotu.ai/documentation/api-reference/personal-offers.md).

# Personal Offers

## Input parameters

#### UserId

Kibotu recognizes your users through their userId and keeps the same AB variation intact. Should a user be assigned to the control group, any subsequent requests will continue to return the control group consistently.

#### ContextObject

A union of GameContext and UserContext, such as level, coins, character, offered prize, country or geo-location, should be utilized. Please consult with your account manager to ensure proper segmentation parameters are set.

## Output parameters

#### AB Variation

Personalized banner (full URL of the personalized banner to be presented)

Personalization Key (For tracking further user actions, it is recommended to keep it along with the popup object to be able to attach to tracked events)

## Query for personalized content, specifically Personal Offers

<mark style="color:green;">`POST`</mark> `https://api.kibotu.ai/getPersonalizedBanner`

Check the `Input parameters` description listed above;

#### Request Body

| Name                                          | Type         | Description |
| --------------------------------------------- | ------------ | ----------- |
| userId<mark style="color:red;">\*</mark>      | String       |             |
| prizeTypes                                    | Array\[enum] |             |
| prizeKey<mark style="color:red;">\*</mark>    | String       |             |
| offerId<mark style="color:red;">\*</mark>     |              |             |
| zipCode                                       | String       |             |
| countryIso2<mark style="color:red;">\*</mark> | String       |             |
| languageIso2                                  | String       |             |

**Response**

{% tabs %}
{% tab title="200: OK Check `Output parameters` above;" %}

````
```json
imageFullUrl
kibotuMetadata
```
````

{% endtab %}

{% tab title="400: Bad Request " %}

```
Invalid input
```

{% endtab %}

{% tab title="401: Unauthorized " %}
Invalid authentication, check your API Key
{% endtab %}

{% tab title="403: Forbidden " %}
Invalid authorization, no permissions to perform the requested action
{% endtab %}

{% tab title="500: Internal Server Error " %}

{% endtab %}
{% endtabs %}
