What Happens During Installation
The user’s experience depends entirely on the Authentication Method you configured for your app in the Developer Studio.None (No Authentication)
The app installs instantly. The installation becomesACTIVE immediately, and your app is ready to receive action calls.
API Key Flow
- The user clicks Install.
- Orceum prompts the user to enter their API key (displaying any instructions or format hints you configured in the Developer Studio).
- The user submits the key. Orceum validates that it meets minimum requirements (e.g., at least 8 characters).
- Orceum encrypts the key at rest.
- The installation becomes
ACTIVE. - On every action call, Orceum decrypts the key and injects it into the HTTP header you specified.
OAuth Flow
- The user clicks Install.
- Orceum dynamically builds the authorization URL using your configured
client_idand scopes. - The user is redirected to your OAuth provider’s consent screen.
- After granting access, the provider redirects the user back to Orceum’s callback URL.
- Orceum exchanges the authorization code for an access token (and refresh token).
- The tokens are encrypted at rest, and the installation becomes
ACTIVE. - Orceum handles all token refreshes automatically in the background.
Installation States
An installation transitions through these states automatically:| State | Description |
|---|---|
PENDING | Just created — awaiting credential submission (e.g., user is on the OAuth consent screen). |
ACTIVE | Credentials validated — app can execute actions. |
SUSPENDED | Temporarily disabled (due to admin action or repeated execution errors). |
UNINSTALLED | User removed the app — credentials cleared, tokens revoked. |
REAUTH_REQUIRED | OAuth tokens expired or became invalid — the user must re-authenticate. |
State Transitions
Re-authentication
If your app uses OAuth and the refresh token expires or is revoked on your end, the next action call will fail with a401 Unauthorized.
When this happens, Orceum automatically transitions the installation to REAUTH_REQUIRED. The AI assistant will pause execution and prompt the user with a secure link to re-authenticate. Once they complete the OAuth flow again, the installation becomes ACTIVE and the AI resumes its task.