Full reference, including response formats: the Developers page (https://jaceo.vercel.app/developers).
Videos
Every video uploaded to Jace is still stored, and apps can use them again.
GET /api/oauth/videos: public videos, newest first (?user_id=, ?q=, page with ?before=). Works with a user token or just your app's client id and secret (HTTP Basic), so you can show videos to people who aren't signed in.GET /api/oauth/videos/mine: every video the signed-in person owns, including private and unlisted ones. Needs the videos scope.GET /api/oauth/videos/{id}: one video with its comments. Unlisted videos work for anyone with the id; private ones only for their owner.POST /api/oauth/videos/uploads (get a signed upload URL) then POST /api/oauth/videos (save it); PATCH and DELETE /api/oauth/videos/{id} (owner or a Jace admin); POST/DELETE .../likes; POST .../comments.Changing a profile from an app (official apps)
POST /api/oauth/profile with { "username"?, "picture"? } changes the signed-in person's Jace username and/or picture. picture is a public https image URL (or null to remove it); Jace downloads it and keeps its own copy, so the response's picture is a Jace URL. Errors include 409 username_taken and 400 invalid_request.
Profile webhooks (official apps)
Set a Profile webhook URL under Manage account → Developer. When someone who has signed in to your app changes their Jace picture or username (on Jace or through the endpoint above), Jace POSTs:
{ "type": "user.updated", "user_id": "...", "changed": ["picture" | "username"], "sent_at": "..." }
The request isn't signed, so don't trust it: re-read the person from Jace (GET /api/users/{user_id}, public) and update only what actually changed. Reply with any 2xx quickly; Jace waits 5 seconds and doesn't retry. Sending Jace its own current picture URL changes nothing, so syncing can't loop.
Sign in to reply.