{"openapi":"3.1.0","info":{"title":"Launcher API","version":"0.1.0","description":"The one API every Launcher client uses: the web app, the mobile, desktop, and extension apps, your scripts, and AI assistants. Everything acts on the caller's own data.\n\n- **Signing in.** Send a personal API key (`lp_…`, from Account → API keys) or a Logto access token as `Authorization: Bearer …`. In a signed-in browser, the session cookie goes along by itself, so *Try it out* works here without a key.\n- **Errors** are `{ \"error\": \"…\" }` with the status.\n- **Lists** come a page at a time: pass the answer's `nextCursor` back as `?cursor=`.\n\nGenerated from the server's routes and the shared contract. The MCP tools and the NATS events have their own references."},"tags":[{"name":"Dashboard","description":"One validated document per person: profiles of tiles, shared tiles, the tag catalog, and the Start page. Every write is checked in full, so a rejected one changes nothing."},{"name":"Profiles"},{"name":"Tiles","description":"A tile id is unique only within its profile, so a tile is named by both; `shared` is the list every profile shows."},{"name":"Tags"},{"name":"Clipboard","description":"Texts and files a person keeps to paste again elsewhere. A signed-in session's only: not an API key's, an application's or an AI assistant's."},{"name":"Android apps","description":"The deployment's catalog of Android builds, the same for everyone: what an app tile downloads and the phone launcher installs. A build is identified by its SHA-256, read back and checked before it is listed; publishing needs publish:apps."},{"name":"Browser extensions","description":"The catalog's extension zips, the newest of each only: what an extension tile downloads."},{"name":"Logos","description":"The tile logos this server keeps; a document names one as `/icons/<file>`. Read publicly, from any origin."},{"name":"Start page","description":"Its layout is part of the dashboard document; its widgets' data is fetched by the server and kept a while."},{"name":"Account"},{"name":"Servers","description":"Every HomeLab environment runs its own copy of this app: a server. Each keeps the caller's list of them; switching merges it."},{"name":"API keys","description":"Managed with the web session or a Logto token, never with a key."},{"name":"Activity"},{"name":"Notifications"},{"name":"Commands"},{"name":"Sign-in","description":"The web app's own sign-in: a login and a password, and invite links an admin issues."},{"name":"Server"},{"name":"AI assistants (MCP)"},{"name":"Reference"}],"paths":{"/api/account/api-keys":{"get":{"operationId":"getApiAccountApiKeys","summary":"List API keys","description":"The caller's API keys: list, create (the secret is answered once), revoke (`?id=`).\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["API keys"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The keys, without their secrets","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postApiAccountApiKeys","summary":"Create an API key","description":"The caller's API keys: list, create (the secret is answered once), revoke (`?id=`).\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["API keys"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"expiresInDays":{"default":90,"anyOf":[{"type":"number","const":30},{"type":"number","const":90},{"type":"number","const":365},{"type":"null"}]}},"required":["name"]}}}},"responses":{"201":{"description":"The key, and its secret: shown this once","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/ApiKey"},"token":{"type":"string"}},"required":["key","token"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiAccountApiKeys","summary":"Revoke an API key","description":"The caller's API keys: list, create (the secret is answered once), revoke (`?id=`).\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["API keys"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"204":{"description":"Revoked, or already gone"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/appearance":{"put":{"operationId":"putApiAccountAppearance","summary":"Save the appearance to the profile","description":"`PUT /api/account/appearance` with `{ \"appearance\": \"v1.dark.signal.blue\" }`: saves the shared appearance to the signed-in person's Logto profile, so the next browser they sign in to starts from it. The browser's `hl_appearance` cookie is already set by then; this only makes the choice durable.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appearance":{"type":"string"}},"required":["appearance"]}}}},"responses":{"204":{"description":"Saved to the Logto profile"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/avatar":{"post":{"operationId":"postApiAccountAvatar","summary":"Set the profile photo","description":"The signed-in user's own avatar. POST the image bytes as the request body (Content-Type image/png|jpeg|webp|gif); DELETE goes back to the identity provider's picture, which the next sign-in restores.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"description":"The image's bytes: PNG, JPEG, WebP, or GIF, at most 2 MB","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/gif":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"The person, with the new photo","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"suspended":{"type":"boolean"}},"required":["id","name","email","image","emailVerified","suspended"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiAccountAvatar","summary":"Remove the profile photo","description":"The signed-in user's own avatar. POST the image bytes as the request body (Content-Type image/png|jpeg|webp|gif); DELETE goes back to the identity provider's picture, which the next sign-in restores.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The person, back to the sign-in provider's picture","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"suspended":{"type":"boolean"}},"required":["id","name","email","image","emailVerified","suspended"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/preferences":{"get":{"operationId":"getApiAccountPreferences","summary":"Get the global preferences","description":"The signed-in person's global preferences in their Logto profile (ADR 0037), for the web session (cookies); native clients reach the profile through Logto's Account API themselves.\n\n`GET` answers `{ \"preferences\": \"v2.…\" | null }`. `PUT` with `{ \"preferences\": \"v2.dark.signal.blue.cyberpunk.110.ru.<stamp>\" }` saves the value when it is newer than the profile's, with the v1 appearance in step, and answers with whichever the profile holds afterwards. The browser's `hl_preferences` cookie already carries the choice.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The global preferences in the Logto profile, or null when it holds none (ADR 0037)","content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["preferences"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putApiAccountPreferences","summary":"Save the global preferences","description":"The signed-in person's global preferences in their Logto profile (ADR 0037), for the web session (cookies); native clients reach the profile through Logto's Account API themselves.\n\n`GET` answers `{ \"preferences\": \"v2.…\" | null }`. `PUT` with `{ \"preferences\": \"v2.dark.signal.blue.cyberpunk.110.ru.<stamp>\" }` saves the value when it is newer than the profile's, with the v1 appearance in step, and answers with whichever the profile holds afterwards. The browser's `hl_preferences` cookie already carries the choice.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"type":"string"}},"required":["preferences"]}}}},"responses":{"200":{"description":"Saved when newer than the profile's; either way, the value the profile holds now","content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["preferences"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/servers":{"get":{"operationId":"getApiAccountServers","summary":"List servers","description":"The caller's server list (ADR 0032): the servers, each a HomeLab environment running its own copy of this app, that the web, mobile and extension clients switch between. `GET` answers this server and the list; `PUT { servers: [{ alias, url }] }` replaces the list (this server always stays in it). Each server keeps its own copy: switching to another one merges the list there with `POST /api/account/servers/sync`.","tags":["Servers"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"This server, and the caller's server list (this server always in it)","content":{"application/json":{"schema":{"type":"object","properties":{"current":{"$ref":"#/components/schemas/Server"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Server"}}},"required":["current","items"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putApiAccountServers","summary":"Replace the server list","description":"The caller's server list (ADR 0032): the servers, each a HomeLab environment running its own copy of this app, that the web, mobile and extension clients switch between. `GET` answers this server and the list; `PUT { servers: [{ alias, url }] }` replaces the list (this server always stays in it). Each server keeps its own copy: switching to another one merges the list there with `POST /api/account/servers/sync`.","tags":["Servers"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"servers":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/Server"}}},"required":["servers"]}}}},"responses":{"200":{"description":"The list as stored: this server added back, first, if it was left out","content":{"application/json":{"schema":{"type":"object","properties":{"current":{"$ref":"#/components/schemas/Server"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Server"}}},"required":["current","items"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/servers/sync":{"post":{"operationId":"postApiAccountServersSync","summary":"Merge a server list from another server","description":"`POST { servers: [{ alias, url }] }`: merges a server list a client brings from another server into the caller's list here, as a client does on switching servers. The caller's servers here keep their order and names; new addresses are added after them. Answers the merged list; nothing is stored when nothing is new.","tags":["Servers"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"servers":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/Server"}}},"required":["servers"]}}}},"responses":{"200":{"description":"The merged list: the caller's servers here first, then the new addresses","content":{"application/json":{"schema":{"type":"object","properties":{"current":{"$ref":"#/components/schemas/Server"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Server"}}},"required":["current","items"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/activity":{"get":{"operationId":"getApiActivity","summary":"List activity","description":"The caller's activity, newest first: `?category=business|technical` for one kind, `?limit` and `?cursor` to page. The sentences follow the web app's language cookie, else Accept-Language, else English.","tags":["Activity"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["business","technical"]}}],"responses":{"200":{"description":"A page of activity, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/applications":{"get":{"operationId":"getApiApplications","summary":"List server applications","description":"The deployment's public application directory, identical for every visitor and account.","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Published application websites and links, the same for every visitor and account","content":{"application/json":{"schema":{"type":"object","properties":{"applications":{"type":"array","items":{"$ref":"#/components/schemas/Tile"}}},"required":["applications"],"additionalProperties":false}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps":{"get":{"operationId":"getApiApps","summary":"List the Android apps","description":"`GET`: the newest build of every Android app in the catalog the caller may get, by name: a person's are those an admin gave them, an application (read:dashboard) gets all.\n\nA person gets only the packages an administrator gave them or opened to everyone; any other is answered as one the catalog doesn't have. An application with read:dashboard gets every one.","tags":["Android apps"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The newest build of every app, by name","content":{"application/json":{"schema":{"type":"object","properties":{"apps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"package":{"type":"string"},"versionCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"versionName":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"}},"required":["id","package","versionCode","versionName","label","sha256","size","release","notes","sourceCommit","publishedAt"],"additionalProperties":false}}},"required":["apps"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/{package}":{"get":{"operationId":"getApiAppsPackage","summary":"List an app's builds","description":"`GET`: every build of one app the catalog keeps, newest first; 404 when it has none.\n\nA person gets only the packages an administrator gave them or opened to everyone; any other is answered as one the catalog doesn't have. An application with read:dashboard gets every one.","tags":["Android apps"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"package","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Every build the catalog keeps, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"package":{"type":"string"},"releases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"package":{"type":"string"},"versionCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"versionName":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"}},"required":["id","package","versionCode","versionName","label","sha256","size","release","notes","sourceCommit","publishedAt"],"additionalProperties":false}}},"required":["package","releases"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/{package}/apk":{"get":{"operationId":"getApiAppsPackageApk","summary":"Download an app","description":"`GET`: the app's APK, the newest unless `?release=` names a build, streamed with its SHA-256 in `X-Apk-Sha256` and its version code in `X-Apk-Version-Code`. The hash is its ETag: `If-None-Match` with it is a 304.\n\nA person gets only the packages an administrator gave them or opened to everyone; any other is answered as one the catalog doesn't have. An application with read:dashboard gets every one.","tags":["Android apps"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"package","in":"path","required":true,"schema":{"type":"string"}},{"name":"release","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The APK, with its SHA-256 in X-Apk-Sha256 (and ETag) and its version code in X-Apk-Version-Code","content":{"application/vnd.android.package-archive":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/releases":{"post":{"operationId":"postApiAppsReleases","summary":"Start publishing a build","description":"`POST { package, versionCode, versionName?, label?, sha256, size }` (what `aapt2 dump badging` says, and the file's hash and size): a pending build and its presigned PUT, `{ release, upload }` (201). PUT the APK to `upload.url` with exactly `upload.contentType`, then complete it. Bytes published already answer 200 with `upload` null. Needs publish:apps.\n\nNeeds the publish:apps permission (no API key carries it).","tags":["Android apps"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"package":{"type":"string"},"versionCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"versionName":{"type":"string"},"label":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":"string"},"sourceCommit":{"type":"string"}},"required":["package","versionCode","sha256","size"]}}}},"responses":{"200":{"description":"Published already: `upload` is null","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string"},"package":{"type":"string"},"versionCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"versionName":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"},"status":{"type":"string","enum":["pending","ready"]}},"required":["id","package","versionCode","versionName","label","sha256","size","release","notes","sourceCommit","publishedAt","status"],"additionalProperties":false},"upload":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"contentType":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","contentType","expiresAt"],"additionalProperties":false},{"type":"null"}]}},"required":["release","upload"],"additionalProperties":false}}}},"201":{"description":"A pending build: PUT the APK to `upload.url` with exactly `upload.contentType`, then complete it","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string"},"package":{"type":"string"},"versionCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"versionName":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"},"status":{"type":"string","enum":["pending","ready"]}},"required":["id","package","versionCode","versionName","label","sha256","size","release","notes","sourceCommit","publishedAt","status"],"additionalProperties":false},"upload":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"contentType":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","contentType","expiresAt"],"additionalProperties":false},{"type":"null"}]}},"required":["release","upload"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/releases/{id}":{"delete":{"operationId":"deleteApiAppsReleasesId","summary":"Withdraw a build","description":"`DELETE`: withdraws a build from the catalog (the one before it is the newest again), its file and its row; idempotent. Needs publish:apps.\n\nNeeds the publish:apps permission (no API key carries it).","tags":["Android apps"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Withdrawn, or already gone"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/apps/releases/{id}/complete":{"post":{"operationId":"postApiAppsReleasesIdComplete","summary":"Publish an uploaded build","description":"`POST`: reads the uploaded APK back through a hash; of the size and SHA-256 promised, it becomes its app's newest build and builds past the newest APK_KEEP_RELEASES go, `{ release, pruned }`. Anything else is deleted (422; 413 over APK_MAX_BYTES). Idempotent. Needs publish:apps.\n\nNeeds the publish:apps permission (no API key carries it).","tags":["Android apps"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Checked and published; `pruned` builds past the newest few went","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string"},"package":{"type":"string"},"versionCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"versionName":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"}},"required":["id","package","versionCode","versionName","label","sha256","size","release","notes","sourceCommit","publishedAt"],"additionalProperties":false},"pruned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["release","pruned"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/auth/backchannel-logout":{"post":{"operationId":"postApiAuthBackchannelLogout","summary":"Back-channel logout (Logto calls it)","description":"OpenID Connect Back-Channel Logout, called by Logto (server to server) when the person signs out of any app sharing their Logto session. Registered in Logto as this client's back-channel logout URI, with \"session required\".","tags":["Sign-in"],"security":[],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["logout_token"],"properties":{"logout_token":{"type":"string","description":"Logto's signed logout token"}}}}}},"responses":{"200":{"description":"The named session's web sessions are revoked"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/auth/refresh":{"post":{"operationId":"postApiAuthRefresh","summary":"Renew the web session","description":"Trades the web session's refresh cookie for a new access-token cookie. The client calls this when the API answers 401, then retries once.\n\nUses the refresh cookie; the web client calls it after a 401, then retries once.","tags":["Sign-in"],"security":[],"responses":{"204":{"description":"New session cookies are set"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/auth/session":{"get":{"operationId":"getApiAuthSession","summary":"Who am I","description":"The signed-in user, from the session cookie (web) or a Bearer token (native clients). 401 when there is none — the web client then tries a refresh.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The signed-in person","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"suspended":{"type":"boolean"}},"required":["id","name","email","image","emailVerified","suspended"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/auth/sign-in":{"get":{"operationId":"getApiAuthSignIn","summary":"The sign-in page","description":"Signs in to the web app with a login and a password (ADR 0046): `POST { username, password, returnTo? }` → `{ returnTo }` and the session cookies. This server checks the password at Logto itself, so the browser never leaves Launcher. `GET` (old links) goes to the sign-in page.","tags":["Sign-in"],"security":[],"parameters":[{"name":"returnTo","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"302":{"description":"To `/sign-in`, keeping `returnTo`"}}},"post":{"operationId":"postApiAuthSignIn","summary":"Sign in with a login and a password","description":"Signs in to the web app with a login and a password (ADR 0046): `POST { username, password, returnTo? }` → `{ returnTo }` and the session cookies. This server checks the password at Logto itself, so the browser never leaves Launcher. `GET` (old links) goes to the sign-in page.\n\nChecks the login and password at the HomeLab's Logto, server to server, and sets the session cookies. Only an account an admin invited may sign in. Per address and per login, repeated failures are refused for a while (429 with `Retry-After`).","tags":["Sign-in"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","minLength":1,"maxLength":128},"password":{"type":"string","minLength":1,"maxLength":256},"returnTo":{"type":"string","maxLength":2000}},"required":["username","password"]}}}},"responses":{"200":{"description":"Signed in: the session cookies are set; go to `returnTo`","content":{"application/json":{"schema":{"type":"object","properties":{"returnTo":{"type":"string"}},"required":["returnTo"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many attempts (sign-in, invites; see `Retry-After`), or the AI provider is rate-limited or out of quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/auth/sign-out":{"get":{"operationId":"getApiAuthSignOut","summary":"Sign out","description":"Signs this browser out: its session and refresh token are revoked and the cookies cleared, then it goes home. Other apps' sessions are their own (ADR 0046).","tags":["Sign-in"],"security":[],"responses":{"302":{"description":"The session cookies are cleared and the refresh token revoked; back to the home page"},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/avatars/{userId}":{"get":{"operationId":"getApiAvatarsUserId","summary":"Get a profile photo","description":"Serves an uploaded avatar from object storage under a stable same-origin URL. Callers put `?v=` on it (see /api/account/avatar), so the response can be cached for good — a new upload is a new URL.","tags":["Account"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The image","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/gif":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (If-None-Match)"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No uploaded photo"},"503":{"description":"File storage isn't set up on this server"}}}},"/api/clipboard":{"get":{"operationId":"getApiClipboard","summary":"List the clipboard","description":"The caller's clipboard, newest first: texts, and files with a presigned GET each (`url`); `storage` says where files go and how large they may be, null when this server keeps none. A signed-in session's only, not an API key's.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The caller's items, newest first (a file with a signed GET as `url`), and where file bytes go (`storage`, null without any)","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["text","file"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"public":{"type":"boolean"},"createdAt":{"type":"string"},"url":{"type":"string"}},"required":["id","kind","name","text","mimeType","size","public","createdAt"],"additionalProperties":false}},"storage":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"maxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["origin","maxBytes"],"additionalProperties":false},{"type":"null"}]}},"required":["items","storage"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/{id}":{"patch":{"operationId":"patchApiClipboardId","summary":"Make a file public or private","description":"`PATCH { public }`: makes one of the caller's files public to everyone signed in on the server, or private again; answers the item. `DELETE`: removes one of the caller's clipboard items; already gone is fine.\n\nA public file is listed to everyone signed in on this server (`GET /api/clipboard/shared`), who can fetch it but not change it. A text stays private.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"public":{"type":"boolean"}},"required":["public"]}}}},"responses":{"200":{"description":"The file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["text","file"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"public":{"type":"boolean"},"createdAt":{"type":"string"},"url":{"type":"string"}},"required":["id","kind","name","text","mimeType","size","public","createdAt"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiClipboardId","summary":"Remove a clipboard item","description":"`PATCH { public }`: makes one of the caller's files public to everyone signed in on the server, or private again; answers the item. `DELETE`: removes one of the caller's clipboard items; already gone is fine.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Removed, or already gone"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/{id}/complete":{"post":{"operationId":"postApiClipboardIdComplete","summary":"Finish keeping a file","description":"`POST`: records an upload once the bucket has it (HEAD-verified; bigger than signed for, it is deleted, 413), and lists it. Idempotent.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The file, listed now","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["text","file"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"public":{"type":"boolean"},"createdAt":{"type":"string"},"url":{"type":"string"}},"required":["id","kind","name","text","mimeType","size","public","createdAt"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/{id}/content":{"get":{"operationId":"getApiClipboardIdContent","summary":"Download a file's bytes","description":"A clipboard file's bytes, on this server's origin, where an https page can reach them when the bucket is plain http (ADR 0035). No session: the URL is the permission, signed by `/api/clipboard*` for one method, one item and a short time, like the bucket's own presigned URLs.\n\n`GET`: the bytes of a ready file, inline, under its name. `PUT`: a pending upload's bytes, as the type that was signed; the client then completes it with `POST /api/clipboard/$id/complete`.\n\nThis server's own signed GET, handed out instead of the bucket's when the bucket is plain http and this server https, which a page could not reach. The link is the permission: no session.","tags":["Clipboard"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"expires","in":"query","required":true,"schema":{"type":"string"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The bytes, as the type they were kept with","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putApiClipboardIdContent","summary":"Upload a file's bytes","description":"A clipboard file's bytes, on this server's origin, where an https page can reach them when the bucket is plain http (ADR 0035). No session: the URL is the permission, signed by `/api/clipboard*` for one method, one item and a short time, like the bucket's own presigned URLs.\n\n`GET`: the bytes of a ready file, inline, under its name. `PUT`: a pending upload's bytes, as the type that was signed; the client then completes it with `POST /api/clipboard/$id/complete`.\n\nThis server's own signed PUT (from `POST /api/clipboard/files`), with exactly the signed `Content-Type`; then complete the file. The link is the permission: no session.","tags":["Clipboard"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"expires","in":"query","required":true,"schema":{"type":"string"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"204":{"description":"Stored; complete it next"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/{id}/url":{"get":{"operationId":"getApiClipboardIdUrl","summary":"Get a file's download link","description":"`GET`: a fresh presigned GET for one of the caller's files, `{ url, expiresAt }`.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A fresh signed GET, for the caller's own file or anyone's public one","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/files":{"post":{"operationId":"postApiClipboardFiles","summary":"Start keeping a file","description":"`POST { name, size, mimeType }`: starts keeping a file, `{ id, url, contentType, expiresAt }`. PUT the bytes to `url` with exactly `contentType`, then complete it; until then it isn't listed.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mimeType":{"type":"string"}},"required":["name","size"]}}}},"responses":{"201":{"description":"A signed PUT: send the bytes to `url` with exactly `contentType`, then complete it","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"contentType":{"type":"string"},"expiresAt":{"type":"string"}},"required":["id","url","contentType","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Not the content its name or type says","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/shared":{"get":{"operationId":"getApiClipboardShared","summary":"List the shared files","description":"Every public file on the server, newest first: `{ items }`, each with a signed GET (`url`), its owner's name and `mine`. A signed-in session's only, not an API key's.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Every public file on this server, newest first, each with a signed GET as `url`, its owner and whether it is the caller's","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["text","file"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"public":{"type":"boolean"},"createdAt":{"type":"string"},"url":{"type":"string"},"owner":{"type":"string"},"mine":{"type":"boolean"}},"required":["id","kind","name","text","mimeType","size","public","createdAt","owner","mine"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/clipboard/text":{"post":{"operationId":"postApiClipboardText","summary":"Keep a text","description":"`POST { text, name? }`: keeps a text (up to 100 000 characters), `name` an optional label.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Clipboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"name":{"type":"string"}},"required":["text"]}}}},"responses":{"201":{"description":"The item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["text","file"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"public":{"type":"boolean"},"createdAt":{"type":"string"},"url":{"type":"string"}},"required":["id","kind","name","text","mimeType","size","public","createdAt"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/commands":{"post":{"operationId":"postApiCommands","summary":"Understand a command","description":"One spoken or typed command → the action it asks for (ADR 0028). Changes nothing: the client runs the action through the matching route.\n\nWhat one spoken or typed sentence (at most 2,000 characters) asks for. Built-in phrases need no AI; other wording goes to the server's model. Nothing runs: call the action's own endpoint.","tags":["Commands"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2000}},"required":["text"]}}}},"responses":{"200":{"description":"The action, and how it was understood","content":{"application/json":{"schema":{"type":"object","properties":{"intent":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"open_page"},"page":{"type":"string","enum":["home","activity","account","settings","help"]}},"required":["action","page"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"set_mode"},"mode":{"type":"string","enum":["light","dark","system"]}},"required":["action","mode"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"set_design"},"design":{"type":"string","enum":["soft","signal"]}},"required":["action","design"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"set_accent"},"accent":{"type":"string","enum":["green","rose","amber","blue","red"]}},"required":["action","accent"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"mark_all_notifications_read"}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"sign_out"}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"open_tile"},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["action","name"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"show_profile"},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["action","name"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"unknown"},"reply":{"type":"string","minLength":1,"maxLength":500}},"required":["action","reply"],"additionalProperties":false}]},"source":{"type":"string","enum":["phrase","ai"]}},"required":["intent","source"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many attempts (sign-in, invites; see `Retry-After`), or the AI provider is rate-limited or out of quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/config":{"get":{"operationId":"getApiConfig","summary":"Public configuration","description":"Public, unauthenticated config: this server's name and address, what native clients need to start an OIDC flow (their own Logto application ids here included, so a client switching servers needs no rebuild), and whether the web UI's sign-in (a login and a password) works here.","tags":["Server"],"security":[],"responses":{"200":{"description":"What a native client needs to sign in, and whether sign-in is set up","content":{"application/json":{"schema":{"type":"object","properties":{"server":{"$ref":"#/components/schemas/Server"},"logto":{"anyOf":[{"type":"object","properties":{"endpoint":{"type":"string"},"apiResource":{"type":"string"},"clients":{"type":"object","properties":{"mobile":{"anyOf":[{"type":"string"},{"type":"null"}]},"extension":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mobile","extension"],"additionalProperties":false}},"required":["endpoint","apiResource","clients"],"additionalProperties":false},{"type":"null"}]},"auth":{"type":"object","properties":{"configured":{"type":"boolean"}},"required":["configured"],"additionalProperties":false}},"required":["server","logto","auth"],"additionalProperties":false}}}}}}},"/api/dashboard":{"get":{"operationId":"getApiDashboard","summary":"Get the dashboard","description":"The caller's whole dashboard, with its revision in `ETag`. `PUT` replaces it (the page's Save), creating it for a caller who has none: send the revision back in `If-Match` (or `If-None-Match: *` for a first save) and the format the client keeps in `Launch-Pad-Format`.","tags":["Dashboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The dashboard; its revision is in `ETag`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putApiDashboard","summary":"Replace the dashboard","description":"The caller's whole dashboard, with its revision in `ETag`. `PUT` replaces it (the page's Save), creating it for a caller who has none: send the revision back in `If-Match` (or `If-None-Match: *` for a first save) and the format the client keeps in `Launch-Pad-Format`.\n\nSend back the revision `GET` answered as `If-Match: \"<n>\"` (a 412 when the dashboard moved on since), or `If-None-Match: *` for a first save. Send the format the client keeps in `Launch-Pad-Format` (16 today): a client that predates what the stored dashboard holds is refused with a 422, since its save would drop what it can't keep.","tags":["Dashboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"responses":{"200":{"description":"The stored dashboard and its new revision, also in `ETag`","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"$ref":"#/components/schemas/Dashboard"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["config","revision"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"The dashboard changed since the revision you sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/dashboard/sync":{"post":{"operationId":"postApiDashboardSync","summary":"Merge a browser's copy","description":"`POST { config?, copySuffix? }`: folds a browser's copy into the caller's dashboard and answers `{ config?, revision?, report }`. A sync that adds nothing writes nothing; a profile both sides changed keeps the browser's as a copy named with `copySuffix`.\n\nSend the format the client keeps in `Launch-Pad-Format` (16 today): a client that predates what the stored dashboard holds is refused with a 422, since its save would drop what it can't keep.","tags":["Dashboard"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"$ref":"#/components/schemas/Dashboard"},"copySuffix":{"type":"string"}}}}}},"responses":{"200":{"description":"The dashboard after the merge (its revision also in `ETag`), and what the merge did","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"$ref":"#/components/schemas/Dashboard"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report":{"type":"object","properties":{"kind":{"type":"string","enum":["uploaded","merged","unchanged"]},"mergedProfiles":{"type":"array","items":{"type":"string"}},"addedProfiles":{"type":"array","items":{"type":"string"}},"copiedProfiles":{"type":"array","items":{"type":"string"}},"copiedTiles":{"type":"array","items":{"type":"string"}}},"required":["kind","mergedProfiles","addedProfiles","copiedProfiles","copiedTiles"],"additionalProperties":false}},"required":["report"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/devices":{"get":{"operationId":"getApiDevices","summary":"List devices","description":"The caller's devices (ADR 0039): every sign-in — browsers, the phone, the extension, the desktop app, AI assistants. `GET` lists them, `PATCH ?id=` renames one or lets a signed-out assistant back in, `DELETE ?id=` forgets one already signed out.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Every device the caller signed in on, most recently seen first; `current` marks the one asking","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["web","admin","phone","extension","desktop","assistant","app"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"platform":{"anyOf":[{"type":"string"},{"type":"null"}]},"appVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"signedInAt":{"type":"string"},"lastSeenAt":{"type":"string"},"signedOutAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"online":{"type":"boolean"},"current":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string","enum":["pages"]}}},"required":["id","kind","name","label","platform","appVersion","createdAt","signedInAt","lastSeenAt","signedOutAt","online","current","capabilities"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiDevices","summary":"Rename a device, or let an assistant back in","description":"The caller's devices (ADR 0039): every sign-in — browsers, the phone, the extension, the desktop app, AI assistants. `GET` lists them, `PATCH ?id=` renames one or lets a signed-out assistant back in, `DELETE ?id=` forgets one already signed out.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":60},{"type":"null"}]},"allow":{"type":"boolean","const":true}}}}}},"responses":{"200":{"description":"The device","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["web","admin","phone","extension","desktop","assistant","app"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"platform":{"anyOf":[{"type":"string"},{"type":"null"}]},"appVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"signedInAt":{"type":"string"},"lastSeenAt":{"type":"string"},"signedOutAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"online":{"type":"boolean"},"current":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string","enum":["pages"]}}},"required":["id","kind","name","label","platform","appVersion","createdAt","signedInAt","lastSeenAt","signedOutAt","online","current","capabilities"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiDevices","summary":"Forget a signed-out device","description":"The caller's devices (ADR 0039): every sign-in — browsers, the phone, the extension, the desktop app, AI assistants. `GET` lists them, `PATCH ?id=` renames one or lets a signed-out assistant back in, `DELETE ?id=` forgets one already signed out.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"204":{"description":"Forgotten, or already gone"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/devices/command":{"post":{"operationId":"postApiDevicesCommand","summary":"Control a device","description":"Remote control (ADR 0040): `POST ?id=` with a command sends it to one of the caller's open devices, which follows it within a second. 202 once sent; 409 `device_offline` when the device isn't open, 400 `unsupported` when it can't do that, 429 when too many come at once.\n\nSends one navigation command to one of the person's open devices, which follows it within a second and shows who sent it.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"open_page"},"page":{"type":"string","enum":["home","activity","account","settings","help"]}},"required":["action","page"]},{"type":"object","properties":{"action":{"type":"string","const":"scroll"},"direction":{"type":"string","enum":["up","down"]}},"required":["action","direction"]},{"type":"object","properties":{"action":{"type":"string","const":"back"}},"required":["action"]}]}}}},"responses":{"202":{"description":"Sent: the command's id","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`device_offline`: the device isn't open, so nothing was sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many attempts (sign-in, invites; see `Retry-After`), or the AI provider is rate-limited or out of quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/devices/current":{"put":{"operationId":"putApiDevicesCurrent","summary":"Describe this app's device","description":"A native app describing its own device (ADR 0039): `PUT { kind, label, platform, appVersion }` with the X-Device-Key header it keeps. The phone, the extension and the desktop app send it after every sign-in and start.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["phone","extension","desktop"]},"label":{"anyOf":[{"type":"string","minLength":1,"maxLength":60},{"type":"null"}]},"platform":{"anyOf":[{"type":"string","minLength":1,"maxLength":60},{"type":"null"}]},"appVersion":{"anyOf":[{"type":"string","minLength":1,"maxLength":40},{"type":"null"}]}},"required":["kind"]}}}},"responses":{"200":{"description":"The device named by the X-Device-Key header, as the list shows it","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["web","admin","phone","extension","desktop","assistant","app"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"platform":{"anyOf":[{"type":"string"},{"type":"null"}]},"appVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"signedInAt":{"type":"string"},"lastSeenAt":{"type":"string"},"signedOutAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"online":{"type":"boolean"},"current":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string","enum":["pages"]}}},"required":["id","kind","name","label","platform","appVersion","createdAt","signedInAt","lastSeenAt","signedOutAt","online","current","capabilities"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/devices/sign-out":{"post":{"operationId":"postApiDevicesSignOut","summary":"Sign a device out","description":"Signs one of the caller's devices out from here (ADR 0039): `POST ?id=`. Its browser sessions end at their next request; an app or an AI assistant is refused with `device_signed_out`. Needs a sign-in, never a key.\n\nTakes the web session or a Logto access token, never a personal API key.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The device, signed out: its browser sessions end, and an app or assistant is refused with `code: device_signed_out`","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["web","admin","phone","extension","desktop","assistant","app"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"platform":{"anyOf":[{"type":"string"},{"type":"null"}]},"appVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"signedInAt":{"type":"string"},"lastSeenAt":{"type":"string"},"signedOutAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"online":{"type":"boolean"},"current":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string","enum":["pages"]}}},"required":["id","kind","name","label","platform","appVersion","createdAt","signedInAt","lastSeenAt","signedOutAt","online","current","capabilities"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/devices/stream":{"get":{"operationId":"getApiDevicesStream","summary":"Follow remote-control commands","description":"Remote control (ADR 0040): the caller's device listens for commands, as server-sent events, `GET ?can=pages` naming what it can do. Each command arrives as `event: command` with its envelope as JSON; nothing is replayed. The stream ends after 30 s and the device reconnects; each connect and ping keeps it online. Once the device is signed out the stream says `event: signed_out` and ends.\n\nThe caller's device listens for commands another of the person's devices sends (ADR 0040). While it is open the device is online. A personal API key isn't a device and is refused with 400.","tags":["Devices"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"can","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Server-sent events: `event: command` with the command's envelope (id, from, sentAt, command) as JSON, a `: ping` comment every 25 s, and `event: signed_out` before the stream ends once the device is signed out. Nothing is replayed.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/docs/asyncapi":{"get":{"operationId":"getApiDocsAsyncapi","summary":"The events (AsyncAPI 3.0)","description":"The events published on NATS as an AsyncAPI 3.0 document, generated from the event contract. Public.","tags":["Reference"],"security":[],"responses":{"200":{"description":"Every event published on NATS: subject, envelope, and consumers","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/docs/mcp":{"get":{"operationId":"getApiDocsMcp","summary":"The MCP tools","description":"The MCP server's tools, as `tools/list` answers an assistant, with how to connect. Public.","tags":["Reference"],"security":[],"responses":{"200":{"description":"The MCP server's name, instructions, endpoint, and every tool as `tools/list` answers it","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/docs/openapi":{"get":{"operationId":"getApiDocsOpenapi","summary":"This reference (OpenAPI 3.1)","description":"The HTTP API as an OpenAPI 3.1 document, generated from the routes and the shared contract. Public.","tags":["Reference"],"security":[],"responses":{"200":{"description":"The OpenAPI document","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/extensions":{"get":{"operationId":"getApiExtensions","summary":"List the browser extensions","description":"`GET`: the newest zip of every browser extension in the catalog the caller may get, by name: a person's are those an admin gave them, an application (read:dashboard) gets all.\n\nA person gets only the packages an administrator gave them or opened to everyone; any other is answered as one the catalog doesn't have. An application with read:dashboard gets every one.","tags":["Browser extensions"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"The newest zip of every extension, by name","content":{"application/json":{"schema":{"type":"object","properties":{"extensions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"extension":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"}},"required":["id","extension","name","version","sha256","size","release","notes","sourceCommit","publishedAt"],"additionalProperties":false}}},"required":["extensions"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/extensions/{id}":{"get":{"operationId":"getApiExtensionsId","summary":"Get an extension","description":"`GET`: one extension's zip, `{ extension, release }`; 404 when the catalog has none.\n\nA person gets only the packages an administrator gave them or opened to everyone; any other is answered as one the catalog doesn't have. An application with read:dashboard gets every one.","tags":["Browser extensions"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Its zip","content":{"application/json":{"schema":{"type":"object","properties":{"extension":{"type":"string"},"release":{"type":"object","properties":{"id":{"type":"string"},"extension":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"}},"required":["id","extension","name","version","sha256","size","release","notes","sourceCommit","publishedAt"],"additionalProperties":false}},"required":["extension","release"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/extensions/{id}/zip":{"get":{"operationId":"getApiExtensionsIdZip","summary":"Download an extension","description":"`GET`: the extension's zip (its Chrome build in `chrome/`, its Firefox build in `firefox/`), streamed with its SHA-256 in `X-Extension-Sha256`, which is its ETag too.\n\nA person gets only the packages an administrator gave them or opened to everyone; any other is answered as one the catalog doesn't have. An application with read:dashboard gets every one.","tags":["Browser extensions"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The zip (chrome/ and firefox/ builds), with its SHA-256 in X-Extension-Sha256 (and ETag)","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/extensions/releases":{"post":{"operationId":"postApiExtensionsReleases","summary":"Start publishing an extension's zip","description":"`POST { extension, name?, version?, sha256, size }` (the catalog's id for it, its manifest's name and version, the zip's hash and size): a pending zip and its presigned PUT, `{ release, upload }` (201), or 200 with `upload` null when published already. Needs publish:apps.\n\nNeeds the publish:apps permission (no API key carries it).","tags":["Browser extensions"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"extension":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":"string"},"sourceCommit":{"type":"string"}},"required":["extension","sha256","size"]}}}},"responses":{"200":{"description":"Published already: `upload` is null","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string"},"extension":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"},"status":{"type":"string","enum":["pending","ready"]}},"required":["id","extension","name","version","sha256","size","release","notes","sourceCommit","publishedAt","status"],"additionalProperties":false},"upload":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"contentType":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","contentType","expiresAt"],"additionalProperties":false},{"type":"null"}]}},"required":["release","upload"],"additionalProperties":false}}}},"201":{"description":"A pending zip: PUT it to `upload.url` with exactly `upload.contentType`, then complete it","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string"},"extension":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"},"status":{"type":"string","enum":["pending","ready"]}},"required":["id","extension","name","version","sha256","size","release","notes","sourceCommit","publishedAt","status"],"additionalProperties":false},"upload":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"contentType":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","contentType","expiresAt"],"additionalProperties":false},{"type":"null"}]}},"required":["release","upload"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/extensions/releases/{id}":{"delete":{"operationId":"deleteApiExtensionsReleasesId","summary":"Withdraw an extension's zip","description":"`DELETE`: withdraws an extension's zip; with only the newest kept, it then has none. Idempotent. Needs publish:apps.\n\nNeeds the publish:apps permission (no API key carries it).","tags":["Browser extensions"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Withdrawn, or already gone"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/extensions/releases/{id}/complete":{"post":{"operationId":"postApiExtensionsReleasesIdComplete","summary":"Publish an uploaded zip","description":"`POST`: reads the uploaded zip back through a hash; of the size and SHA-256 promised, it becomes the extension's zip and the one before it is deleted, `{ release, pruned }`. Anything else is deleted (422). Idempotent. Needs publish:apps.\n\nNeeds the publish:apps permission (no API key carries it).","tags":["Browser extensions"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Checked and published; the zip before it was deleted (`pruned`)","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string"},"extension":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceCommit":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string"}},"required":["id","extension","name","version","sha256","size","release","notes","sourceCommit","publishedAt"],"additionalProperties":false},"pruned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["release","pruned"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/health":{"get":{"operationId":"getApiHealth","summary":"Health","tags":["Server"],"security":[],"responses":{"200":{"description":"The database answers","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"ok"}},"required":["status"],"additionalProperties":false}}}},"503":{"description":"The database doesn't answer","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"unavailable"}},"required":["status"],"additionalProperties":false}}}}}}},"/api/icons":{"get":{"operationId":"getApiIcons","summary":"List the logos","description":"The tile logos this server keeps, as the `/icons/<file>` paths a document names, `{ icons }`. Public, from any origin: a logo is no secret, and the extension's pages ask from theirs.","tags":["Logos"],"security":[],"responses":{"200":{"description":"The logos, as the `/icons/<file>` paths a tile's icon takes","content":{"application/json":{"schema":{"type":"object","properties":{"icons":{"type":"array","items":{"type":"string"}}},"required":["icons"],"additionalProperties":false}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/icons/{file}":{"get":{"operationId":"getApiIconsFile","summary":"Get a logo","description":"One tile logo. `GET` serves it, publicly and from any origin, under the type its name says, with an ETag and an hour's caching. `PUT` stores one (the body is the file; a caller who may change a dashboard), replacing a logo of that name; `DELETE` removes one.","tags":["Logos"],"security":[],"parameters":[{"name":"file","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The logo, under the type its name says","content":{"image/svg+xml":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/gif":{"schema":{"type":"string","format":"binary"}},"image/x-icon":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (If-None-Match)"},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putApiIconsFile","summary":"Store a logo","description":"One tile logo. `GET` serves it, publicly and from any origin, under the type its name says, with an ETag and an hour's caching. `PUT` stores one (the body is the file; a caller who may change a dashboard), replacing a logo of that name; `DELETE` removes one.","tags":["Logos"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"file","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The file: SVG, PNG, JPEG, WebP, GIF or ICO as its name says, at most 512 KB","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Stored; a logo of that name is replaced","content":{"application/json":{"schema":{"type":"object","properties":{"icon":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["icon","size"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Not the content its name or type says","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiIconsFile","summary":"Remove a logo","description":"One tile logo. `GET` serves it, publicly and from any origin, under the type its name says, with an ETag and an hour's caching. `PUT` stores one (the body is the file; a caller who may change a dashboard), replacing a logo of that name; `DELETE` removes one.","tags":["Logos"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"file","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Removed, or not there"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"An application without the permission this needs, or an account that's suspended or hasn't been invited (`code`: `not_invited`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/invites/accept":{"post":{"operationId":"postApiInvitesAccept","summary":"Accept an invite link","description":"Accepts an invite or a password link: `POST { token, username?, password }` makes the account (or sets the account's password) and signs the person in: `{ returnTo, signedIn }` and the session cookies, as the sign-in sets them. The login is the link's when it fixes one.\n\nMakes the account with the chosen login and password (or, for a password link, sets the account's password) and signs the person in. The login is the link's when it fixes one. A link works once; a taken login or a weak password leaves it unused. Rate-limited per address and per link.","tags":["Sign-in"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"username":{"type":"string","minLength":2,"maxLength":32,"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"password":{"type":"string","minLength":8,"maxLength":256}},"required":["token","password"]}}}},"responses":{"200":{"description":"Accepted: with `signedIn`, the session cookies are set; without, sign in on the sign-in page","content":{"application/json":{"schema":{"type":"object","properties":{"returnTo":{"type":"string"},"signedIn":{"type":"boolean"}},"required":["returnTo","signedIn"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"An invite link that has expired, was used, or was revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many attempts (sign-in, invites; see `Retry-After`), or the AI provider is rate-limited or out of quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/invites/admit":{"post":{"operationId":"postApiInvitesAdmit","summary":"Let an account in (automation)","description":"Lets an account in to Launcher without an invite, for automation: `POST { userId }` with `Authorization: Bearer` a Logto Management API token with full access (a tenant superuser's) → 204. The account must have signed in, or called the API, once. The smoke suite's throwaway users get in this way; people get in with an invite.\n\nFor scripts, not people: `Authorization: Bearer` a Logto Management API token with full access (`all`), which only a tenant superuser's machine-to-machine app holds. Lets an account that has signed in, or called the API, once in without an invite. The smoke suite's throwaway users get in this way.","tags":["Sign-in"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200}},"required":["userId"]}}}},"responses":{"204":{"description":"The account is let in"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/invites/inspect":{"post":{"operationId":"postApiInvitesInspect","summary":"Read an invite link","description":"What an invite link is for: `POST { token }` (the part of the link after `#`) → `{ kind, username, expiresAt }`; 410 once it is used, expired or revoked. No session needed: the token is the authority.\n\nWhat the invite page shows for the token after `#` in an invite or password link: which kind, the login it fixes, and when it expires. Rate-limited per address.","tags":["Sign-in"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"The link","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["invite","password"]},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"}},"required":["kind","username","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"An invite link that has expired, was used, or was revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many attempts (sign-in, invites; see `Retry-After`), or the AI provider is rate-limited or out of quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A feature this server hasn't set up (sign-in, storage, or AI)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/mcp":{"get":{"operationId":"getApiMcp","summary":"MCP: not used","tags":["AI assistants (MCP)"],"security":[],"responses":{"405":{"description":"The server is stateless: POST only"}}},"post":{"operationId":"postApiMcp","summary":"MCP (Streamable HTTP)","description":"One JSON-RPC message per request, stateless. The tools are listed in the MCP reference (`GET /api/docs/mcp`).\n\nTakes a Bearer token only: a personal API key or a Logto access token.","tags":["AI assistants (MCP)"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string","examples":["initialize","tools/list","tools/call"]},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"The JSON-RPC answer","content":{"application/json":{"schema":{"type":"object"}},"text/event-stream":{"schema":{"type":"string"}}}},"202":{"description":"A notification, accepted"},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiMcp","summary":"MCP: not used","tags":["AI assistants (MCP)"],"security":[],"responses":{"405":{"description":"The server is stateless: POST only"}}}},"/api/notifications":{"get":{"operationId":"getApiNotifications","summary":"List notifications","description":"The caller's notifications: list (with the unread count); `PATCH ?id=` marks one read.","tags":["Notifications"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A page, newest first, and how many are unread","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"unreadCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor","unreadCount"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiNotifications","summary":"Mark a notification read","description":"The caller's notifications: list (with the unread count); `PATCH ?id=` marks one read.","tags":["Notifications"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/notifications/read-all":{"post":{"operationId":"postApiNotificationsReadAll","summary":"Mark every notification read","description":"Marks every notification of the caller read.","tags":["Notifications"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Nothing left unread","content":{"application/json":{"schema":{"type":"object","properties":{"unreadCount":{"type":"number","const":0}},"required":["unreadCount"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/notifications/stream":{"get":{"operationId":"getApiNotificationsStream","summary":"Follow notifications live","description":"The caller's notifications as they are raised, as server-sent events: `event: notification` with the notification as JSON. Nothing is replayed, so a client loads the list each time its stream opens. EventSource sends the session cookie; a script sends its API key as a Bearer token.","tags":["Notifications"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Server-sent events: `event: notification` with a Notification as JSON, and a `: ping` comment every 25 s. Nothing is replayed: load the list each time the stream opens.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/profiles":{"get":{"operationId":"getApiProfiles","summary":"List profiles","description":"The caller's profiles, without their tiles. `POST { name, id?, header?, description?, tiles? }` adds one, filled in the same write when `tiles` is given, and starts the dashboard on an account that has none.","tags":["Profiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Every profile, without its tiles","content":{"application/json":{"schema":{"type":"object","properties":{"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"header":{"type":"string"},"description":{"type":"string"},"tileCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","tileCount"],"additionalProperties":false}}},"required":["profiles"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postApiProfiles","summary":"Add a profile","description":"The caller's profiles, without their tiles. `POST { name, id?, header?, description?, tiles? }` adds one, filled in the same write when `tiles` is given, and starts the dashboard on an account that has none.","tags":["Profiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"},"header":{"type":"string"},"description":{"type":"string"},"tiles":{"type":"array","items":{"$ref":"#/components/schemas/Tile"}}},"required":["name"]}}}},"responses":{"201":{"description":"The new profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"header":{"type":"string"},"description":{"type":"string"},"tileCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","tileCount"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/profiles/{id}":{"patch":{"operationId":"patchApiProfilesId","summary":"Change a profile","description":"One profile: `PATCH { name?, header?, description? }` (`null` removes header or description), `DELETE` removes it with its tiles.","tags":["Profiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"header":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"The profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"header":{"type":"string"},"description":{"type":"string"},"tileCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","tileCount"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiProfilesId","summary":"Remove a profile","description":"One profile: `PATCH { name?, header?, description? }` (`null` removes header or description), `DELETE` removes it with its tiles.","tags":["Profiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Removed, with its tiles"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/start":{"get":{"operationId":"getApiStart","summary":"Get the Start page","description":"The caller's Start page: its background and widgets (weather, currencies, news), `{ start, custom }`, the default until they save their own. `PUT { start }` replaces it; `null` puts the default back.","tags":["Start page"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Its layout, and whether it is the person's own (`custom`) or the default","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"object","properties":{"background":{"type":"string","enum":["auto","hills","contour","plain"]},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["weather","currencies","news"]},"size":{"type":"string","enum":["s","m","l"]}},"required":["id","kind"],"additionalProperties":{}}}},"required":["widgets"],"additionalProperties":false},"custom":{"type":"boolean"}},"required":["start","custom"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putApiStart","summary":"Replace the Start page","description":"The caller's Start page: its background and widgets (weather, currencies, news), `{ start, custom }`, the default until they save their own. `PUT { start }` replaces it; `null` puts the default back.","tags":["Start page"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"description":"`{ start }`: the layout, or null for the default","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"anyOf":[{"type":"object","properties":{"background":{"type":"string","enum":["auto","hills","contour","plain"]},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["weather","currencies","news"]},"size":{"type":"string","enum":["s","m","l"]}},"required":["id","kind"],"additionalProperties":{}}}},"required":["widgets"]},{"type":"null"}]}},"required":["start"]}}}},"responses":{"200":{"description":"The Start page","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"object","properties":{"background":{"type":"string","enum":["auto","hills","contour","plain"]},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["weather","currencies","news"]},"size":{"type":"string","enum":["s","m","l"]}},"required":["id","kind"],"additionalProperties":{}}}},"required":["widgets"],"additionalProperties":false},"custom":{"type":"boolean"}},"required":["start","custom"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/start/news":{"post":{"operationId":"postApiStartNews","summary":"Get headlines","description":"`POST { feeds: [{ name, url }] }`: the feeds' headlines, newest first, and the names of the feeds that failed. A feed is fetched from public addresses only, redirects re-checked, and kept a quarter of an hour. A POST because the feeds are a list of addresses; it changes nothing.","tags":["Start page"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"feeds":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["feeds"]}}}},"responses":{"200":{"description":"The feeds' headlines, newest first, and the names of the feeds that failed (a feed is fetched from public addresses only)","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"},"feed":{"type":"string"},"published":{"type":"string"}},"required":["title","url","feed"],"additionalProperties":false}},"failed":{"type":"array","items":{"type":"string"}}},"required":["items","failed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/start/places":{"get":{"operationId":"getApiStartPlaces","summary":"Find a place for the weather","description":"`?name=Krak&language=ru`: up to eight places of that name, each with where it is, from Open-Meteo's geocoding, kept a day — what the Start editor offers to pick the weather's place from.","tags":["Start page"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":80}},{"name":"language","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Up to eight places of that name, each `{ name, latitude, longitude, region, country? }`, from Open-Meteo's geocoding","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}}}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/start/rates":{"get":{"operationId":"getApiStartRates","summary":"Get exchange rates","description":"`?base=PLN&codes=EUR,USD`: one unit of each currency in `base`, with its recent history, from the National Bank of Poland's tables (daily A, weekly B for what A lacks), kept half an hour.","tags":["Start page"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"base","in":"query","required":false,"schema":{"type":"string"}},{"name":"codes","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One unit of each code in `base`, with its recent history, from the National Bank of Poland","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/start/weather":{"get":{"operationId":"getApiStartWeather","summary":"Get the weather","description":"`?latitude=&longitude=&units=celsius|fahrenheit`: the weather there now, for twelve hours, and today with the seven days after, from Open-Meteo, kept ten minutes.","tags":["Start page"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"units","in":"query","required":false,"schema":{"type":"string","enum":["celsius","fahrenheit"]}}],"responses":{"200":{"description":"Now, the next twelve hours, and today with the seven days after, from Open-Meteo","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A service the server relies on failed: the AI provider, the sign-in service, or a Start page source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/tags":{"get":{"operationId":"getApiTags","summary":"List tags","description":"Every tag, the catalog's and any a tile carries, with its section title, colour, importance and usage. `PATCH { upsert?, rename?, remove? }` changes the catalog in one write; a rename or removal reaches every tile.","tags":["Tags"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"Every tag, the catalog's and the tiles', with its usage","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"important":{"type":"boolean"},"color":{"type":"string","enum":["accent","green","rose","amber","blue","red"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","name","important","count"],"additionalProperties":false}}},"required":["tags"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiTags","summary":"Change the tags","description":"Every tag, the catalog's and any a tile carries, with its section title, colour, importance and usage. `PATCH { upsert?, rename?, remove? }` changes the catalog in one write; a rename or removal reaches every tile.","tags":["Tags"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"upsert":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"important":{"type":"boolean"},"color":{"anyOf":[{"type":"string","enum":["accent","green","rose","amber","blue","red"]},{"type":"null"}]}},"required":["name"]}},"rename":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"]}},"remove":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Every tag after the change","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"important":{"type":"boolean"},"color":{"type":"string","enum":["accent","green","rose","amber","blue","red"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","name","important","count"],"additionalProperties":false}}},"required":["tags"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/tiles":{"get":{"operationId":"getApiTiles","summary":"Search tiles","description":"The caller's tiles matching every filter given: `?profile=` (a profile id, or `shared`), `?tag=`, `?access=` (a tile's kind or any of its links'), `?q=` (in the name, description, id, address, or a link's label or address).","tags":["Tiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"profile","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string"}},{"name":"access","in":"query","required":false,"schema":{"type":"string","enum":["web","api","mcp","app","extension"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The tiles matching every filter given","content":{"application/json":{"schema":{"type":"object","properties":{"tiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"icon":{"type":"string"},"access":{"type":"string","enum":["web","api","mcp","app","extension"]},"important":{"type":"boolean"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"app":{"type":"object","properties":{"package":{"type":"string"}},"required":["package"],"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"links":{"type":"array","items":{"type":"object","properties":{"access":{"type":"string","enum":["web","api","mcp","extension"]},"label":{"type":"string"},"url":{"type":"string"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["url"],"additionalProperties":false}},"notes":{"type":"string"},"profileId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","url","profileId"],"additionalProperties":false}},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["tiles","count"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/tiles/{profile}":{"post":{"operationId":"postApiTilesProfile","summary":"Add tiles","description":"`POST` one tile into a profile (or `shared`, the tiles every profile shows), or `{ tiles: [...] }` for several in one write, all or none. Starts the dashboard on an account that has none.","tags":["Tiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"description":"One tile, or `{ tiles }` for several, all or none","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Tile"},{"type":"object","properties":{"tiles":{"type":"array","items":{"$ref":"#/components/schemas/Tile"}}},"required":["tiles"]}]}}}},"responses":{"201":{"description":"The tile, or the ids of the tiles added","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"icon":{"type":"string"},"access":{"type":"string","enum":["web","api","mcp","app","extension"]},"important":{"type":"boolean"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"app":{"type":"object","properties":{"package":{"type":"string"}},"required":["package"],"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"links":{"type":"array","items":{"type":"object","properties":{"access":{"type":"string","enum":["web","api","mcp","extension"]},"label":{"type":"string"},"url":{"type":"string"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["url"],"additionalProperties":false}},"notes":{"type":"string"},"profileId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","url","profileId"],"additionalProperties":false},{"type":"object","properties":{"added":{"type":"array","items":{"type":"string"}},"profile":{"type":"string"}},"required":["added","profile"],"additionalProperties":false}]}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already exists (a login that's taken, too), or would leave the dashboard with nothing in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/tiles/{profile}/{id}":{"get":{"operationId":"getApiTilesProfileId","summary":"Get a tile","description":"One tile, by profile (or `shared`) and id: `GET`, `PATCH` (the fields given are merged; `null` removes one; the id stays), `DELETE`.","tags":["Tiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The tile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"icon":{"type":"string"},"access":{"type":"string","enum":["web","api","mcp","app","extension"]},"important":{"type":"boolean"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"app":{"type":"object","properties":{"package":{"type":"string"}},"required":["package"],"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"links":{"type":"array","items":{"type":"object","properties":{"access":{"type":"string","enum":["web","api","mcp","extension"]},"label":{"type":"string"},"url":{"type":"string"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["url"],"additionalProperties":false}},"notes":{"type":"string"},"profileId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","url","profileId"],"additionalProperties":false}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiTilesProfileId","summary":"Change a tile","description":"One tile, by profile (or `shared`) and id: `GET`, `PATCH` (the fields given are merged; `null` removes one; the id stays), `DELETE`.","tags":["Tiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The fields to set; `null` removes one; the id stays","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"200":{"description":"The tile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"icon":{"type":"string"},"access":{"type":"string","enum":["web","api","mcp","app","extension"]},"important":{"type":"boolean"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"app":{"type":"object","properties":{"package":{"type":"string"}},"required":["package"],"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"links":{"type":"array","items":{"type":"object","properties":{"access":{"type":"string","enum":["web","api","mcp","extension"]},"label":{"type":"string"},"url":{"type":"string"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false},"extension":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["url"],"additionalProperties":false}},"notes":{"type":"string"},"profileId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","url","profileId"],"additionalProperties":false}}}},"400":{"description":"Invalid input; `error` says what","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The dashboard would be invalid, or the client predates what it holds; `error` names the key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiTilesProfileId","summary":"Remove a tile","description":"One tile, by profile (or `shared`) and id: `GET`, `PATCH` (the fields given are merged; `null` removes one; the id stays), `DELETE`.","tags":["Tiles"],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Removed"},"401":{"description":"Not signed in, a missing, expired, or revoked token or key, or a wrong login or password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Doesn't exist, or isn't yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Activity":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"category":{"type":"string","enum":["business","technical"]},"summary":{"type":"string"},"subject":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["api_key"]},"id":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","id","label"],"additionalProperties":false},{"type":"null"}]},"occurredAt":{"type":"string"}},"required":["id","type","category","summary","subject","occurredAt"],"additionalProperties":false},"ApiKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"createdAt":{"type":"string"},"lastUsedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","prefix","createdAt","lastUsedAt","expiresAt"],"additionalProperties":false},"Dashboard":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"tags":{"description":"The tag catalog","type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The canonical spelling; unique in any case"},"title":{"description":"Makes the tag a section of the dashboard","type":"string"},"important":{"type":"boolean"},"color":{"description":"Paints every tile carrying it","type":"string","enum":["accent","green","rose","amber","blue","red"]}},"required":["name"],"additionalProperties":false}},"servers":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string"},"url":{"type":"string"}},"required":["alias","url"],"additionalProperties":false}},"start":{"description":"The Start page: its widgets and background","type":"object","properties":{},"additionalProperties":{}},"tiles":{"description":"Tiles every profile shows","type":"array","items":{"$ref":"#/components/schemas/Tile"}},"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"header":{"description":"Replaces the dashboard's title while the profile is shown","type":"string"},"description":{"description":"Replaces the dashboard's subtitle while the profile is shown","type":"string"},"tiles":{"type":"array","items":{"$ref":"#/components/schemas/Tile"}}},"required":["id","name","tiles"],"additionalProperties":false}}},"required":["title","profiles"],"additionalProperties":false,"description":"Launcher's dashboard document (format 16)"},"Error":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"],"additionalProperties":false},"Notification":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"readAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","kind","title","body","link","createdAt","readAt"],"additionalProperties":false},"Server":{"type":"object","properties":{"alias":{"type":"string","minLength":1,"maxLength":40,"description":"The server's name in the list, e.g. `warsaw`"},"url":{"type":"string","minLength":1,"maxLength":200,"description":"The app's address on that server, its http(s) origin, e.g. `https://launchpad.192.168.1.105.sslip.io`"}},"required":["alias","url"],"additionalProperties":false},"Tile":{"type":"object","properties":{"id":{"type":"string","description":"Lowercase, unique within its profile: ^[a-z0-9][a-z0-9-]*$"},"name":{"type":"string"},"url":{"type":"string","description":"The application's main way in: one absolute http(s) address"},"description":{"type":"string"},"tags":{"description":"The first one with a section title is the tile's section","type":"array","items":{"type":"string"}},"icon":{"description":"A logo from /api/icons (/icons/<file>), or one emoji","type":"string"},"access":{"type":"string","enum":["web","api","mcp","app","extension"],"description":"What the tile's address is; web when omitted"},"important":{"description":"Framed in gold","type":"boolean"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"description":"Variable names only, never their values","type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false,"description":"How to connect to an api or mcp tile or link"},"app":{"description":"An app tile's Android application id","type":"object","properties":{"package":{"type":"string"}},"required":["package"],"additionalProperties":false},"extension":{"description":"An extension tile's catalog id","type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"links":{"description":"The application's other ways in (its admin console, API, MCP server, extension), as chips on the tile","type":"array","items":{"type":"object","properties":{"access":{"type":"string","enum":["web","api","mcp","extension"],"description":"What the link's address is; web when omitted"},"label":{"description":"The chip's words, e.g. \"Admin\"","type":"string"},"url":{"type":"string","description":"One absolute http(s) address"},"accessGuide":{"type":"object","properties":{"endpoint":{"type":"string"},"transport":{"type":"string","enum":["http","sse","stdio"]},"command":{"type":"string"},"auth":{"type":"string"},"envVars":{"description":"Variable names only, never their values","type":"array","items":{"type":"string"}},"snippet":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"docs":{"type":"string"}},"additionalProperties":false,"description":"How to connect to an api or mcp tile or link"},"extension":{"description":"An extension link's catalog id","type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["url"],"additionalProperties":false}},"notes":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A personal API key (`lp_…`, from Account → API keys) or a Logto access token for this API."},"cookieAuth":{"type":"apiKey","in":"cookie","name":"launchpad_token","description":"The web app's session cookie, set at sign-in. A signed-in browser sends it by itself."}}},"servers":[{"url":"https://launcher.192.168.1.105.sslip.io"}]}