Zorveus LogoZorveusDOCS
Core Concepts

Apps, connections, and keys

View Markdown

Understand the relational hierarchy linking organizations, apps, app connections, and API keys.

A common point of confusion is the relationship between an App, an App Connection, and an API Key. In Zorveus, these represent separate logical layers.


The resource hierarchy

Organization (e.g. Business Acme Corp)
  └── App (e.g. Acme Code Reviewer)
        └── App Connection (Binding App to Funding Org)
              ├── Policy: Allowed Models (e.g. "openai/*", "anthropic/*")
              ├── Policy: Spending Cap ($50.00 / month)
              ├── Policy: Credit Mode (Enforce / Optional)
              └── API Keys (Active & Historical)
                    ├── zrv_live_key_918241... (Active)
                    └── zrv_old_key_110948... (Revoked)

1. App

An App is a registered product identity. It defines the application's public name, logo, allowed model catalog, OAuth scopes, and redirect URIs. An app is not a credential and cannot make inference calls on its own.

2. App Connection

An App Connection binds an App to a specific funding Organization:

  • org_programmatic: Created by a business to fund its own internal application.
  • user_oauth: Created when a user grants OAuth consent for a third-party app to draw from their wallet.

The connection owns the enforceable policy: allowed model wildcards, credit enforcement mode, and periodic spending caps.

3. API Key

An API Key (zrv_...) is the cryptographic secret issued under an App Connection. It authenticates requests against https://api.zorveus.com/v1 and native provider wire endpoints. Only active, non-revoked API keys can execute inference.


Comparison of Zorveus credentials

CredentialPrefix / FormatTarget EndpointUsage LocationPrivilege Level
API Keyzrv_...https://api.zorveus.com/v1Server backend or safe clientScoped to connection model policy & cap
Service Keyzrv_svc_...https://api.zorveus.comBackend server ONLYScoped product-user reads, upserts, and credit grants by external user ID
OAuth Client Secretzrv_client_secret_.../oauth/tokenOAuth backend ONLYConfidential client authentication
Provider Credentialsk-... / encryptedUpstream providerStored securely in ZorveusUpstream provider account secret

Key lifecycle and rotation

API keys support seamless rotation without downtime:

  1. Generate a new secondary API key under the active connection.
  2. Update your production environment variables to use the new key.
  3. Verify that requests succeed on the new key.
  4. Revoke the old key from the dashboard or via the Management API.
Was this page helpful?
Edit this page on GitHub

On this page