# Glossary

> Every word these docs use with a fixed meaning.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://data.docs.sypnia.com/reference/glossary/

For agents: Sypnia Data vocabulary: project, project ref, engine, Sypnia Cloud, console, user, session, access token, refresh token, session policy, publishable key, secret key, personal access token, OAuth client, DPoP, device flow, Data API, row-level security, database role, use case, managed database, your own Postgres, MCP server.

One name per thing, in these docs, in the console and in the API.

**Access token**: A short-lived JWT signed by the project (EdDSA). It says who is calling and which database role applies. Default lifetime one hour.

**Your own Postgres**: A project that uses a database you already have, given by connection string. Any Postgres 14 or later.

**Console**: The web app of Sypnia Cloud at `data.app.sypnia.com`, where you manage tables, SQL, users, machines and the link to Cases. Everything it does is also in the API.

**Data API**: The REST API the engine builds from your database schema, at `/rest/v1`. Compatible with PostgREST's query syntax.

**Device flow**: How a CLI or an AI agent signs in (RFC 8628): it shows a code, you approve it in the browser, and it receives its own session. No secret is pasted anywhere.

**DPoP**: Proof of possession (RFC 9449). A DPoP-bound token works only together with a proof signed by the caller's private key, so a stolen token is useless.

**Engine**: The open-source program that serves a project's API (auth, Data API, SQL, MCP). One Rust binary; it runs on your servers or in Sypnia Cloud.

**Managed database**: A database Sypnia Cloud creates and runs for a project. Shared means one database per project on a shared server; dedicated means a server of its own.

**MCP server**: The address `https://mcp.data.sypnia.com`, one for every project, where AI agents call the tools (read tables, run queries) with OAuth; the token says which project.

**OAuth client**: A machine that signs in to a project with OAuth 2.0, such as a service, a CLI or an MCP client. It authenticates with a key pair (recommended) or a secret.

**Personal access token**: A token that acts as one user with the scopes it was given (`syp_pat_…`). It may never expire; it can always be revoked.

**Project**: One backend. A project has one database, its own users, keys and settings, and its own address `https://<ref>.data.sypnia.com`. Nothing is shared between projects.

**Publishable key**: A key that is safe in a browser or a mobile app (`syp_pk_…`). It identifies the project; your row-level security decides what it may read.

**Project ref**: The 20 lowercase letters that name a project in addresses and keys, such as `qkzrvmwtlpbgdhsnxyea`. Never reused.

**Refresh token**: A long random string that gets a new access token. Every use returns a new one; using an old one again ends the whole session.

**Row-level security**: Postgres rules that decide, row by row, what each database role and each user may read or change. The Data API runs every request under them.

**Database role**: Who a request runs as inside Postgres. `anon` for nobody signed in, `authenticated` for a signed-in user or machine, `service_role` for secret keys.

**Secret key**: A key for servers only (`syp_sk_…`). It acts as `service_role` and bypasses row-level security. Several per project, each revocable.

**Session**: One signed-in device of a user, or one machine sign-in. It lives until it is revoked or its session policy ends it, and it is renewed with refresh tokens.

**Session policy**: How long sessions last in a project: access-token lifetime, total lifetime, inactivity timeout (each can be «never») and whether a user may have one session or many.

**Sypnia Cloud**: The hosted service that runs the engine for you, with the console, managed databases, accounts, and Sypnia Mail as an e-mail provider.

**Sypnorm**: The use-case ORM for TypeScript that comes with Sypnia Cases (@sypnia/cases/sypnorm). It runs on Sypnia Data or any Postgres; Sypnia Data works with any ORM.

**Use case**: One thing a person or a machine does with your app, such as «Order today's bread». It declares who does it, what it receives, which tables it touches and how it can fail.

**Use-case map**: Every use case of an app with its actor, tables and failures. It lives in Sypnia Cases, linked to the Data project, and npx @sypnia/cases map --upload sends it to the project's Use cases tab; anything the app does that is not on the map is a scope error.

**User**: A person who can sign in to a project. A user holds identity and sessions only; what a user can do in your app lives in your own tables.
