Skip to main content
Telentir’s APIs are served from the Next.js telentir-web project. All examples below reference real route handlers in /app/api.

Base URLs

EnvironmentBase URLNotes
Productionhttps://app.telentir.com/apiSame origin as the Telentir dashboard.
Local devhttp://localhost:3000/apiAvailable when you run npm run dev inside telentir-web.
Every route documented in this section is relative to the base URL above. The API is versionless—breaking changes follow Telentir’s deprecation policy and are announced via the changelog.

Authentication in two layers

  1. Workspace sessions: Created via the auth endpoints (email + password, 2FA, phone verification). These return JWTs that the frontend stores in the token cookie. You can also copy the token and send it as a Bearer header for server-to-server work.
  2. API keys: Long‑lived keys generated from /api/api-keys. These keys are accepted as bearer tokens everywhere the middleware objectAuth or auth is used. Keys inherit the owner’s scopes (phone verification, 2FA, etc.).
Most data-plane routes (encrypted objects, connect, persona previews, session calls) use objectAuth, which additionally loads the user’s encrypted object store and enforces phone verification. Bring-your-own encryption keys are explained in Encrypted objects.

Typical workflow

  1. POST /api/auth/login to obtain a short-lived JWT or use an API key.
  2. GET /api/root to fetch server metadata, stores, and encryption keys.
  3. Mint store keys with PUT /api/keys and persist encrypted payloads through PUT /api/objects.
  4. Subscribe to GET /api/events/{type} streams to mirror mutations or use /api/connect to ingest data from Telentir-managed scrapers.
  5. Layer on voice/knowledge capabilities via the specialized endpoints listed in the rest of the API reference.

Tooling and schema

Need to integrate voice, knowledge, billing, or automation features? Jump over to the dedicated pages listed in the sidebar. Each section links back to concrete files inside telentir-web so you can audit the exact server logic.