Hi Ertin,
Joe here, from the MirageCHAT dev team. Thanks for testing the API, and glad Facebook, TikTok and Instagram are all working for you.
For TikTok music there are three steps, no separate upload needed:
- Find a sound:
GET /api/ext/v1/music?platform=tiktok. Addtrending=true&country=USfor what's trending in a country,genre=POPto filter, orq=summerto search titles and artists (2+ letters). Every TikTok sound there comes from TikTok's Commercial Music Library, socommercial_okis true for business accounts. - See how a sound is used (new today):
GET /api/ext/v1/music/{id}/videos?country=USreturns the TikTok videos trending with that sound:url,embed_urlfor TikTok's player, author and cover. So you can check it fits before you pick it. - Post with it: on
POST /postsadd"sound": { "tiktok": "<id>" }. A TikTok sound goes on video posts, through TikTok Business, with privacy set to Everyone.
There's no endpoint yet that suggests music from the video itself. For now you browse or search the catalogue and pick the track. With a reseller key, send X-Workspace-Id on these calls just like the others.
Docs: miragechat.io/developers/publishing/ (Music section), and the OpenAPI file at miragechat.io/developers/publishing/openapi.json
If anything doesn't behave as described, send me the request and the response and I'll look at it.
Cheers,
Joe
MirageCHAT Developer