API
Through the API a video is only uploaded: it appears in the dashboard under "Awaiting confirmation", and you check the preview, choose privacy and the other settings and confirm the post yourself. API videos are posted only after confirmation in the dashboard; unconfirmed ones are deleted after 7 days.
Authentication
Every request carries an Authorization: Bearer ep_your_key header. The key is created in the dashboard, on the "My posts" page — you must first check the consent box for posting on your own behalf; without it, no key is issued.
Request fields
POST /api/v1/posts accepts multipart/form-data. video, publish_at and request_id are required. Post settings (privacy, comments, duets, stitches, commercial content flags) are not sent through the API: a request that includes any of them is rejected.
video— a video file, MP4, MOV or WebM, up to 4GBcaption— the video caption, optional; it can be edited at confirmationpublish_at— the string now or an ISO 8601 date-time with a timezone, for example 2026-10-01T12:00:00+03:00; the video goes to TikTok no earlier than this time and no earlier than your confirmationrequest_id— any string for one upload attempt; repeating it with the same value does not create a second video
Example request
curl -X POST https://publisher.emileasy.com/api/v1/posts \ -H "Authorization: Bearer ep_your_key" \ -F "video=@reel.mp4" \ -F "caption=Hello!" \ -F "publish_at=now" \ -F "request_id=course-lesson-3"
Responses
201 — video uploaded, awaiting confirmation
{"id": 42, "status": "awaiting", "confirm_url": "https://publisher.emileasy.com/app/posts/42/confirm"} — open the link in the dashboard to confirm the post
200 — repeated request with the same request_id
the same record, no second video
422 — request error
{"error": "privacy_level: field is not accepted: settings are chosen when you confirm in the dashboard"} — no video is created and the file is not kept on disk
401 — invalid or revoked key
the request is rejected before any processing
Checking status
GET /api/v1/posts/{id} returns one video's status, link and error; GET /api/v1/posts lists every video made with this key. The status awaiting means the video waits for confirmation in the dashboard; after confirmation it becomes queued.