TikTok for Developers

Developer Docs

Last updated December 3, 2026

Revisit Rewards

Revisit rewards help players build a habit of returning to your mini game. TikTok shows players how to reopen your game from the sidebar or from their device's home screen, and your game grants an in-game reward when they come back.

Games that integrate revisit rewards have seen a 3–10% increase in day-1 retention.

Caution: Starting December 14, 2026, mini games must integrate revisit rewards to pass review. Revisit rewards replace Revisit From Profile and Home Screen Shortcut. Games without this integration might be rejected.

How it works

You configure the rewards. TikTok chooses which task to show each player, shows the guidance, and decides when the task is complete. Your game checks whether the player can receive the reward and grants it.

Five-step revisit rewards flow showing Developer and TikTok responsibilities, from reward setup to task confirmation

Step

Who

What happens

1. Configure rewards

Your server

You set the reward name, amount, and icon for each task with the reward configuration API. TikTok shows them in the revisit reward entry, so you don't build a display page.

2. Guide the player

TikTok

After the player taps Go to…, TikTok shows the guidance and the entry.

3. Check for a reward

Your game

When the game starts or returns to the foreground, your game calls getRevisitMissionReward().

4. Grant the reward

Your game or server

If canReceiveReward is true, you grant the reward once.

5. Report the grant

Your game

Your game calls reportMissionRewardGranted(), and TikTok shows a success message.

TikTok decides which task to show, whether the player is eligible, and whether the task is complete. Your game reads only canReceiveReward and rewardScene.

The sidebar revisit task shows the player how to reopen your game from the TikTok sidebar. Its reward_scene is REVISIT_EDUCATION.

Entry

When TikTok shows the task

When the task is complete

Homepage sidebar

The player is in a region where the Homepage sidebar is available, such as the US, Japan, or Indonesia, and hasn't opened mini games from the Homepage sidebar in the past 14 days.

The player follows the guidance and opens your game from the sidebar.

Profile sidebar

The player is in another supported region where the Homepage sidebar isn't available, and hasn't visited Minis Center or opened mini games from the Profile sidebar in the past 14 days.

The player follows the guidance and opens your game from the sidebar.

TikTok profile menu with TikTok Minis highlighted beside a mini games panel with a hand pointing to a game

Add to Home Screen

The Add to Home Screen task shows the player how to add your game to their device's home screen. Its reward_scene is ADD_TO_DESKTOP.

TikTok shows this task after the player completes the sidebar revisit task, if they haven't added your game to the home screen or opened it from there. The task is complete when the player adds your game to the home screen and opens it from the home screen.

Add Heroes to the home screen by tapping Share and selecting “Add to Home Screen”

Prerequisites

  • TikTok 46.0.0 or later. To check your version, go to Profile, open the menu in the upper-right corner, select Settings and privacy, and scroll to the bottom.
  • A test account added to your app.
  • Your app's client key and client secret, for your server

Prepare reward assets

Item

Requirements

Reward icon

A PNG image, 180 × 180 px, with a transparent background to avoid white edges. Host it at a stable public HTTPS URL that doesn't depend on sign-in state, cookies, or custom request headers.

Reward name

The name players see, such as "Coins". Use 12 characters or fewer.

Reward amount

The amount players see, such as "2K". This value is for display only. TikTok doesn't use it to calculate rewards.

Bright magenta faceted gemstone icon with a bold black outline and a cyan highlight

Configure rewards on your server

Configure each task separately, even if both use the same reward. Each configuration has one of the following statuses:

Status

Who sees the task

When to use it

PREVIEW

Only test accounts of your mini game

Development and testing

ENABLED

All players who meet TikTok's conditions

After testing passes

DISABLED

No one

To pause or stop the task

Players see a task only after its configuration is ENABLED. When both tasks are enabled, TikTok shows the sidebar revisit task first, then the Add to Home Screen task after the player completes it.

Get a client access token

Call the reward configuration API from your server with a client access token:

curl --request POST "https://open.tiktokapis.com/v2/oauth/token/" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "client_key=CLIENT_KEY" \
  --data-urlencode "client_secret=CLIENT_SECRET" \
  --data-urlencode "grant_type=client_credentials"

Replace CLIENT_KEY and CLIENT_SECRET with your app's client key and client secret. The token expires after about 2 hours. Cache it on your server, and get a new one before it expires. For details, see Get Client Access Token.

Create or update a reward configuration

POST https://open.tiktokapis.com/v2/sg/minis/reward_configs/upsert

The client access token identifies your mini game. Each call replaces the whole configuration for one task, so send all five fields every time.

Field

Type

Description

Required

reward_scene

String

The task: REVISIT_EDUCATION for sidebar revisit, or ADD_TO_DESKTOP for Add to Home Screen. Send one task per call.

Yes

status

String

PREVIEW, ENABLED, or DISABLED.

Yes

reward_name

String

The reward name players see. Use 12 characters or fewer.

Yes

reward_amount

String

The reward amount players see. For display only.

Yes

reward_icon_url

String

The public HTTPS URL of the reward icon.

Yes

curl --request POST "https://open.tiktokapis.com/v2/sg/minis/reward_configs/upsert" \
  --header "Authorization: Bearer CLIENT_ACCESS_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "reward_scene": "REVISIT_EDUCATION",
    "status": "PREVIEW",
    "reward_name": "Coins",
    "reward_amount": "2K",
    "reward_icon_url": "https://cdn.example.com/reward.png"
  }'

Replace CLIENT_ACCESS_TOKEN with your client access token. A successful response looks like this:

{
  "data": {
    "config_version": 12,
    "reward_icon_asset_id": "asset_example"
  },
  "error": {
    "code": "ok",
    "message": "",
    "log_id": "example_log_id"
  }
}
  • If you send the same payload again, the existing config_version is returned and doesn't increase.
  • If any field changes, the new payload replaces the configuration and config_version increases.
  • There's no delete API. To stop a task, send its full configuration with status set to DISABLED.

Check a reward configuration

GET https://open.tiktokapis.com/v2/sg/minis/reward_configs

To get one task, pass reward_scene as a query parameter. Without it, the API returns the configurations for both tasks, whatever their status.

curl --request GET "https://open.tiktokapis.com/v2/sg/minis/reward_configs" \
  --header "Authorization: Bearer CLIENT_ACCESS_TOKEN"
{
  "data": {
    "reward_configs": [
      {
        "reward_scene": "REVISIT_EDUCATION",
        "status": "PREVIEW",
        "reward_name": "Coins",
        "reward_amount": "2K",
        "reward_icon_url": "https://sf16-va.tiktokcdn.com/obj/example",
        "reward_icon_asset_id": "asset_example",
        "config_version": 12,
        "updated_at": 1784000000
      },
      {
        "reward_scene": "ADD_TO_DESKTOP",
        "status": "DISABLED",
        "reward_name": "Coins",
        "reward_amount": "2K",
        "reward_icon_url": "https://sf16-va.tiktokcdn.com/obj/example",
        "reward_icon_asset_id": "asset_example",
        "config_version": 8,
        "updated_at": 1783000000
      }
    ]
  },
  "error": {
    "code": "ok",
    "message": "",
    "log_id": "example_log_id"
  }
}

Check reward_scene, status, the reward name and amount, config_version, and reward_icon_asset_id. A saved configuration isn't always visible on a device right away, because the icon can take time to reach every region. Check the result on a device in your target region.

Grant rewards in your mini game

  1. When your game starts, and each time it returns to the foreground, call getRevisitMissionReward(). Register only one onShow listener for this.
  2. If canReceiveReward is true, grant the reward. Use a stable key on your server, such as the player ID and reward scene, so a repeated request doesn't grant the reward twice.
  3. After your server confirms that the reward was granted now or was granted before, call reportMissionRewardGranted(). If granting fails or the result is unclear, don't report it.

Both APIs require TikTok 46.0.0 or later. Check that each API is available before you call it.

Grant rewards in JavaScript

API

Description

TTMinis.game.getRevisitMissionReward(opts)

Gets whether the player can receive a reward, and for which task. Accepts optional success, fail, and complete callbacks.

TTMinis.game.reportMissionRewardGranted()

Tells TikTok that your game granted the reward, so TikTok can show a success message. It doesn't grant the reward itself. If no task was completed, no message appears.

The success callback of getRevisitMissionReward() receives an object with the following fields:

Field

Type

Description

canReceiveReward

Boolean

true only when the player completed a task and can receive the reward.

rewardScene

String

The completed task: REVISIT_EDUCATION or ADD_TO_DESKTOP.

scene

String

The entry scene the player opened your game from.

function checkRevisitReward() {
  if (!TTMinis.game.canIUse('getRevisitMissionReward')) return;
  TTMinis.game.getRevisitMissionReward({
    success: ({ canReceiveReward, rewardScene }) => {
      if (!canReceiveReward) return;
      // Grant the reward on your server with a stable key, so a repeated request doesn't grant it twice.
      grantRevisitReward(rewardScene)
        .then(() => {
          // Report only after the reward was granted now or before.
          if (TTMinis.game.canIUse('reportMissionRewardGranted')) {
            TTMinis.game.reportMissionRewardGranted();
          }
        })
        .catch(() => {
          // Don't report when granting fails or the result is unclear.
        });
    },
    fail: (error) => {
      console.error('getRevisitMissionReward failed', error);
    },
  });
}

checkRevisitReward();
TTMinis.game.onShow(checkRevisitReward);

Replace grantRevisitReward() with your game's reward logic.

Grant rewards in Unity

Use the latest TikTok SDK for Unity. Call both methods only after TT.InitSDK succeeds with callback code 0, and check CanIUse.GetRevisitMissionReward and CanIUse.ReportMissionRewardGranted separately.

Method

Description

TT.GetRevisitMissionReward(TTGetRevisitMissionRewardParam param = null)

Gets whether the player can receive a reward. The success result contains canReceiveReward, rewardScene, and scene. A successful call doesn't mean a task was completed.

TT.ReportMissionRewardGranted(TTReportMissionRewardGrantedParam param = null)

Tells TikTok that your game granted the reward. Accepts callbacks only.

For both methods, param contains optional success, fail, and complete callbacks. The fail callback receives ErrorInfo with ErrorCode and ErrMsg. The complete callback runs on success, failure, or timeout, but its result is empty. Don't read reward fields from it, or base reward logic on errMsg.

private void GetRevisitMissionReward()
{
  if (!CanIUse.GetRevisitMissionReward)
  {
    Debug.Log("GetRevisitMissionReward is not supported");
    return;
  }

  TT.GetRevisitMissionReward(new TTGetRevisitMissionRewardParam
  {
    success = result =>
    {
      Debug.Log(
        $"canReceiveReward={result.canReceiveReward}, " +
        $"rewardScene={result.rewardScene}, scene={result.scene}"
      );

      if (!result.canReceiveReward)
      {
        return;
      }

      // Call the business server/client for idempotent reward granting.
      // After the business server/client confirms "granted successfully this time" or "already granted previously,"
      // then call ReportMissionRewardGranted().
    },
    fail = error =>
    {
      Debug.LogError(
        $"GetRevisitMissionReward failed: " +
        $"{error.ErrorCode}, {error.ErrMsg}"
      );
    },
    complete = _ =>
    {
      Debug.Log("GetRevisitMissionReward complete");
    }
  });
}

private void ReportMissionRewardGranted()
{
  if (!CanIUse.ReportMissionRewardGranted)
  {
    Debug.Log("ReportMissionRewardGranted is not supported");
    return;
  }

  TT.ReportMissionRewardGranted(
    new TTReportMissionRewardGrantedParam
    {
      success = result =>
      {
        Debug.Log(
          $"ReportMissionRewardGranted success: {result.errMsg}"
        );
      },
      fail = error =>
      {
        Debug.LogError(
          $"ReportMissionRewardGranted failed: " +
          $"{error.ErrorCode}, {error.ErrMsg}"
        );
      },
      complete = _ =>
      {
        Debug.Log("ReportMissionRewardGranted complete");
      }
    }
  );
}

Test with PREVIEW

With PREVIEW status, only test accounts of your mini game see the task. For other players, it behaves like DISABLED. TikTok identifies test accounts automatically.

  1. Install TikTok 46.0.0 or later, and sign in with a test account for your app.
  2. Set each task's configuration to PREVIEW, then check it with the query API.
  3. In your mini game, tap … in the upper-right corner, tap the reward icon, and check the reward panel. Open the More panel, tap Win rewards, and check the revisit reward panel.
Three-step guide: open Win rewards from the game menu, then reopen TikTok Minis to claim a raw stone reward
  1. Test your reward logic. You open a test version by scanning a QR code, so you can't complete a real revisit. Mock the result of getRevisitMissionReward() instead:
  • When canReceiveReward is false, check that your game doesn't grant a reward.
  • When canReceiveReward is true, check that your game grants the reward once, even if the request repeats.
  • Check that your game reports the grant only after it succeeds or was already granted.

Players who meet TikTok's conditions might also see a floating reward chest or a banner at the top of the screen. TikTok chooses the style, so you don't have to test every style.

Mini-game screens showing a floating “Rewards” chest and a “Free rewards” banner

Turn on or stop a task

  • Turn on: After testing passes, send the full configuration again with status set to ENABLED. Don't change the other fields.
  • Stop: Send the full configuration with status set to DISABLED.

Troubleshooting

Problem

Check and resolve

The query API returns the configuration, but the task doesn't appear on the device.

The query API only confirms that the configuration was saved. Check the test account, your mini game's status, the icon review, and the test region.

The reward icon is missing from the … panel.

Check that TikTok is version 46.0.0 or later, and that the configuration and status are correct. If the device already completed the task, uninstall and reinstall TikTok to reset it. If the icon is still missing, contact Developer Support.

A test account can't complete a real revisit.

A test version opens only from a QR code. Mock the result of getRevisitMissionReward() to test your reward logic.

You want to test the sidebar revisit task again on the same device.

Uninstall and reinstall TikTok, then test again.

Next steps

TikTok for Developers