---
title: "Tiktok Login"
method: POST
path: "/social/tiktok/login"
tags: ["Social"]
---

# Tiktok Login

`POST /social/tiktok/login`

## Request

- Base URL: `https://api.muapi.ai`
- URL: `https://api.muapi.ai/social/tiktok/login`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (client credentials, token URL `https://api.muapi.ai/oauth/token`)

Initiate TikTok PKCE flow. Frontend generates code_verifier/code_challenge.
Returns the TikTok authorization URL to redirect the user to.

## Query parameters

- `team_id` integer, nullable

## Headers

- `x-api-key` string
- `x-embed-code` string, nullable
- `x-agent-embed-code` string, nullable
- `x-whitelabel-studio` string, nullable
- `authorization` string, nullable

## Request body

- TikTokLoginRequest
  - `code_challenge` string, required
  - `code_verifier` string, required
  - `account_name` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/muapi/apis/muapi-api.md) · [All operations](https://skmtc.dev/muapi/apis/muapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/muapi/apis/muapi-api/revisions/e4b7374381e5?raw)
