---
title: Integrating with TikTok
slug: integrating-with-tiktok
docTags: 
createdAt: 2020-04-23T04:20:18.000Z
---

Pathfix allows you to easily add end-user OAuth based integration, handling authorization and enable communication between your app and TikTok in just a few minutes.

Before proceeding, you will first need to register your application with TikTok Developer. Please refer the developer documentation provided by TikTok here: [https://developers.tiktok.com](https://developers.tiktok.com)&#x20;

**Please note:** You will need an **existing&#x20;**&#x64;eveloper account with TikTok and be logged in to access this. For any new TikTok developer apps, we are working on adding support for TikTok V2 to support the latest version.

This documentation is for TikTok integration. For **TikTok Marketing API**, please create the developer account at [https://ads.tiktok.com/marketing\_api/homepage](https://ads.tiktok.com/marketing_api/homepage)

## Create OAuth App in TikTok

Access your Application on TikTok Developers

Once you have added your application, you will need to navigate to `Apps`

- Select the **App&#x20;**&#x79;ou want to enable the connection and click on it
- Complete the settings in **Configuration&#x20;**- add your company name, logo and description



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/RT1-lz9k7m99Ey4XW-CsT_image.png" size="86" width="2198" height="1306" position="center" showCaption="false"}



- Under **Products**, add your Terms of Service and Privacy URL
- For the **Redirect domain**, enter your domain&#x20;



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/9cG7wwuwucz_Bch8lcxDI_image.png" size="86" width="2217" height="1315" position="center" showCaption="false"}



- Under **Webhooks**, add the Pathfix Redirect URI: `https://labs.pathfix.com/integrate/command`



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/O89qyBFgE-twrWkn69_k5_image.png" size="86" width="2209" height="1246" position="center" showCaption="false"}



- Copy your Client Key and Client Secret for use in Pathfix



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/4jZ89g1pWfgGw0N6UJtZv_image.png" size="86" width="2209" height="1316" position="center" showCaption="false"}



## Setup in Pathfix



- Login to your Pathfix account and click on `Add Application`
- Add the name of your SaaS and hit `Save`
- Select `Tiktok` from the list of providers to integrate with. You can change the Display `Name` and `Description`.&#x20;
- Enter the `Client ID` and `Client Secret` generated from TikTok
- Edit the scopes to include scopes you wish to access and click on `Save`
- Click on `Test Connection` and Connect an account to test the setup
- Once connected successfully, you will be able to choose a sample API from the dropdown to run test API calls
- Select a sample API from the dropdown and click on Send



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/97Kh-Fr_ltWU5Ox31ixvd_image.png" size="76" width="1160" height="1044" position="center" showCaption="false"}



## Adding Integration To Your SaaS

There are 2 steps to adding the integration to your SaaS

1. [End-user authorization](docId\:MsCMNgUGRsGrzSCMLCiXf)
2. [Enable pass-through API](docId\:JiDAxEPNR2Owz8w4_JpBK)



To add the integration to your Bubble app, please follow this documentation [Bubble.io Setup](https://docs.pathfix.com/bubble)



Need help? Reach out to us at support\@pathfix.com and we would be happy to assist!

