Silicon OrganizationsOpen your orgs →

Public API and Rust package

The public API lives under /v1 at the configured Organizations origin. Authenticate private reads and actions with the selected account's Organizations app token. Use a stable Idempotency-Key on mutations. Errors are JSON with error.code, error.message, and error.hint.

Apps can reuse their own Accounts session through the shared app integration API at /v1/integrations/{app} to read membership, teams and roles and perform authorized management actions. The ordinary routes below require an Organizations token.

Method and pathPurpose
GET /v1/metaConnection metadata, including app_id.
POST /v1/auth/sltExchange {slt} from Accounts for an Organizations sign-in.
POST /v1/auth/codeExchange {code, redirect_uri, code_verifier} after hosted sign-in.
POST /v1/auth/refreshRefresh {refresh_token} using the same operation key after uncertainty.
POST /v1/auth/logoutRevoke the selected app session.
GET /v1/meCurrent account, its organization list and addressed invitations.
GET /v1/orgsOrganizations visible to the selected account.
GET /v1/orgs/availability/{org_id}{available: boolean}.
POST /v1/logosUpload a PNG, JPEG or WebP logo as the raw request body. Requires authentication and an idempotency key.
GET /v1/logos/{id}Serve the sanitized, resized PNG for an uploaded logo.
POST /v1/orgsCreate with {org_id, name, handle, logo_id?} or an HTTPS logo_url from a personal account.
GET /v1/creations/status?key=…Check the current account's creation attempt after an uncertain response.
GET /v1/orgs/{org_id}Authorized org/member/team/invite/governance view and capabilities.
GET /v1/orgs/{org_id}/eventsAuthenticated SSE stream backed by a dedicated Ting receiver.
POST /v1/orgs/{org_id}/actionsPublic domain action with an action discriminator.
GET /v1/invites/{invite}Invitation acceptance context.
POST /v1/invites/{invite}/acceptAccept with signed-in identity or Accounts invitation proof.
POST /v1/invites/{invite}/declineDecline an invitation addressed to the proven recipient.
GET /v1/orgs/{org_id}/logsAuthorized events filtered by member, team, app, kind, from/to.
GET /v1/apps?q=…App catalog suggestions.
POST /v1/reportsQueue {message, pr?} to the three report recipients.

Actions cover organization updates, invitations, work handle changes, Silicon creation/STK rotation, membership closure, owner offers and acceptance, removal votes, admin assignment, team structure/membership/admins, and app policies. The CLI command guide demonstrates the public actions. Use action ORG ACTION --data JSON when an integration needs the underlying JSON form.

Logo uploads must be still images of at most 2 MB, 4096 pixels on either side, and four million total pixels. The response includes id, logo_url, dimensions and draft expiry. Send logo_id when creating an org or updating its identity; it cannot be combined with a non-null logo_url. Drafts expire after 24 hours unless a pending creation has reserved them. Uploaded files are decoded and re-encoded as PNG before publication. Uploads and attachments are restricted to the authenticated creator or the organization's owners and admins.

Rust usage

The package is stateless. The calling program owns token storage, refresh coordination and operation keys. It does not read a home directory, create telemetry, or include service-internal bridge operations.

use silicon_organizations_client::OrganizationsClient;
use serde_json::json;

# async fn example(token: &str) -> Result<(), Box<dyn std::error::Error>> {
let client = OrganizationsClient::new("https://organizations.teamofsilicons.com")?
    .with_token(token);
let organization = client.organization("example").await?;
let logo = client.upload_logo(&std::fs::read("logo.png")?, "upload-logo-20261104").await?;
// Pass logo["id"] as logo_id in a create or update action.
let team = client.action("example", &json!({
    "action": "team_create",
    "name": "Design",
    "description": "Design and presentation"
}), "create-design-team-20261103").await?;
# Ok(())
# }

Store member UUIDs, not handles. Treat responses containing an STK or token as secrets. After an uncertain mutation, preserve its operation key and exact body. Permission checks use current work-account roles and team authority; a cached capability value is only a UI hint.

Live receiver sessions

Open /v1/orgs/{org_id}/events with the current work account's Organizations bearer token. The server creates and owns an anonymous Ting 0.4 receiver accepting only silicon-organizations; clients cannot bind an arbitrary receiver ID. No Accounts or Ting credentials are returned. The browser uses the same-origin streaming proxy with its HttpOnly Organizations cookie.

The stream sends ready with {session_id, account_uuid, org_id}, then empty refresh events. Fetch the authorized org view and logs after every ready or refresh. These are coalescible hints with no replay guarantee, not an audit feed or delivery receipt. A receiver ID is a temporary address, never a credential. Durable lifecycle notifications continue to target accounts, respecting Ting subscriptions and delivery preferences.

closed means authority ended; stop and clear cached org data. unavailable or transport loss calls for bounded reconnect backoff (1, 2, 4, 8, 16, then 30 seconds with jitter). reconnect requests a fresh stream. Every reconnect gets a new receiver and must refetch. Streams rotate after five minutes so callers can refresh app credentials. The backend rechecks authority and reconciles missed changes every 20 seconds, and checks authority before forwarding each hint. Closing the response closes only that receiver. Each API process permits up to 128 live views; overload returns 429.

Only changes visible to the selected member trigger a hint. Global org versions are excluded from comparison, private removal votes remain hidden from their target, and activity-log hints respect admin/team-admin scope. PostgreSQL commit notifications reach every API replica; periodic reconciliation recovers a lost notification. The browser pauses hidden tabs and falls back to ordinary reads every 30 seconds while disconnected.

The Rust client exposes client.listen(org).await? and stream.next_event().await?. Dropping the stream closes it. The stateless client leaves credential refresh and reconnect decisions to its caller; the CLI's listen command handles both without holding the profile lock while listening.