---
title: "Session-start sync for native in-app messages. The mobile SDK calls this once per session; the request is forwarded to the messages microservice, which evaluates eligibility, assigns A/B variations (including control holdouts) and returns pre-rendered messages the SDK caches and displays offline. Follows the V1 bots identity convention: the player arrives as a plain external id plus an optionally provided encrypted internal id, mirroring the balance and levels endpoints, with the encrypted id taking precedence when present."
method: POST
path: "/api/v1/Bots/inapp/sync"
tags: ["Bots"]
---

# Session-start sync for native in-app messages. The mobile SDK calls this once per session; the request is forwarded to the messages microservice, which evaluates eligibility, assigns A/B variations (including control holdouts) and returns pre-rendered messages the SDK caches and displays offline. Follows the V1 bots identity convention: the player arrives as a plain external id plus an optionally provided encrypted internal id, mirroring the balance and levels endpoints, with the encrypted id taking precedence when present.

`POST /api/v1/Bots/inapp/sync`

## Request

- Base URL: `https://api.gameball.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gameball.co/api/v1/Bots/inapp/sync`
- Auth: none declared. Required headers: `APIKey`

## Query parameters

- `playerUniqueId` string
- `playerId` integer

## Headers

- `Authorization` string
- `lang` string
- `APIKey` string, required
- `SecretKey` string

## Request body

- GameBallBLLViewModelsBotsInAppInAppSyncRequestViewModel
  - `playerUniqueId` string, nullable
  - `platform` integer
  - `locale` string, nullable
  - `appVersion` string, nullable
  - `sdkVersion` string, nullable

## Response `200`

OK

- GameBallBLLHelperBussinessCustomResponse1GameBallBLLViewModelsBotsInAppInAppSyncResponseViewModel
  - `response` GameBallBLLViewModelsBotsInAppInAppSyncResponseViewModel
    - `cooldownSeconds` integer
    - `quietHours` GameBallBLLViewModelsBotsInAppInAppQuietHoursViewModel
      - `enabled` boolean
      - `start` string, nullable
      - `end` string, nullable
    - `campaignOrdering` integer[], nullable
    - `messages` GameBallBLLViewModelsBotsInAppInAppSyncMessageViewModel[], nullable
      - `campaignType` 1 | 2
      - `campaignId` integer
      - `variationId` integer
      - `dispatchId` string, uuid, nullable
      - `name` string, nullable
      - `priority` integer
      - `messageType` integer
      - `trigger` GameBallBLLViewModelsBotsInAppInAppSyncTriggerViewModel
        - `type` string, nullable
        - `eventId` integer, nullable
        - `name` string, nullable
        - `metadataLogicalOperator` string, nullable
        - `metadataFilters` GameBallBLLViewModelsBotsInAppInAppSyncTriggerFilterViewModel[], nullable
          - `metadataId` integer
          - `name` string, nullable
          - `value` string, nullable
          - `operator` string, nullable
        - `repeatable` boolean
        - `minIntervalSeconds` integer, nullable
      - `content` unknown
      - `locale` unknown
      - `localeCode` string, nullable
      - `expiresAt` string, date-time, nullable
      - `isTest` boolean
      - `gameCampaignId` integer, nullable
      - `gameCampaignType` string, nullable
  - `success` boolean
  - `errorMsg` string, nullable
  - `errorCode` integer
  - `liveMode` boolean, nullable

## Changes

- **2026-10-21** `aad5bec2657b`: 9 info
  - added the optional property `response/messages/items/campaignType` to the response with the `200` status (media type: text/plain)
  - added the optional property `response/messages/items/campaignType` to the response with the `200` status (media type: application/json)
  - added the optional property `response/messages/items/campaignType` to the response with the `200` status (media type: text/json)
  - added the optional property `response/messages/items/gameCampaignId` to the response with the `200` status (media type: text/plain)
  - …5 more

[Operation history](https://skmtc.dev/gameballers/apis/gameball-api-2/changes/api/v1/Bots/inapp/sync/post.md)

---

[API](https://skmtc.dev/gameballers/apis/gameball-api-2.md) - [All operations](https://skmtc.dev/gameballers/apis/gameball-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/gameballers/apis/gameball-api-2/revisions/91732ad54d20?raw)
