Connecfy Docs
API v1 Dashboard

API Key Security & Best Practices

An API key can send messages and read data on your account's behalf. Treat it like a password, not a username.

How Connecfy stores it

Only a one-way hash of your key is ever written to the database — the plaintext exists for exactly one HTTP response, at creation, and nowhere after that. A database compromise on Connecfy's side does not, by itself, expose usable keys. See API Keys for the full lifecycle.

Never commit a key to version control

Not to a public repo, not to a private one, not in a config file "temporarily." Git history is forever unless you specifically rewrite it, and a private repo can become public, get forked, or get a new collaborator with more access than intended.

.gitignore
.env
.env.local
*.env

If one leaks anywayRevoke it immediately from Dashboard → API Keys — this takes effect right away, before you finish investigating how it leaked. Create a replacement, update whatever used the old one, and only then dig into the cause. A key that's out in a public commit should be treated as compromised the moment you notice, not after confirming misuse.

One key per integration

Separate keys for your production backend, your staging environment, and any script or third-party tool that needs to send. If one needs to be revoked — an employee leaves, a vendor relationship ends, a laptop is lost — the blast radius is exactly that one integration, not everything at once.

There's no scoped-down key today

Every key has the same permissions as its owning account — full send and read access, nothing narrower. If you need a credential with reduced permissions (send-only, one sender number only), that's not currently possible with an API key; keep that limitation in mind when deciding what system gets a key at all.

Rotating on a schedule

There's no forced expiry — a key works until you revoke it. Rotating periodically anyway (say, every few months for anything long-lived) limits how long a quietly-leaked key stays useful even if you never notice the leak. See API Keys for the rotate procedure.