{"name":"Teaselock creator API","version":1,"endpoints":[{"method":"GET","path":"/api/v1/me","does":"Your account: link name, display name, status"},{"method":"GET","path":"/api/v1/videos","does":"Your videos, newest first (?status=draft|in_review|live&limit=&offset=)"},{"method":"GET","path":"/api/v1/videos/{id}","does":"One video, with its checklist"},{"method":"POST","path":"/api/v1/videos","does":"Start a draft: title, description, price_pence, only_me"},{"method":"PATCH","path":"/api/v1/videos/{id}","does":"Change a draft: title, description, price_pence, tags, launch_offer, early_access, allow_download"},{"method":"POST","path":"/api/v1/uploads","does":"Start an upload: kind (video, cover, trailer), filename, type, size"},{"method":"PUT","path":"/api/v1/uploads/{id}/parts/{n}","does":"Send one piece of the file"},{"method":"POST","path":"/api/v1/uploads/{id}/complete","does":"Finish the upload: parts [{partNumber, etag}]"},{"method":"POST","path":"/api/v1/videos/{id}/attach","does":"Attach a finished upload: kind, media_id"},{"method":"POST","path":"/api/v1/videos/{id}/submit","does":"Send the draft to review"},{"method":"GET","path":"/api/v1/videos/{id}/co_stars","does":"Who is in a video and where their consent has got to"},{"method":"POST","path":"/api/v1/videos/{id}/co_stars","does":"Add someone who appears (consent keys only): route release, link or tag"},{"method":"DELETE","path":"/api/v1/videos/{id}/co_stars/{co_star_id}","does":"Remove someone from a draft (consent keys only)"},{"method":"GET","path":"/api/v1/co_stars","does":"People you added with a release before whose consent we approved (consent keys only)"},{"method":"POST","path":"/api/v1/videos/{id}/share","does":"Offer a co-star a share of this video's sales: handle, percent. They accept in their own account"},{"method":"GET","path":"/api/v1/sales","does":"Your sales, newest first (?since=ISO date&limit=)"},{"method":"GET","path":"/api/v1/earnings","does":"Available, held, pending and paid, in pence"}]}