TikTok
Read the connected TikTok account's profile and videos, and their view and like counts.
Connect it with: Sign in (OAuth). TikTok's own documentation: https://developers.tiktok.com/doc/login-kit-web.
What agents can do
Connect TikTok so the agents working your tasks can reach it. With it connected, they can:
- Read the connected account's display name, avatar and follower, like and video counts.
- List the account's public videos with their view, like, comment and share counts.
- Put together a performance summary of recent videos for a marketing report.
Before you start
- A TikTok account. A Business or Creator account is not required, but its statistics are what agents read.
- A Jaah account. Anyone can add a personal secret; an organization secret needs an Org Owner or Admin.
Connect with TikTok
This is the quickest way in: you sign in to TikTok and approve what Jaah asks for. You never copy a key.
- In Jaah, open Secrets and select New.
- Search for TikTok and select its card.
- Give the secret a name you will recognize, such as the account or workspace it reaches, and choose who can use it (see Who can use it).
- Select Connect TikTok. TikTok's sign-in window opens.
- Sign in to TikTok if asked, check the access listed, and approve it.
- You land back in Jaah on the new secret, which reads Connected once its test passes.
If the button reads Jaah app not configured, this Jaah has no app registered at TikTok yet. Use your own OAuth app until it does (see Use your own OAuth app).
Scopes Jaah requests
Jaah asks TikTok for these scopes, and no others. A scope marked optional is a checkbox on the Connect screen: untick it and agents simply cannot do that part.
| Scope | Why Jaah asks for it | Required |
|---|---|---|
user.info.basic | Read the account's display name and avatar, so the secret shows which account it is | Yes |
user.info.stats | Read follower, following, like and video counts for reporting | No — you may untick it |
video.list | List the account's public videos with their view, like, comment and share counts | No — you may untick it |
Connect with an API key
TikTok has no API key option in Jaah: connect with the sign-in above.
Use your own OAuth app
Register your own OAuth app at TikTok when your company requires apps it controls, or before this Jaah has an app registered there.
- Create an OAuth app in TikTok's developer console, https://developers.tiktok.com/apps (TikTok's documentation).
- Set its redirect URI to
https://app.jaah.ai/api/credentials/connect/callback(on your own Jaah, its console address followed by/api/credentials/connect/callback). - Give it the scopes in Scopes Jaah requests.
- Copy its client ID and client secret.
- In Jaah, start a new TikTok secret, select Use your own OAuth app, paste both values and select Connect TikTok.
The client secret is stored with the connection, encrypted, like any other secret value.
Test the connection
Select Test on the secret. Jaah calls TikTok's API once (GET https://open.tiktokapis.com/v2/user/info/?fields=open_id,display_name) with the stored values, and shows who it answered as, or which value TikTok refused and the status it answered. Jaah also tests automatically when you save or reconnect.
The last result and its time stay on the secret's page, so you can see whether it still works without testing again.
Who can use it
Every secret has an owner, and the owner decides who can use it:
- Personal — only your own tasks can use it. This is the default.
- Organization — every task in the organization can use it. Only Org Owners and Admins can choose this.
- Attached to a project — every task on that project can use it, whoever started the task. See Attach a secret to a project.
More on owners and access: How secrets work.
Use it in an agent session
An agent asks for the secret with its credential_get tool, by the secret's path, when it needs it, and gets the values for that one call. The path is the owner's prefix and the secret's name:
org/<name>for an organization secret,projects/<project>/<name>for one attached to a project,me/<name>for your personal one.
A signed-in connection hands the agent a live access_token, with access_token_expires_at. Jaah refreshes it before it expires, so an agent never handles a refresh token.
Tell the agent in your task description which secret to use, for example “use the TikTok secret org/tiktok”.
Manage, rotate or disconnect
Everything is on the secret's page under Secrets:
- Reconnect: when TikTok ends the grant (a password change, a revoked app, an expired refresh), the secret shows Needs reconnect. Select Reconnect and sign in again; agents get the new token on their next call.
- Disconnect: select Delete. The stored values are destroyed and agents lose access on their next call. To end access at TikTok's side too, remove Jaah's access in TikTok > Settings and privacy > Security and permissions > Apps and services permissions.
Limitations
- Read only: agents cannot post, comment or reply. Posting needs TikTok's Content Posting API, which this connection does not request.
- Only the connected account's own profile and videos: TikTok gives apps no access to other accounts, messages or ads.
- Until this Jaah's TikTok app passes TikTok's review, Connect works only for the accounts listed as its Sandbox target users.
- Agents can do only what the connected TikTok account and its granted scopes allow.
Troubleshooting
Test says TikTok rejected the access token (401)
The grant was revoked under TikTok Settings > Security and permissions > Apps and services permissions, or its refresh token expired unused. Select Reconnect.
Connect ends with an error that the redirect URI does not match
The OAuth app's Login Kit > Web redirect URI differs from Jaah's by a character. Copy it again from this page into your own app's settings.
Connect ends with scope_not_authorized
The app lacks a scope it asks for. Add user.info.stats and video.list under the app's Scopes, or untick them on the Connect screen.
Still stuck? Select Test and read the result: it names the value TikTok refused and the status it answered.
FAQ
Can an agent upload a TikTok video?
Not with this connection; it asks for read scopes only.
Why does the Connect screen say client key?
TikTok calls the OAuth client ID a client key. Paste it as the client ID if you use your own app.
Can Jaah or an admin see the key or token?
No. Jaah stores it encrypted and never shows it again. Only the tasks allowed to use the secret receive it, at the moment they ask for it.
Can I connect more than one TikTok account?
Yes. Add one secret per account, each with its own name, and tell the agent which one to use.