Quick start
Store your first secret and read it from a script, the CLI or an SDK in about five minutes.
In this quick start you will save a database connection string as a secret, create an API key and read the secret back from code. You only need a QuantumAPI account; if you don't have one yet, sign up at portal.quantumapi.eu.
1. Store your first secret
Create the secret
Click Create Secret and fill in at least Name and Value. Choose a Content Type (for example Connection String) so the portal can check and display it properly. Labels, notes, URLs, custom fields and a TOTP seed are optional. Click Create.
Open it
The secret appears in the list. Click it to see its details; values stay hidden until you click Click to reveal secret value. Every reveal is recorded in the audit log.
2. Create an API key
Open Keys → API Keys
Click Create API Key, give it a name (for example quickstart) and enable only the Secrets Read scope. Click Create.
Copy the key
The full key is shown only once. Copy it now and keep it in an environment variable. The portal also saves a copy in your vault automatically, unless you ticked Don't save to vault.
# Interactive: opens the browser to sign in
qapi login
# CI / scripts: use an API key instead
export QAPI_API_KEY=qapi_xxx3. Read the secret from code
Copy the secret ID from its detail page (just under the name), then use any of these options:
curl https://api.quantumapi.eu/api/v1/secrets/<secret-id> \
-H "X-Api-Key: $QAPI_API_KEY"{
"id": "5f0c1c3e-8a4b-4d3e-9a51-2b7c0d9e1f42",
"name": "prod-postgres",
"value": "postgresql://app:••••@db.acme.internal:5432/orders",
"version": 1,
"contentType": "connection-string"
}# Create a secret
qapi secrets create prod-postgres "postgresql://app:••••@db.acme.internal:5432/orders" \
--content-type connection-string --label env=prod --folder Production
# Find its ID
qapi secrets list
# Read the raw value (ideal for scripts)
export DATABASE_URL=$(qapi secrets get <secret-id> --value)import { QuantumAPIClient } from '@quantumapi/sdk'
const client = new QuantumAPIClient({ apiKey: process.env.QAPI_API_KEY! })
const secret = await client.secrets.get('<secret-id>')
console.log(secret.name, secret.value)from quantumapi import QuantumAPISyncClient
import os
client = QuantumAPISyncClient(api_key=os.environ["QAPI_API_KEY"])
secret = client.secrets.get("<secret-id>")
print(secret.name, secret.value)What you have done
- Stored a secret, encrypted at rest and versioned.
- Created an API key with the minimum scope and read the secret from code.




