Security

Your prompts are product logic. This page says plainly how they and the keys that read them are protected, and what stays your responsibility.

API keys

One key per project, generated server-side. A regenerated key has 256 bits from the operating system's cryptographic random source; keys created since September 2026 have 244 random bits from the same source. Keys created before then came from a weaker, non-cryptographic generator. Keys are read only from the x-api-key or Authorization header, never from URLs, and never appear in logs or error messages. The organization owner can regenerate a key under Project → Settings → API; the old key stops working immediately. Deleting the project also revokes its key immediately.

Scope

A key reads and writes every prompt in its project and nothing outside it. Prompt ids from another project return "not found". Changes made through the API or MCP are attributed to the organization owner and appear in History.

Abuse limits

Authenticated traffic is limited per organization (60 requests per minute on Free, unlimited on Pro). Failed authentication is limited per client address so keys cannot be guessed or scanned. Request bodies are capped at 1 MB and validated with strict schemas that reject unknown fields.

Transport

TLS everywhere: the API, the dashboard, and the connection between the application and the database. API responses are marked Cache-Control: no-store so intermediaries never retain prompt text.

MCP server

Every request is authenticated before the protocol layer sees it, and Host and Origin headers are validated, which blocks DNS-rebinding attacks. The server is stateless: tools are bound to the caller's projects (a key's one project, or with OAuth every project in your organization) for the life of a single request and nothing is carried between them.

OAuth

The MCP server accepts OAuth 2.1 sign-in through GoTrue: authorization code with PKCE, dynamic client registration, and a consent screen where you approve each app. Access tokens last an hour. Revoking an app under Settings → Connected apps takes effect within a minute. An OAuth connection acts as you and can access every project in your organization.

Audit log

Actions through the API, MCP and dashboard are recorded: actor, client, source, action, target, versions, outcome, IP address and user agent. Prompt content and variable values are never recorded. The log is append-only, kept for 90 days, visible to members of your organization under Settings → Activity, and exportable as CSV.

Prompt Guard

Optional instructions appended to served prompts that refuse attempts to reveal the system prompt or extract secrets. It is a mitigation, not a guarantee; keep secrets out of prompts.

Provider keys

Keys you add for the Playground and Optimize features are used only for calls you trigger from the dashboard and are never sent to your application. They are stored in the database behind TLS and a locked-down network; encryption at rest for these fields is on the roadmap.

Infrastructure

Self-hosted Postgres reachable only from the application through a TLS-required pooler, non-superuser application role, fail2ban on the database port, daily backups. Authentication is Google or email via GoTrue.

On your side

  • Keep the API key server-side. Never ship it in a browser bundle or a mobile app; fetch prompts from your backend.
  • Use one project per application or environment so a leaked key exposes one thing.
  • If a key leaks, regenerate it under Project → Settings → API (organization owner only). Regenerate keys created before September 2026 too, once you can update the apps that use them; that page flags them. The old key stops working immediately, so put the new one in your apps, CI secrets, SDK clients and MCP configs. OAuth connections are not affected. See Regenerating a key.
  • Pin ?version=<hash> in tests so a published change cannot alter a test run silently.
  • Do not put secrets or personal data in prompts. Prompt text is returned to anyone holding the key and, through the model, potentially to end users.

Reporting a vulnerability

Email security@superprompts.app with steps to reproduce. You will get a reply from a person. Please do not test against other customers' projects; create a free account and use your own.

Related: API versions, Authentication.