Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · Social Media

How to Use TikTok direct message link in Muse Code

Generates a share link intended to open TikTok messaging for a specified account. Use it to prepare a business contact action; the documented output is a link, with no message history or delivery confirmation documented.

Prompts to try with TikTok direct message link in Muse Code

Copy an example into Muse Code, or ask in your own words.

Use TikTok direct message link for Duolingo (@duolingo), using its existing account record, and add the returned link to our partnership contact component.

TikTok direct message linkMuse Code
Try asking
  • Use TikTok direct message link for Ryanair (@ryanair) and save the returned link beside its existing entry in our event invitation file.

  • Use TikTok direct message link for Chipotle (@chipotle) and add the returned destination to our mobile contact review checklist.

  • Use TikTok direct message link for The Washington Post (@washingtonpost) and attach the returned link to our media permission task in the project.

  • Use TikTok direct message link for Netflix (@netflix) and populate its contact action in our brand directory without marking a message as delivered.

How to set up TikTok direct message link in Muse Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    muse mcp login spiral

Use the Spiral skill

  1. Send Muse Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run TikTok direct message link

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "tikhub",
        "model": "tikhub/tiktok-app-v3-open-tiktok-app-to-send-private-message",
        "input": {
          "uid": "7059867056504407087"
        }
      }'

Then paste one of the prompts above: Muse Code finds TikTok direct message link on Spiral, shows the price and runs it.

TikTok direct message link providers and prices

Spiral runs TikTok direct message link through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media

What can you do with TikTok direct message link in Muse Code?

Add TikTok messaging links to public brand records in your project's contact interface. Keep the returned link separate from message delivery and conversation history, which this endpoint does not document.

Add a business contact action

Attach a generated TikTok messaging link to an existing public brand record so a teammate can open the intended contact destination.

Prepare a partnership review

Include a messaging link in a proposed brand collaboration brief alongside the team's existing notes and draft invitation.

Prepare event invitations

Generate contact links for public business accounts selected for an event, then place them in the organizer's invitation review queue.

Request permission to reuse brand content

Add a TikTok messaging link to a media permission task so an editor can approach the public business account associated with the content.

Hand off a business inquiry

Pair a prepared question for a public company account with its messaging link in a teammate's task brief.

Check mobile contact destinations

Generate links for known public brand accounts and use them in a manual mobile review of which TikTok messaging destination opens.

Questions about TikTok direct message link in Muse Code

Can Muse Code use TikTok direct message link?

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run TikTok direct message link like any built-in tool.

How much does TikTok direct message link cost in Muse Code?

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

Do I need a TikHub account to use TikTok direct message link in Muse Code?

No. Spiral runs TikTok direct message link on its own TikHub account. You sign in to Spiral once and never paste a key.

How long does it take to set up TikTok direct message link in Muse Code?

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

Does Muse Code wait while TikTok direct message link runs?

TikTok direct message link runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

Does this return private TikTok conversations?

TikHub documents a share link as the return value. Message text, inbox contents, and conversation history are not described as outputs of this endpoint.

Does getting a link confirm that a message was delivered?

No delivery confirmation is documented. The specified output is a share link, so receiving that link does not establish that a message reached the recipient.

What age restriction applies to TikTok direct messages?

TikTok limits sending and receiving direct messages to people aged 16 and older. Generating a messaging link does not remove that restriction.

Can a link bypass a recipient's message request approval?

TikTok says a recipient who does not follow the sender must accept a message request before direct messaging can proceed. A generated link does not replace that acceptance.

Does TikTok allow spam through messaging links?

TikTok explicitly prohibits spam, including manipulating engagement signals to increase content reach. Generating a messaging link does not exempt activity from that policy.

Get started

Start using TikTok direct message link in Muse Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse Code:

Set up Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options