Skip to main content

Authentication

Users authenticate via OAuth through the Synthetiq Desktop app or CLI. Sessions are managed automatically by the platform.

Current user

Returns your own identity along with your role and scopes in the active organization. Authentication: User authentication required. No additional scope.
organization is null when there is no live membership to report — either your token carries no active organization, or it names one you have since been removed from.

Updating your avatar

Your avatar starts as whatever picture your identity provider supplied. To replace it, upload an image and then point your profile at it.

Request an upload URL

Authentication: User authentication required. No additional scope.
PUT your image bytes to uploadUrl. This does not change your profile on its own. Any avatar you previously uploaded is deleted when you call this.

Point your profile at it

Authentication: User authentication required. No additional scope.
avatar_url must be a URL issued to you by the upload endpoint — arbitrary URLs are rejected, because every client renders this field as an image on member lists and comment threads other people see. Passing null clears your uploaded avatar and falls back to your identity provider’s picture.
Your provider’s picture is recorded once, when your account is first created. Nothing overwrites it afterwards, so signing in again will not revert an avatar you have set.
Your access token carries org_role and org_scopes claims, but those are stamped in when the token is issued and are never revalidated. If your role changes, or someone edits your role’s scopes, the token keeps reporting the old values until it refreshes. Call this endpoint when you need your permissions as they are right now — it reads from the database, not the token.

Route protection

API routes are protected based on the user’s access level within their organization. Each user is assigned a role, and each role contains a set of scopes that determine which operations the user can perform.

Scopes

Scopes are the individual permissions that can be assigned to roles within an organization.