Cue
Platforms

TikTok

Publishing to TikTok with Cue

Connect your TikTok account to schedule and publish posts through Cue.

Overview

TikTok is a short-form video platform where you can share creative video content with your audience. Cue integrates with the TikTok API to publish content on your behalf.

Sign up for a TikTok account at tiktok.com.

Authentication

TikTok uses OAuth 2.0 for secure authentication. You don't need to create API credentials - Cue handles this for you.

Connecting Your Account

  1. Go to Profiles in your Cue dashboard
  2. Click Connect Account on a profile
  3. Select TikTok
  4. You'll be redirected to TikTok to authorize access
  5. Sign in and grant Cue permission to post on your behalf
  6. You'll be redirected back to Cue automatically

Your credentials are never shared with Cue.

Permissions

Cue requests the following permissions:

  • video.publish - Publish videos to your account
  • user.info.basic - Read your basic profile information

Disconnecting

To disconnect your TikTok account, go to your profile and click Disconnect next to the TikTok connection. This revokes Cue's access to your account.

You can also revoke access from TikTok Settings under Security and login > Manage app permissions.

Content Limits

TikTok enforces the following limits on posts:

LimitValue
Caption2,200 characters
Hashtags100 per post
Video length10 minutes
File size4 GB (video)
Aspect ratio9:16 (recommended)
Resolution1080x1920 (recommended)

Cue automatically validates your content before publishing to prevent errors.

Publishing a Post

curl -X POST https://api.oncue.so/v1/posts \
  -H "Authorization: Bearer cue_sk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "prf_abc123",
    "platforms": {
      "sac_tiktok1": {
        "items": [{ "content": "Check out this amazing video!" }]
      }
    },
    "publishNow": true
  }'
const response = await fetch("https://api.oncue.so/v1/posts", {
  method: "POST",
  headers: {
    Authorization: "Bearer cue_sk_your_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    profileId: "prf_abc123",
    platforms: {
      sac_tiktok1: {
        items: [{ content: "Check out this amazing video!" }],
      },
    },
    publishNow: true,
  }),
});

Schedule for Later

curl -X POST https://api.oncue.so/v1/posts \
  -H "Authorization: Bearer cue_sk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "prf_abc123",
    "platforms": {
      "sac_tiktok1": {
        "items": [{ "content": "Scheduled TikTok video" }]
      }
    },
    "scheduledAt": "2024-01-20T09:00:00-05:00"
  }'
const response = await fetch("https://api.oncue.so/v1/posts", {
  method: "POST",
  headers: {
    Authorization: "Bearer cue_sk_your_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    profileId: "prf_abc123",
    platforms: {
      sac_tiktok1: {
        items: [{ content: "Scheduled TikTok video" }],
      },
    },
    scheduledAt: "2024-01-20T09:00:00-05:00",
  }),
});

Response

{
  "data": {
    "id": "pst_xyz789",
    "profileId": "prf_abc123",
    "content": "Check out this amazing video!",
    "status": "queued",
    "scheduledAt": null,
    "createdAt": "2024-01-15T10:00:00Z",
    "updatedAt": "2024-01-15T10:00:00Z"
  },
  "message": "Post queued for publishing to 1 platform(s)"
}

Error Handling

TikTok API errors are translated into user-friendly messages:

Error CodeMeaningSolution
401Authentication failedReconnect your TikTok account
403Account restrictedCheck your TikTok account status
400Content validation failedCheck video format and caption length
429Rate limit exceededWait and retry later

Common Issues

"Reconnect required" error

  • Your access token has expired or been revoked
  • Go to your profile and reconnect your TikTok account

"Caption too long" error

  • Your caption exceeds 2,200 characters
  • Shorten your caption or remove hashtags

"Video format not supported" error

  • TikTok requires specific video formats
  • Use MP4 or MOV format
  • Ensure video codec is H.264

"Account restricted" error

  • Your TikTok account may have restrictions
  • Check your account status in the TikTok app

Troubleshooting

Connection Issues

Cannot redirect to TikTok during OAuth

  • Check your internet connection
  • Try using a different browser
  • Disable browser extensions that might block redirects

OAuth returns error immediately

  • Your TikTok account may have restrictions
  • TikTok's OAuth service may be experiencing issues
  • Try again in a few minutes

"Age verification required"

  • TikTok requires age verification for certain accounts
  • Complete verification in the TikTok app

Publishing Issues

Videos not appearing on TikTok

  • Check if your post is still in "queued" status
  • Video processing can take several minutes
  • Check the post's platform status for error details

Video quality issues

  • Use recommended resolution (1080x1920)
  • Export in high quality settings
  • Use recommended aspect ratio (9:16)

Hashtags not trending

  • Use relevant and trending hashtags
  • Avoid overusing hashtags
  • Research popular hashtags in your niche

Best Practices

Content Guidelines

  • Create vertical videos (9:16 aspect ratio)
  • Hook viewers in the first 3 seconds
  • Use trending sounds and music
  • Keep videos concise and engaging

Video Quality

  • Record in 1080p or higher
  • Use good lighting
  • Stabilize your camera
  • Edit for pacing and engagement

Hashtags and Discoverability

  • Use 3-5 relevant hashtags
  • Mix trending and niche hashtags
  • Include hashtags in caption naturally
  • Research trending topics

Timing

  • Post when your audience is most active
  • TikTok Analytics shows optimal posting times
  • Consistency matters more than volume

Further Reading

On this page