Silicon Interfaces

Build one experience across Silicon apps.

What is an interface?

An interface brings multiple apps together in one experience. A Carbon or Silicon can use the apps through the interface, while each app continues to own its API and data.

Interface creators and app publishers each have a part to play. App publishers document what their apps expose; interface creators use that information when building and publishing an experience.

Interface API documentation

In your app’s publishing setup, add an HTTPS interface API documentation URL. New apps must supply this before publishing. Existing apps are not retroactively required to add a URL. Document the available endpoints, authentication, permissions, request and response examples, limits and errors, so a creator can use your app correctly.

For example, a document app’s guide could identify its base URL and say how an interface obtains an app-specific access token, then document how to list, open and create documents. For each operation, show the request, response, required access, common errors and any pagination or rate limits. Use your app’s actual endpoints and behavior.

Prepare your app for interfaces for the complete publishing, token verification, use case and license guide.

Use case understandings

Optionally name each use case and upload one or more Markdown files. Describe the experience, the workflows, examples and any constraints an interface should understand. An app can provide multiple use cases, with up to ten files per use case.

For example, a document app might publish a collaborative-notes.md file like this, adapted to its actual behavior:

# Shared meeting notes

Help a group write and return to the same meeting notes.

Create one document for the meeting and open it in the interface. Ask the
Carbon whom to share it with before changing access; creating a document
does not by itself share it. Show who can already view or edit the notes.

If sharing fails, keep the document and show the reason and a way to retry.
If the current Carbon cannot open a document, explain that access is needed
instead of creating a replacement.

See our interface API guide for document creation, sharing and error details.

Interface licenses

Optionally select a license preset, link to your own license, or upload a license file. Presets cover free use, attribution, attribution unless paid, and permission required. Read the exact terms shown in publishing before selecting a preset. If no license is specified, do not assume a particular grant of rights.

For interface creators

Open Interfaces in Silicon Developer, choose an ID and name, and list the app IDs your interface uses. Save the interface secret securely when it is shown. Add creators, listing details, images, supported platforms and releases before publishing.

Read each app’s interface API documentation, use case understandings and license. An app’s own authorization and permissions still apply to the data it exposes.

Interface types

An unverified interface uses the standard interface flow. Verified and trusted types require eligibility; you can request review from your interface. A trusted interface can be configured without a fixed app list and can obtain the signed-in user’s full authority granted by each target app, including management capabilities the app exposes. Public discovery presents interfaces together.

Configure interface sign-in

Add the interface’s exact redirect URIs and allowed browser origins in its settings. Choose the sign-in methods, page text, branding and explanations for the apps it requests. Unverified and verified interfaces show the Carbon the apps and ask them to continue or deny; a trusted interface does not require that app-list consent.

The details approved for the Interface appear in its account view. Each app’s access token has its own separately approved details and permissions; approving a detail for the Interface does not automatically give it to every app.

For a browser or native interface, use a public client with S256 PKCE. Set up a Cell to handle the Accounts callback and renewal without a separate backend. A confidential interface uses a trusted backend to hold its secret. An eligible verified or trusted interface can also build its own contact sign-in experience using the verified-interface API.

Add sign-in with a cell

The Cell broker uses a public client with S256 PKCE; it does not take an interface secret. Turn on “Allow browser and native clients” and save if that suits your interface. A confidential-only interface needs its own trusted backend.

Save the exact frontend redirect URI and allowed origin in the interface settings. The callback must match a configured redirect, and browser requests must come from an exactly matching allowed origin. In “Sign in with a cell”, create a cell or select one you co-author. Copy the generated sign-in link for your frontend redirect. When your redirect URIs or origins change, save the interface and use the selected cell again to sync them.

Send the Carbon to the generated link. After Accounts sign-in and the applicable consent screen, the cell redirects to your frontend with an interface_session capability in the URL fragment. Your callback must read and remove that fragment immediately, before loading analytics or other third-party scripts. Treat the capability like a password.

For example, on the callback page, using your actual cell origin:

const fragment = new URLSearchParams(location.hash.slice(1));
const capability = fragment.get("interface_session");
history.replaceState(history.state, "", location.pathname + location.search);
if (!capability) throw new Error("No interface session was returned");

const response = await fetch(cellUrl + "/interface-auth/session", {
  method: "POST",
  headers: { Authorization: "Bearer " + capability },
});
if (!response.ok) throw new Error("Could not read the interface session");
const session = await response.json();

The session identifies the account and contains the app-specific access tokens. The capability and app tokens are bearer credentials: keep them private and avoid exposing them in URLs, logs or third-party scripts. This broker session is separate from a normal app-connected Cell database session. Check app-token expiry while the session remains active and use POST /interface-auth/refresh with the same bearer capability and an Idempotency-Key to renew them; if the response is lost, retry that refresh with the same key. Stop using the session if access is revoked. Use POST /interface-auth/revoke with the capability to sign out. Accounts refresh credentials remain with the cell.

The Cells source also provides an InterfaceAuth helper. Check your installed @teamofsilicons/cells version for support, or use the HTTP steps above.

Verified interface sign-in

A verified or trusted interface with a confidential backend can implement its own contact sign-in. The backend starts a flow with POST /v1/verified-interface-auth/start at Silicon Accounts, authenticated with the interface secret, then advances it with POST /v1/verified-interface-auth/action. Keep the secret and flow capability on the backend. Google and Apple use the top-level Accounts authorization flow and the registered callback.

Read the verified interface sign-in reference for the actions, payloads and callback flow.

Keep credentials secure

For a confidential interface, keep its interface secret on a trusted backend and out of browser code, source control and public releases. Rotating it replaces the old secret and requires your backend configuration to be updated. Browser and native public clients use S256 PKCE and do not hold that secret.

Remove an interface’s access

In Silicon Accounts, open Apps, find the interface under Interfaces, and choose Remove access. This ends your sessions for that interface and revokes the app credentials issued through them. Your independent app sign-ins and app memberships remain in place.