Docs
BlogHomeStart building

Totalum API — Overview & API Key

Programmatically create and manage full-stack AI-built applications — build your own vibe-coding tool on top of Totalum's infrastructure.


Download full API docsComplete reference as a single .md file

The Totalum API lets you programmatically create and manage full-stack web apps with AI. Send a natural-language prompt and an agent generates a complete project — frontend, backend, database, hosting, auth and deployment — all managed for you.

Base URL
https://api-accounts.totalum.app
Auth
api-key: tlm_sk_… header
Response
{ errors, data } envelope

#Who is it for

Keep your API key on the server — never in the browser

Your frontend talks to your backend; your backend talks to the Totalum API. Never call the API directly from client-side JavaScript, mobile apps, or any browser code.

text
CORRECT:  User → Your Frontend → Your Backend → Totalum API
WRONG:    User → Your Frontend → Totalum API

#Get your API key

Your API key gates both the REST API and the MCP server. Keys are prefixed tlm_sk_.

  1. Open the API section in your Totalum account.
  2. Buy credits — the key is revealed once your account has an active credit balance. (Every operation is credit-metered.)
  3. A default key is created automatically. Reveal it, copy it, and optionally create additional named keys or restrict a key to specific projects.

#What you can do

  • Create and manage full-stack projects programmatically.
  • Run the AI builder with natural-language prompts.
  • Query, create, and edit database records.
  • Deploy to production with a global CDN.
  • Manage secrets, files, and versions.
  • Add custom domains and webhooks.

Totalum handles everything — hosting, database, file storage, SSL, CDN, deployments, and secret management. The agent even reads your project's backend logs to debug autonomously. The typical flow is: create a project → run the agent with a prompt → poll for status → deploy to production.

#Built-in integrations

Just mention them in your prompt — no keys or config needed. If one needs a key you haven't provided, the agent tells you via the secretKeysNeeded field; add it as a project secret and run again.

No key required: email delivery · PDF generation · AI image generation · ChatGPT · authentication · document scanning (OCR) · speech-to-text · video analysis · web scraping · managed database · deployment & hosting (CDN) · custom domains · file storage · backend-logs access.

Requires your key (add as a project secret): Stripe (payments & subscriptions) · email from your own domain (we recommend Resend).

Anything else: mention any API or npm package in your prompt and the agent integrates it.

#Credit model

  • Development credits — project creation, running the agent, deployments, server start/restart, source download, uploads, version recovery, export/import, custom domains.
  • Infrastructure credits — only when a project exceeds its plan's built-in usage limits (ChatGPT, image generation, video analysis, transcription, document scans, web scraping, emails, PDFs, uploads).

Most read endpoints (account, list/get projects, status, logs, database reads) are free. Set monthly caps per project with the credit-limits endpoint and monitor usage via spending analytics.

#Response envelope

Every response uses the same shape — on failure, errors holds { errorCode, errorMessage } and data is null:

json
{ "errors": null, "data": { } }

#Explore the endpoints

Browse the full reference by resource in the sidebar under Totalum API, or jump to a common one:

  • Projects — create, list, get, delete, credit limits.
  • AI Agent — run the builder, poll status, conversation.
  • Deployments — deploy to production.
  • Database — query and mutate project data.
  • GitHub — bidirectional repo sync.