# Guides For Creating Tiktok Marketing Api Developer Account And Application What is this guide for ? - To create a Tiktok developer account and Tiktok developer application - To use Titkok developer application to generate access token ## Prerequisites - Basic knowledge of [TikTok Ads Manager and TikTok Marketing API](https://ads.tiktok.com/marketing_api/docs?id=1701890905779201). - A [developer account](https://ads.tiktok.com/marketing_api/docs?id=1701890911024129) and an approved application in [TikTok Marketing API](https://ads.tiktok.com/marketing_api/homepage) ## User Guide: 1. From the TikTok Marketing API homepage, select the **Register** button on the top right. ![](/assets/72058452.19a30962c1522fc0c858fb67be0b686f98ee5c386674c4a6fac40e5faf203b75.1ee14251.png) 1. Type in your login credentials and confirm your password. 2. Select **Send Code.** ![](/assets/72058451.c818d88f392f7544ef04133dc18e859e60ab1de79cfda36b79bde943740581e9.1ee14251.png) 1. Next, you will receive an SMS with a verification code. Type the code into the **Verification Code** field and select **Sign Up.**Select **Send Code** if you do not receive a verification code. ![](/assets/72058450.80227bbcb925ade093fb2acc56438d8592337217466743f2c28005f7707a1e97.1ee14251.png) 1. After correctly entering the verification code, you are redirected to the login screen, where you can use your new credentials. ![](/assets/72058449.3ae27e8da13783f613860b81daaa4fa0e69b61c45e766b125f1f4dab31c0b24d.1ee14251.png) 1. Slide the bar to align with the displayed image to complete the verification steps. ![](/assets/72058448.a97d83d0f7e4ac345779a3fd69529ba30f17c15c2bad3832c889f15fcc5f0c16.1ee14251.png) You are now logged into the TikTok Marketing API homepage. ![](/assets/72058447.8c1d5598b442d86c9e9016f31c6c94f92efb33c5af8a7214e7ea7cf30607d315.1ee14251.png) 1. Select **Become a Developer** from the top-right menu. ![](/assets/72058446.ce7b6b5be465bca1e302aa8c69374cd02505e1724800af1da7ab30b246c1a383.1ee14251.png) 1. A new screen appears. Type in your login information and choose **Direct Advertiser** in the field. **What best describes you or your company**. Select **Send Code** to verify your email and phone. 2. Select **Next**. ![](/assets/72058445.acfee1e6c46fcac82f11c2691da9208d83909166af82fb935156ee94749c3475.1ee14251.png) 1. Type your information, including your Company Name, Company Website, etc. Select **Next.** ![](/assets/72058444.19878f2ee74efa3361beeb615788a1b164e76027ad6de449ccdbfb2eace41cc7.1ee14251.png) 1. Navigate to the **Create Application** pane. Type your application name and description. 2. Type your local IP address in the **Advertiser redirect URL**. You might need certain permissions. The following example identifies possible permissions. 3. Select **Confirm**. ![](/assets/82444367.8350e97dc3b17ab3fb3384b0d72aa12c7fe8276793843c4e80c8b7b75bacd5ec.1ee14251.png) 1. You are redirected to the **My Apps** page, where you can view the status of your application. Application approval might take two or three business days. ![](/assets/72058442.330484d4960d263bb8519aabda1afe3793d8d4b6b1036af9c2d088710ffb8397.1ee14251.png) ## Obtain your App ID and Secret to Get your Access Token You must have your App ID and Secret before you can get your TikTok Access Token. 1. From the [TikTok Marketing API homepage](https://ads.tiktok.com/marketing_api/homepage), select **Log In** in the top right. 2. Select the **My Apps** to view your application. 3. Select the app name you want. ![](/assets/tiktok-marketing-api-export-integration_72058429-2024-02-10.bf6444c3fdd8db6e1f4d65e8d3743be4be38db1928cd258d491b2556088d39b3.5208ab4f.png) 1. You can view basic information on the new screen, including the **App ID** and **Secret**. Take note of this information for later. 2. Select **Copy** to retain the Secret on your clipboard. ![](/assets/72058440.6c9c5a266e6411f8a51813f16089f957dc09aaf0fd4a3e60debe34a8934e50dc.1ee14251.png) 1. On the current application's screen, scroll down to **Authorized URL**. ![](/assets/72058439.2185f405966e6639087eb6f6461a2ca5e0f2195b2e50887eb9150539c22b560f.1ee14251.png) 1. Copy the **Authorized URL,** paste it into an open web browser, and press Enter. You will be prompted to log in to your TikTok Ads Account, and then a new screen will appear. select **Confirm**. ![](/assets/72058438.3d5ddfb04f6dcc1af2a4b24082657854cc66fef1ea683ba5181123f6476f7e01.1ee14251.png) 1. You will be redirected to a non-existent webpage. Copy the URL in the webpage and get the auth_code value. For example, your URL might look like this: ``` http://192.168.101.1/callback?auth_code=11111&code=11111&state=your_custom_params ``` 1. Using your preferred API request tool, such as POSTMAN, you can send a request to [https://business-api.tiktok.com/open_api/v1.2/oauth2/access_token/](https://business-api.tiktok.com/open_api/v1.2/oauth2/access_token/) with a request body as shown in the following example. ```json { "app_id" : "{your_app_id}", "auth_code" : "{auth_code_in_above_step}", "secret" : "{your_app_secret}" } ``` 1. Next, select **Send**. 2. Alternatively, you may use cURL with the following command ``` $ curl --location --request POST 'https://business-api.tiktok.com/open_api/v1.2/oauth2/access_token/' \ --header 'Content-Type: application/json' \ --data-raw '{ "app_id" : "{your_app_id}", "auth_code" : "{auth_code_in_above_step}", "secret" : "{your_app_secret}" }' ``` 1. After you receive the response with the access_token and advertiser_ids, as in the following example, you are ready to integrate with TikTok. ``` { "message": "OK", "code": 0, "data": { "access_token": "********************", "scope": [ 1, 3, 4 ], "advertiser_ids": [ ] }, "request_id": "11111" } ```