Getting started
Brand owners and managers make keys in Brand settings, Developers. A key is shown once when it is made, starts with tft_live_, and reads only your own brand. Each key has scopes; give it only what it needs. A brand can have up to 10 working keys and can revoke any of them at once.
campaigns:read: Your campaigns with their budget, spend, verified views and clip counts.clips:read: The clips on each campaign with their views, engagement and earnings.reports:read: Daily views and spend per campaign, and the monthly report.jobs:read: Your jobs with their slots, and the submitted, approved and rejected tasks on each.
Send the key in the Authorization header. Every answer is JSON. Money is in sen (100 sen is RM1), times are ISO 8601 in UTC, and days are Malaysian days.
A few field names, such as clipper_id, still use the old word. They refer to the creator, and the names stay as they are so existing integrations keep working. The API covers campaigns and their clips; jobs and quick tasks are not in it yet.
Limits and paging
Each key can make 120 requests a minute. Every answer carries x-ratelimit-limit; past the limit you get status 429 with retry-after in seconds.
Lists come oldest first, 50 at a time (up to 100 with limit). When there is more, the answer has a next_cursor; send it back as cursor for the next page. Keep the last cursor to fetch only what is new later.
Errors
An error has a status code and a body with a code you can test for and a message you can show.