---
title: "Returns the TikTok consent URL for this player. Deliberately hands back a URL instead of issuing a redirect: this route sits under /api/, so GlobalFilter requires the APIKey header, and a browser navigating to a link cannot send one. The widget therefore calls this endpoint (where it can set the header) and then navigates the player to the returned URL itself."
method: GET
path: "/api/v1/Bots/tiktok/connect"
tags: ["Bots"]
---

# Returns the TikTok consent URL for this player. Deliberately hands back a URL instead of issuing a redirect: this route sits under /api/, so GlobalFilter requires the APIKey header, and a browser navigating to a link cannot send one. The widget therefore calls this endpoint (where it can set the header) and then navigates the player to the returned URL itself.

`GET /api/v1/Bots/tiktok/connect`

## 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/tiktok/connect`
- Auth: none declared. Required headers: `APIKey`

## Query parameters

- `playerId` integer
- `challengeId` integer

## Headers

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

## Response `200`

OK

## Changes

- **2026-10-20** `2271b0c49faf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gameballers/apis/gameball-api-2/changes/api/v1/Bots/tiktok/connect/get.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)
