Hosted tool
Publish to TikTok
Coming
Publish content to an explicitly authorized connected account.
social.tiktok.publishversion 1
Price
0.01
credits per call
Availability
Coming
Published in the catalog, not yet callable.
Access
Coming
Category Social Media
Input
{
"additionalProperties": false,
"properties": {
"media_url": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
}
},
"required": [
"media_url"
],
"type": "object"
}Result
object<{post_id:string,url:string}>Default fields: post_id url
Limits
| Synchronous deadline | 15 s |
|---|---|
| Maximum result | 65,536 bytes |
| Result pages | 1 |
| Maximum upstream read | 1,048,576 bytes |
Example call
Provisional: the invoke contract ships with the execution lane
curl https://haidercode.ai/v1/tools/social.tiktok.publish/invoke \
-H "Authorization: Bearer <HK_KEY>" \
-H "Content-Type: application/json" \
-H 'Idempotency-Key: tiktok-publish-1' \
-d '{"arguments":{"media_url":"…"},"max_credits":"0.05"}'Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.